(Okay, so I've been mapping for quite a while and have finally decided to come here, trying to be a little active. Hello everyone, I'm TBear and this is my first post)
I'm currently working on a "Tug-of-War"-like map:
This is my current code for ordering the spawned ones to move from center of map to post #1 in hostile area:
So what this trigger actually does, is ordering a Unit-Group to move in formation toward the enemy creep-pit, instead of moving them one by one.
This is where my problem appears -
This trigger runs each time a unit enters the region. There are 7 regions like this, and 7 triggers for each team. By other means, a unit group will be given exactly the same order, each time a unit from the same group enters the region. Unnecessary, aye?
Can anyone think of a way(probably a condition), that prevents units from the already-ordered group to activate the trigger? (Action "Wait" won't work in this case)
Hope I didn't make this too complicated and boring :] Thanks
I'm currently working on a "Tug-of-War"-like map:
Pitched:
2 teams, 4 players on each. Each team has it's own "Creep Pit", which spawns new units every 10th second, then sending them toward the other players' Creep Pit.
You and your three teammates control a hero each, while a bot for each team control the spawned units.
Victory can be achieved by destroying the other team's Creep-Pit. This might sound a bit like DotA, but believe me; it's not anywhere near
This is my current code for ordering the spawned ones to move from center of map to post #1 in hostile area:
Trigger:
- Post CENTER
- Events
- Unit - A unit enters REG_CENTER<gen>
- Conditions
- Actions
- Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of (Triggering unit)) Equal to Player 9 (Gray) <<< Team West's bot
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of REG_E1 <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit))) and do (Actions)
- Events
So what this trigger actually does, is ordering a Unit-Group to move in formation toward the enemy creep-pit, instead of moving them one by one.
This is where my problem appears -
This trigger runs each time a unit enters the region. There are 7 regions like this, and 7 triggers for each team. By other means, a unit group will be given exactly the same order, each time a unit from the same group enters the region. Unnecessary, aye?
Can anyone think of a way(probably a condition), that prevents units from the already-ordered group to activate the trigger? (Action "Wait" won't work in this case)
Hope I didn't make this too complicated and boring :] Thanks