• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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