|
lostboy77 Newbie
Joined: 15 Apr 2013 Posts: 8
|
Posted: Mon Apr 15, 2013 2:23 pm
Need Trigger Help |
Hello,
I want to make a little trigger but i dont know the syntax for it:
Everytime my Hitpoints get lower as 30 it should make a sound alert (for this i have already the soundfile alarm.wav)
so, if the game send the information "your hitpoints are now 30" (or lower) it wanna hear the soundfile alarm.wav
my acutally tigger:
#TRIGGER {your hitspoints are now 30} {#play alarm.wav}
gives me only sound output if i have EXACTLY 30 hitpoints. but i wanna have the alarm if i have 30 or less hitpoints.
and the
#TRIGGER {your hitspoints are now %1} {#play alarm.wav}
gives me all the time alarm sounds, also if i have more than 30 hitpoints.
what commando i have to insert instead of 30 or %1? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Mon Apr 15, 2013 3:30 pm |
#TRIGGER {your hitspoints are now (%d)} {#IF (%1<31) {#play alarm.wav}}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
lostboy77 Newbie
Joined: 15 Apr 2013 Posts: 8
|
Posted: Mon Apr 15, 2013 3:39 pm |
PERFECT, WORKS GREAT
thank you alot shalimar |
|
|
|
|
|