• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help with this Trigger

Status
Not open for further replies.

sabresayen0528

S

sabresayen0528

Im creating a Campaign Map . . . And I need help with one trigger . . . .

:fp:Here it is:
When a unit(for example Arthas) is attacked he will say some taunts or sounds . . . and also when he is being attacked he is saying some taunts(randomly not everytime his attacked) . . . like in the campaigns of Warcraft III


:vw_wtf: :vw_wtf: :vw_wtf: :vw_wtf: :vw_wtf: :vw_wtf: :vw_wtf: :vw_wtf:
 
Use the play sound natives.

The control logic behind the taunt could be like the folllowing pesudo code.
<Taunt>{
when attacked
with a medium probability {
play taunt sound
display taunt text
turn off <Taunt>
Start timer for <Taunt Cooldown>
}
}

<Taunt Cooldown>{
when timer expires
turn on <Taunt>
}

The approach is a cooldown based taunt system that randomly fires. When it fires it starts cooldown stopping it from firing until cooldown completes. When not in cooldown it will randomly fire every time he is attacked.
 
Status
Not open for further replies.
Back
Top