HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

bj_crippledTimer and bj_crippledTimerWindows

09-15-2006, 12:38 PM#1
PandaMine
What is the difference between normal timers and bj_crippledTimer/bj_crippledTimerWindows. I also noticed that these global timers require an array, so how is it used as a convential timer. Do you use the H2I bug on the array index to get a multi-instancable timer???
09-15-2006, 12:49 PM#2
Naakaloh
bj_crippledTimer is just a variable, it can be whatever you want, however, I suspect Blizzard uses it for paused timers. There really isn't such a thing as a multiinstanceable timer as one timer, since one timer can only perform one countdown at a time. But you could just use whatever object you wanted with I2S(H2I()) to use gamecache to make your scripts more likely run multiple instances safely.

Collapse JASS:
...
set bj_crippledTimer[101] = CreateTimer()

call StoreInteger( udg_YourGameCacheVar, I2S(H2I(bj_crippledTimer[101])), "YourKey", udg_YourInteger )
call TimerStart( bj_crippledTimer[101], 0.50, false, function YourFunction )
...
09-15-2006, 03:47 PM#3
AceHart
They are used with "You will be revealed to your opponents, unless you build a Town Hall".
09-15-2006, 06:30 PM#4
Naakaloh
Ah, that makes sense; I had thought crippled implied the status of the timer not a player. So if you use bj_crippledTimer you might want to avoid indices 0 - 11.

Edit: Assuming that those are the indices used for the players.