- Joined
- Jul 12, 2013
- Messages
- 12
Dear All,
I was planning to use Lumber as Ammo for a TD map. For this I used the following triggers to pause and unpause the towers/units. Unfortunately the Unpause effect does not seem to be working. Please guide me in debugging the same.
Thanks in advance.
Dread.
Ok i am not sure why it is looking like that in the trigger window but
Set pp1 = 0
and
Set pp1 = 1
Set up1 = 1
in the last 2 triggers respectively are not in the loop but out of the loop ie actions are after the loop is completed.
Dread.
I was planning to use Lumber as Ammo for a TD map. For this I used the following triggers to pause and unpause the towers/units. Unfortunately the Unpause effect does not seem to be working. Please guide me in debugging the same.
-
Unit Array P1
-
Events
-
Unit - A unit enters (Entire map)
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 1 (Red)
-
Actions
-
Set P1 = (P1 + 1)
-
Set P1U[P1] = (Triggering unit)
-
Pause P1
-
Events
-
Player - Player 1 (Red)'s Current lumber becomes Less than or equal to 0.00
-
Conditions
-
Actions
-
For each (Integer Z) from 1 to 9999, do (Actions)
-
Loop - Actions
-
Set pp1 = (pp1 + 1)
-
Unit - Pause P1U[pp1]
-
Set pp1 = 0
-
Unpause P1
-
Events
-
Time - Every 0.50 seconds of game time
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
pp1 Equal to 0
-
(Player 1 (Red) Current lumber) Greater than or equal to 10
-
Actions
-
For each (Integer X) from 1 to 9999, do (Actions)
-
Loop - Actions
-
Set up1 = (up1 + 1)
-
Unit - Unpause P1U[up1]
-
Set pp1 = 1
-
Set up1 = 1
Thanks in advance.
Dread.
Ok i am not sure why it is looking like that in the trigger window but
Set pp1 = 0
and
Set pp1 = 1
Set up1 = 1
in the last 2 triggers respectively are not in the loop but out of the loop ie actions are after the loop is completed.
Dread.
Last edited by a moderator: