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


Joined: 15 Oct 2005
Posts: 1
Location: Denver, CO

PostPosted: Sat Oct 15, 2005 5:18 pm   

noob trigger question
 
I am a total MUD noob, and need some help setting up a trigger. I want the trigger to fire a drink command based on my prompt "thirst" level

my prompt looks like this:

[20000exp] <400hp 400mana 400move><48thirst>

the prompt variable on the MUD for thirst is $t

I want to automatically drink from a jug in inv whenever the thirst # gets below 40

Can anyone help??

thanks,
Crayola
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Oct 15, 2005 7:37 pm   
 
#TRIGGER {^~[%dexp~] ~<%dhp %dmana %dmove~>~<(%d)thirst~>} {#IF (%1<40) {drink from a jug in inv}} "" {prompt|nocr|notrig|case}

Just copy that into the command line, hit enter, and then you should be good to go.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
saplingg
Novice


Joined: 06 Oct 2005
Posts: 31

PostPosted: Mon Oct 17, 2005 4:36 am   
 
Wouldn't you need to make it <(%1)thirst~>} in that case, Vijilante?

edit: Sorry if it seems like I'm contesting you, but I'm quite a newb too and am seeking clarification myself.
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Mon Oct 17, 2005 7:41 am   
 
usually you use the different letters %d/n for numbers %x/w for words %s for space, inside the pattern, and in value you use %1/2/3/etc, for the call of them.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Oct 17, 2005 8:25 am   
 
Read the help on Pattern Matching. It is found in the contents Reference section or from one of the many cross references in the #TRIGGER command.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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