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!
hmm i don't like to because in my opinion Jass triggers are not as easy to edit (i'll need to add things to it) as gui ones ...
can i write the whole script in one line instead?
This is an example. But you ask, who the hell is player 0? Well, in JASS, Player 0 is Red(Player 1 in GUI), and Player 1 is Blue(Player 2 in GUI), and so on.
Two more important things you need to know: first, the sound has to be declared in the Sound Editor, otherwise the World Editor will reply to you that it was expecting a name. Second, as you (might) have noticed, there's a ''gg_snd_'' before the actual sound name. When referring to your sound, you use it like this:
gg_snd_YourSoundName
One last note, you cannot use spaces. Spaces are also underscores ('_').
ok thanks you this works but there's still one question ...
I want so use a global variable instead of Player(0) but when using:
call StartSoundForPlayerBJ(MyVariable, gg_snd_MySoundName)
or
call StartSoundForPlayerBJ(udg_MyVariable, gg_snd_MySoundName)
The variable is used through "udg_VariableName". Also, if it is expecting the name, it's because the sound isn't declared. Note that JASS is case sensitive. ''gg_snd_Hint'' would not be the same as ''gg_snd_hint'' I believe.
Maybe your variable name has spaces? I remind you that a variable name such as ''Player Variable'' would be ''udg_Player_Variable'' in the script. Same for the sounds.
Simply do all the sound code out of global sync for just the one player. Basically use GetLocalPlayer() to do this. I think that is what the BJ does in the first place.
Ofcourse not, that is just one large syntax error as Player only takes 1 paramater which in an integer.
You would have to call the function 3 times, once for each player to do what you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.