|
crayola5150 Newbie
Joined: 15 Oct 2005 Posts: 1 Location: Denver, CO
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
saplingg Novice
Joined: 06 Oct 2005 Posts: 31
|
Posted: 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. |
|
|
|
darkspot Apprentice
Joined: 29 Jul 2002 Posts: 105
|
Posted: 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.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|