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!
WaitForSoundBJ - yes, i know, thx!
... but i need to use WaitForSoundBJHint, and this function with such parameters return error: "expected a function name"!..
Hm!... very strange!..
I found this function in war3.mpq\UI\TriggerStrings.txt
--
Ok, how to insert "wait" between sounds which run by different triggers? "Wait" duration must be equal duration of last played sound (if sound is playing).
I've trying to create a my own SoundSet. And, for example, i have two events: 1) event "Select a unit" has an action PlaySound "What1";
2) event "Unit is issued an order targeting a point" has an action PlaySound "Yes1";
Each of them run with different triggers.
--
And when play sound "What1" (if i select a unit) and i give to my unit order targeting a point - my another trigger is running immediately!
How i can insert pause between my triggers, so that second sound wait for first sound will finishing playing?
Insert WaitForSound action after PlaySound "What1" do not work in this situation!..
I try custom script: call WaitForSoundBJ( GetLastPlayedSound(), GetSoundDuration(GetLastPlayedSound() ) )
but this not help me too...
Waits work for the trigger instance they are in. Different trigger/instances can run parallel. You have to put the Wait before Yes1.
But when you observe the behavior in Wc3, it's actually not the way that the sounds would be queued up, rather it checks if there is already a sound playing and in this case refrains from playing the 2nd one altogether. Else the delayed feedback may seem weird, and you do not want to build an endless chain of sounds.
ok, thx!
Maybe you know function (actions) which allows to return UnitType with max (Stats)-Priority from units in currently selected unit group and to compare returned UnitType with the UnitType that have required to me?
There is a group function "Units selected". You can iterate over it and check the unit type of each but reading the "Priority" attribute is not directly possible. Are you thinking of abusing "Priority" as a custom state?
No, i need UnitPriority for play only the SoundSet of Unit that have a highest priority in currently selected UnitGroup. Otherwise, i have more than one playing SoundSet (from different UnitTypes) if currently selected UnitGroup contains my CustomUnit.
That is custom, you are using it in a fashion different from its original purpose. Rather than "Priority" you can change "Point-value", which has no mechanism attached and can be read via script. Yet since one would usually want to assign more/a lot of custom data to a unit type for example, the uniform method would be to do this in code, e.g. in a hashtable using the unit type id as key.
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.