|
bobbalong Newbie
Joined: 02 Aug 2009 Posts: 9
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Thu Aug 06, 2009 2:13 am |
#TR {^H:(%d)~%} {#IF (%1=<50) {drink health}}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
bobbalong Newbie
Joined: 02 Aug 2009 Posts: 9
|
Posted: 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 |
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: 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 |
|
|
|
bobbalong Newbie
Joined: 02 Aug 2009 Posts: 9
|
Posted: 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? |
|
|
|
bobbalong Newbie
Joined: 02 Aug 2009 Posts: 9
|
Posted: Fri Aug 07, 2009 1:56 am |
i seem to have solved it by taking out the =
*shrug*
thank you Mixsel and shalimar |
|
|
|
bobbalong Newbie
Joined: 02 Aug 2009 Posts: 9
|
Posted: 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
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
|
|