- Joined
- Sep 21, 2007
- Messages
- 517
Basically, my problem here is that the events that i add to another trigger via loops are not firing, i tried using game- show text message but it didnt show, this is what i did:
function, so this may help you in solving this bug :/
-
For each (Integer music_i[3]) from 1 to MaxMusic, do (Actions)
-
Loop - Actions
-
Sound - Set volume of Music[music_i[3]] to 0.00%
-
Sound - Play Music[music_i[3]]
-
Countdown Timer - Start MusicTimer[music_i[3]] as a Repeating timer that will expire in (Length of Music[music_i[3]]) seconds
-
Trigger - Add to RestartSound <gen> the event (Time - MusicTimer[music_i[3]] expires)
-
Hashtable - Save music_i[3] as 0 of (Key (Last started timer)) in HT_Music
-
-
-
RestartSound
-
Events
-
Conditions
-
Actions
-
Sound - Stop Music[(Load 0 of (Key (Expiring timer)) from HT_Music)] Immediately
-
Sound - Play Music[(Load 0 of (Key (Expiring timer)) from HT_Music)]
-
-
JASS:
if GetLocalPlayer() ==