• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] Can I convert this function into JASS script?

Status
Not open for further replies.
Level 3
Joined
Jun 6, 2011
Messages
31
Event being an example. I am interested in converting the action into JASS. My attempts so far have failed.

  • Play Narration
    • Events
      • Time - Elapsed game time is 15.00 seconds
    • Conditions
    • Actions
      • Sound - Play Sound[(Random integer number between 111 and 113)]
 
Level 3
Joined
Jun 6, 2011
Messages
31
Convert the trigger to JASS and then look at which functions are called. In this case: call StartSound(Sound[GetRandomInt(111, 113)])

The results of it gives me an error: "Undeclared variable Sound"
Clearly it's regarding the variable in itself, however it has been declared in the initialization. Is there something about the Sound in brackets?

Code:
set udg_Sound[131] = gg_snd_vo_narr_good_camp_01
set udg_Sound[132] = gg_snd_vo_narr_good_camp_03
set udg_Sound[133] = gg_snd_vo_narr_good_torchlight_01

Code:
else
call StartSound(Sound[GetRandomInt(131,133)])
endif
 
Status
Not open for further replies.
Top