ArmyOfFrogs
New Member
- Reaction score
- 20
Soo, map is getting closer to being able to get tested by multiple people, so i'm going through and making spells and triggers MUI, and I came across this one and am having some problems with the timer in it :[
Here's the base trigger
The timer trigger
See I need a way to access the [(Player Number)] on the timer trigger, but I can't find anyway to do it. Plus I don't think the way i'm setting up the (Last created timer) would work for MUI :[
Thanks if you have the time to read through that and help out ^^
Here's the base trigger
Trigger:
- toth
- Events
- Unit - A unit Is attacked
- Conditions
- (Owner of (Attacked unit)) Equal to Player 11 (Dark Green)
- (Unit-type of (Attacking unit)) Equal to Tyrande
- Actions
- Set tothunit[(Player number of (Owner of (Attacking unit)))] = (Attacking unit)
- Countdown Timer - Start toth_timer[(Player number of (Triggering player))] as a One-shot timer that will expire in 15.00 seconds
- Trigger - Add to toth timer expire <gen> the event (Time - (Last started timer) expires)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Thrill of the Hunt for (Attacking unit)) Equal to 1
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- tothcount[(Player number of (Owner of (Attacking unit)))] Less than 8
- Then - Actions
- Set tothcount[(Player number of (Owner of (Attacking unit)))] = (tothcount[(Player number of (Owner of (Attacking unit)))] + 1)
- Unit - Add toth 3 to tothunit[(Player number of (Owner of (Attacking unit)))]
- Unit - Set level of toth 3 for (Attacking unit) to (Level of toth 3 for tothunit[(Player number of (Owner of (Attacking unit)))])
- Else - Actions
- Unit - Add toth 3 to tothunit[(Player number of (Owner of (Attacking unit)))]
- Unit - Set level of toth 3 for (Attacking unit) to (Level of toth 3 for tothunit[(Player number of (Owner of (Attacking unit)))])
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Thrill of the Hunt for (Attacking unit)) Equal to 2
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- tothcount[(Player number of (Owner of (Attacking unit)))] Less than 9
- Then - Actions
- Set tothcount[(Player number of (Owner of (Attacking unit)))] = (tothcount[(Player number of (Owner of (Attacking unit)))] + 1)
- Unit - Add toth8 to (Attacking unit)
- Unit - Set level of toth8 for tothunit[(Player number of (Owner of (Attacking unit)))] to tothcount[(Player number of (Owner of (Attacking unit)))]
- Else - Actions
- Unit - Add toth8 to (Attacking unit)
- Unit - Set level of toth8 for tothunit[(Player number of (Owner of (Attacking unit)))] to tothcount[(Player number of (Owner of (Attacking unit)))]
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Thrill of the Hunt for (Attacking unit)) Equal to 3
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- tothcount[(Player number of (Owner of (Attacking unit)))] Less than 10
- Then - Actions
- Set tothcount[(Player number of (Owner of (Attacking unit)))] = (tothcount[(Player number of (Owner of (Attacking unit)))] + 1)
- Unit - Add toth14 to (Attacking unit)
- Unit - Set level of toth14 for tothunit[(Player number of (Owner of (Attacking unit)))] to tothcount[(Player number of (Owner of (Attacking unit)))]
- Else - Actions
- Unit - Add toth14 to (Attacking unit)
- Unit - Set level of toth14 for tothunit[(Player number of (Owner of (Attacking unit)))] to tothcount[(Player number of (Owner of (Attacking unit)))]
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events
The timer trigger
Trigger:
- toth timer expire
- Events
- Conditions
- Actions
- Unit - Remove toth 3 from Unit
- Unit - Remove toth8 from Unit
- Unit - Remove toth14 from Unit
- Set Variable = 0
See I need a way to access the [(Player Number)] on the timer trigger, but I can't find anyway to do it. Plus I don't think the way i'm setting up the (Last created timer) would work for MUI :[
Thanks if you have the time to read through that and help out ^^