Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
lostboy77
Newbie


Joined: 15 Apr 2013
Posts: 8

PostPosted: 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?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3824
Location: Pensacola, FL, USA

PostPosted: Mon Apr 15, 2013 3:30 pm   
 
#TRIGGER {your hitspoints are now (%d)} {#IF (%1<31) {#play alarm.wav}}
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
lostboy77
Newbie


Joined: 15 Apr 2013
Posts: 8

PostPosted: Mon Apr 15, 2013 3:39 pm   
 
PERFECT, WORKS GREAT

thank you alot shalimar
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net