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
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Mon Jun 27, 2005 1:07 am   

triggers
 
#TRIGGER {#IF @hp<2600} {use song lifesong at} hmm for some reason this is not working okayy..soo...why wouldent it work?
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Mon Jun 27, 2005 1:26 am   
 
you have to trigger off a pattern... maybe use your prompt?

#TRIGGER {<(%d)/(%d)hp>} {#IF (@hp<2600) {use song lifesong at}}
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Mon Jun 27, 2005 4:43 am   
 
Hmm the problem is my prompt actually pops up alot usually 2x a combat round like 2x's in a row so commands tend to get spammed if i work off my prompt would i have any other options, or would i only be able to make a trigger fire once at a time?

HP:2347/2715 MP:645/696 MC:10 AFFBY:(None) APusable: 6392
HP:2341/2715 MP:645/696 MC:10 AFFBY:(None) APusable: 6392
Bomb attacks you 1 time and hits for 6 damage.
Bomb shoots a jet of flame at you which explodes upon contact!
Bomb attacks you with Small Bomb for 15 damage.
HP:2326/2715 MP:645/696 MC:10 AFFBY:(None) APusable: 6392
HP:2321/2715 MP:645/696 MC:10 AFFBY:(None) APusable: 6392
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Mon Jun 27, 2005 12:08 pm   
 
#TRIGGER {^HP:(%d)/%d} {#IF ((%1 < 2600) AND (@autoheal = 1)) {use song lifesong at;autoheal = 0}}}
#TRIGGER {message for success on lifesong} {autoheal = 1}

something along these lines will trigger if hp < 2600 and autoheal = 1, it will attempt to use lifesong and set autoheal to 0, when it sees a succesfull cast of lifesong will then set autoheal back to 1. this assumes you do see some type of success message.
Reply with quote
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Mon Jun 27, 2005 2:35 pm   
 
I do...nice thanks. :)
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
KillerKitty
Beginner


Joined: 15 Jun 2005
Posts: 21

PostPosted: Mon Jun 27, 2005 10:20 pm   
 
Prize for the "Best signature to make themselves sound like a complete asshole" for zema...
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