Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
belial007
Newbie


Joined: 21 Aug 2009
Posts: 3

PostPosted: Wed Sep 16, 2009 5:48 am   

#setprompt with a multiline mud prompt?
 
I am wanting to use setprompt to capture several pieces of info from my multiline mud prompt. Is it possible to grab using this command? or will i have to use a normal trigger? Here is a sample of my prompt:
Code:
Main [HP: 299/299][SP:250/250][GXP: None][Enemy:None]
Main [Brood:0][Overload: 0.00 (Off)][Shield:On][Tier: novice]
Form[Control: Complete][Info: ][Bloodrush: 1][Choose:92]
Form [Boost:2 (.)][Reg: No][Fort:315/315][Perception: 2]

Obviously im wanting the hpcurr/hpmax and spcurr/spmax values, but then also the 'overload' numeral value from the second line, and the "fort" curr/max values.
Thanks in advance!
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Sep 16, 2009 3:08 pm   
 
If the prompt is multi-line then you'll have to use a normal trigger to capture the information.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Sep 16, 2009 9:50 pm   
 
Yikes! You get all of that for each MUD prompt? That would be horribly spammy for me.

The #setprompt just creates an internal simple trigger. So as Tech mentioned, you can certainly create your own normal trigger with multiple states to capture each line of information. Also take a look at the #SUB command and you might find ways to simplify the prompt and put it all back onto a single line, or just put the relevant information into your status bar and gag the entire prompt itself.

Good luck with it. That's definitely one of the most complex prompts I've seen.
Reply with quote
belial007
Newbie


Joined: 21 Aug 2009
Posts: 3

PostPosted: Thu Sep 17, 2009 1:58 pm   
 
Lol. yeah its my combat prompt. all the rest of the time the mudprompt is just a simple '>'
Trigger time it is! Thanks for the info.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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