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
Sylmannemo
Beginner


Joined: 20 Oct 2006
Posts: 18

PostPosted: Mon Oct 23, 2006 6:34 am   

Prompt Help
 
I'm having trouble setting a trigger that monitors my prompt as the prompt line itself contains <>'s but now as a start and a finish as #SETPROPMT would allow easier, but as a finishing aspect.
Using either a normal reflex or the #SETPROMPT could someone help me out? Preferably a trigger.
What I'm running right now is

#REGEX {H\:%1 M\: %2 \<%3\>} {
#var Currenthealth %1
#var currentmana %2
#var promptstats %3

I just can't get it to work though. A bit more explanation of the prompt setup is shown below.

H:312 M:309 <eb>

"e" on it means you have equilibrium.
"b" means you have balance.

"p" is prone
"f" is flying
"b" is blind.
"d" is deaf.
"s" is stunned.
"@" is extradimensional
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Oct 24, 2006 8:32 pm   
 
Code:
#REGEX {^H\:(\d+) M\:(\d+) \<(.*?)\>} {currenthealth = %1;currentmana = %2;promptstats = %3} "" {nocr|prompt}

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