• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Trigger help W creep movement over regions

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
1. Import Bribe's Indexing System
2. Create 1 Boolean Array for each region you have
3. When the Unit enters the region set RegBool[Custom value of (Triggering Unit)] = True
4. Use the boolean as condition to give the orders

If the Creep has to go From Reg1 to Reg2 moving over Reg3, use "RegBool[Custom Value] = True" condition; and just set that RegBool to true when the unit reaches Reg2.

If you do it that way, RegBool will be FALSE when the unit goes from 1 to 2 over 3, but will be TRUE when the unit goes from 2 to 3. Same applies for all others.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
1. Instructions are on Bribe's Sytem
http://www.hiveworkshop.com/forums/...97329/?prev=search=Unit%20Indexer&d=list&r=20

2, 3, and 4.
Event: A unit enters Region 2
Cond: BoolReg1[Custom Value of Triggering Unit] = true (This means the unit is coming from Region 1)
Actions: Send unit to Region 3


Event: A unit enters Region 3
Cond: BoolReg2[Custom Value of Triggering Unit] = true (This means the unit is coming from Region 2)
Actions: Send unit to Region 4

and so on...
 
Status
Not open for further replies.
Top