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

Joined: 28 Jul 2004
Posts: 21
Location: Canada

PostPosted: Thu Aug 05, 2004 11:43 pm   

Healing and quaffing stamina herbs from prompt
I am looking to make a trigger for my prompt to heal when hp is low and to chew some stamina herbs when endurance is low, How can I do this and put a fail safe in it so that I only do it once if fighting and I get alot of prompts

Any Help would be greatly appreciated!


btw my prompt is:
178|178m/242e/143h>[Tank diag: healthy] [Opponent diag: gushing]
when fighting
Reply with quote

Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 06, 2004 4:21 am   
#VAR healing 1 1;#VAR stamherb 1 1
#TR {(%d)e/(%d)h} {#IF ((%2 < 100) AND @healing) {#VAR healing 0;heal;#ALARM +3 {#VAR healing 1}};#IF ((%1 < 200) AND @stamherb) {#VAR stamherb 0;chew stamina herb;#ALA +3 {#VAR stamherb 1}}} {} {prompt}

Set the numbers in the #IF conditions to whatever level you want heals/herbs used. Set the alarm periods for whatever interval you want between heals/herbs.
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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