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