- Joined
- Aug 8, 2010
- Messages
- 1,022
Hello, guys! I want to ask why this doesn't work...
The problem is that the created unit does not move.. i tested and made sure that the unit is in the right group, everything is OK, but the order is not given... it doesn't even kill the unit with the "Unit - Kill Unit" action.
I just wanna make a creep way. You know, i add the unit in a group, every second it checks if the units in unit group 1 have enemies within their acquisition range, if they have, then the trigger does nothing, else it orders the creeps to the second region, when the units enter the second region, they get added to unit group 2. And this process does this until the units reach the last region.
-
Init Creeps
-
Events
- Map initialization
- Conditions
-
Actions
- Set OgreCreepsRegions[1] = Creeps At Ronga <gen>
- Set OgreCreepsRegions[2] = Creeps Ronga <gen>
- Set OgreCreepsRegions[3] = Creeps At Ronga Gate <gen>
- Set OgreCreepsRegions[4] = Creeps At Dagnis <gen>
- Set OgreCreepsRegions[5] = Creeps At Human Tower <gen>
- Set OgreCreepsRegions[6] = Creeps At Gramor Gate <gen>
- Set OgreCreepsRegions[7] = Creeps Gramor <gen>
- Set OgreCreepsRegions[8] = Creeps At Gramor <gen>
-
For each (Integer IntegerLoop) from 1 to 8, do (Actions)
-
Loop - Actions
- Trigger - Add to Creeps Unit Groups <gen> the event (Unit - A unit enters OgreCreepsRegions[IntegerLoop])
-
Loop - Actions
-
Events
-
Creeps Unit Groups
- Events
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Entering unit)) Equal to Ogre Basher
- (Unit-type of (Entering unit)) Equal to Ogre Warlock
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
For each (Integer IntegerLoop) from 1 to 7, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (OgreCreepsRegions[IntegerLoop] contains (Entering unit)) Equal to True
-
Then - Actions
- Unit Group - Add (Entering unit) to OgreCreepsUnitGroups[IntegerLoop]
-
Else - Actions
- Unit Group - Remove (Entering unit) from OgreCreepsUnitGroups[IntegerLoop]
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer IntegerLoop) from 1 to 7, do (Actions)
-
Creeps Ronga
-
Events
- Time - Elapsed game time is 2.00 seconds
- Conditions
-
Actions
- Set CreepsSpawnPoint[1] = (Center of Creeps Ronga <gen>)
- Unit - Create 1 Ogre Basher for Player 11 (Dark Green) at CreepsSpawnPoint[1] facing 0.00 degrees
- Custom script: call RemoveLocation(udg_CreepsSpawnPoint[1])
-
Events
-
Creeps Move
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer IntegerLoop) from 1 to 8, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in OgreCreepsUnitGroups[IntegerLoop] and do (Actions)
-
Loop - Actions
- Set Location = (Random point in OgreCreepsRegions[(IntegerLoop + 1)])
- Unit - Order (Picked unit) to Move To Location
- Custom script: call RemoveLocation(udg_Location)
-
Loop - Actions
-
Unit Group - Pick every unit in OgreCreepsUnitGroups[IntegerLoop] and do (Actions)
-
Loop - Actions
-
For each (Integer IntegerLoop) from 1 to 8, do (Actions)
-
Events
I just wanna make a creep way. You know, i add the unit in a group, every second it checks if the units in unit group 1 have enemies within their acquisition range, if they have, then the trigger does nothing, else it orders the creeps to the second region, when the units enter the second region, they get added to unit group 2. And this process does this until the units reach the last region.