- Joined
- Mar 3, 2009
- Messages
- 327
Im making a mob respawn system for dungeons in my RPG. The problem is, The variables RMCreepPoint[0] RMUT[0] and RMFacing[0] are the only ones being set. the reals equal 0, and the points are the center of the map. Interestingly enough, my debug trigger displays RMUC as being 1, which would indicate that it isnt "Looping". is there a better way to do this or have i done something wrong? Thanks for the help, everyone who replies.
-
RMinit
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in RMDEN <gen>) and do (Actions)
-
Loop - Actions
-
Set RMCreepPoint[RMUC] = (Position of (Picked unit))
-
Set RMUT[RMUC] = (Unit-type of (Picked unit))
-
Set RMFacing[RMUC] = (Facing of (Picked unit))
-
Set RMUC = (RMUC + 1)
-
-
-
-
-
Enter
-
Events
-
Unit - A unit enters RMDEN ent <gen>
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Unit-type of (Triggering unit)) Not equal to
-
-
Actions
-
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of RMDEN ent dest <gen>) over 0.50 seconds
-
Unit - Move (Triggering unit) instantly to (Center of RMDEN ent dest <gen>)
-
-
-
Exit
-
Events
-
Unit - A unit enters RMDEN ex <gen>
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Unit-type of (Triggering unit)) Not equal to
-
-
Actions
-
Unit - Move (Triggering unit) instantly to (Center of RMDEN ex dest <gen>)
-
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of RMDEN ex dest <gen>) over 0.50 seconds
-
Unit Group - Pick every unit in (Units in RMDEN <gen>) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) is A Hero) Equal to False
-
-
Then - Actions
-
Unit - Remove (Picked unit) from the game
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in RMDEN <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to 0
-
-
Then - Actions
-
For each (Integer A) from 0 to RMUC, do (Actions)
-
Loop - Actions
-
Unit - Create 1 RMUT[(Integer A)] for Player 12 (Brown) at RMCreepPoint[(Integer A)] facing RMFacing[(Integer A)] degrees
-
-
-
-
Else - Actions
-
-
-