- Joined
- Oct 9, 2015
- Messages
- 721
Hello everyone! I wanted to ask how can I start a timer[array] upon the expiring of another timer? being the array the number of a player I found it difficult to obtain that number. Do I need to use hashtables or something? if so hwo can I do that ?
Example:
PS: I don't know if I did something wrong on Trigger1 (I'm not so sure how loops work).
All help is appreciated
Example:
-
Trigger1
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Trigger - Add to Trigger3 <gen> the event (Time - Timer_X[(Integer A)] expires)
-
-
-
-
-
Trigger2
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
Set PlayerNumber = (Player number of (Owner of (Triggering unit)))
-
Set Real = 0.50
-
Countdown Timer - Start Timer_X[PlayerNumber] as a One-shot timer that will expire in Real seconds
-
-
-
Trigger3
-
Events
-
Conditions
-
Actions
-
Set PlayerNumber = (Player number of (Owner of (Triggering unit)))
-
Set Real = 2.00
-
Countdown Timer - Start Timer_Y[PlayerNumber] as a One-shot timer that will expire in Real seconds
-
-
PS: I don't know if I did something wrong on Trigger1 (I'm not so sure how loops work).
All help is appreciated
Last edited: