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
bobbalong
Newbie


Joined: 02 Aug 2009
Posts: 9

PostPosted: Thu Aug 06, 2009 12:01 am   

variables?
 
hello
i need to set up a trigger so that i ues the correct potion at the correct time

my stats are displayed

H:100% M:100% E:100% W:100%

i need it so when H:100% is less 50% i drink health and so on


the only way i can think of is to make a trigger for every % less than 50 . . . .


could anyone tell me the correct way please?
Reply with quote
shalimar
GURU


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

PostPosted: Thu Aug 06, 2009 2:13 am   
 
#TR {^H:(%d)~%} {#IF (%1=<50) {drink health}}
_________________
Discord: Shalimarwildcat
Reply with quote
bobbalong
Newbie


Joined: 02 Aug 2009
Posts: 9

PostPosted: Thu Aug 06, 2009 10:17 pm   
 
erm . . . i pretty new to this could i maybe get an explanation of what to do with this?
please
thanks
Reply with quote
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Fri Aug 07, 2009 12:58 am   
 
Highlight that whole line, right click, select copy (or hit Ctrl+C), then put your cursor in the command line of Zmud
Right click, select Paste (or Ctrl+V) Hit Enter.

That's it.

that trigger will now be in your settings file eeer editor and you can modify it as you wish.


might wanna hit save also I can't remember when Zmud saves the settings.
_________________
Spin
Reply with quote
bobbalong
Newbie


Joined: 02 Aug 2009
Posts: 9

PostPosted: Fri Aug 07, 2009 1:50 am   
 
i get

#IF (%1=<50) {drink health}
^ syntax error

after i've entered it when i go to check it in my trigger?
Reply with quote
bobbalong
Newbie


Joined: 02 Aug 2009
Posts: 9

PostPosted: Fri Aug 07, 2009 1:56 am   
 
i seem to have solved it by taking out the =

*shrug*

thank you Mixsel and shalimar
Reply with quote
bobbalong
Newbie


Joined: 02 Aug 2009
Posts: 9

PostPosted: Fri Aug 07, 2009 2:37 pm   
 
how can i make it wait a few seconds befor trying again, it gets stuck in a vicious loop because i cant drink health quick enough
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Aug 07, 2009 10:26 pm   
 
I would recommend using an #ALARM and #T+


Try something like this.
Code:
#IF (%1 <= 50) { drink health; #T- health; #ALARM {5) {#T+ health}


This assumes your trigger is called "health". The reason your expression failed before is because less than or equal is "<=" and you had "=<".
_________________
Asati di tempari!
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