|
belial007 Newbie
Joined: 21 Aug 2009 Posts: 3
|
Posted: 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! |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
belial007 Newbie
Joined: 21 Aug 2009 Posts: 3
|
Posted: 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. |
|
|
|
|
|