tooltiperror
Super Moderator
- Reaction score
- 231
Bump.
You haven't done that yet, right? Plus, the documentation still says 1.1C.I'll remove the variables from the script.
Why? Leaving it at "0.00" works fine, since you change its value away from 0 beforehand, and it's (slightly) less work for the mapper if they just leave it at the default value of "0.00".// select GDC_Event as the real, and change "0.00" to "1.00".
That's silly. Just set index back to 0 before the 2nd loop, sparing 12 subtraction operations, plus it's easier to figure out when reading it.JASS:[...] loop call TriggerRegisterPlayerUnitEvent(t,Player(index-12),EVENT_PLAYER_UNIT_SELECTED,null) set index=index+1 exitwhen index==23 endloop
The timer system is based on having the timers' handle IDs all be sequential, eg. 16842, 16843, 16844, so you can just subtract the first handle ID from all the rest and end up with a player number. TriggerRegisterPlayerUnitEvent creates a handle, so it can't be in the loop with the timer creation, or the timer IDs would be spaced 2 apart.quick question (for learning purposes)
why loop again for TriggerRegisterPlayerUnitEvent?
Huh?Precisely why I didn't want to change it
Anything else?
[indenting!]
set udg_GDC_Event=0
set udg_GDC_Event=1
-_-You told me not to make it run at 1.00, because that was more work for the mapper. If I made it run at 1 and set it to 1 first and then 0, it would work fine, which it was before you told me to change it.