• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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