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
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Sun Oct 31, 2004 5:11 pm   

Reparse string as MUD output?
 
Here's the run down: Sometimes texts spills over onto the end of my prompt line, so I created a trigger for my prompt to substitute the line and replace, capturing the extra text at the end of the line into a variable and then placing it below the prompt, where it should be. That works fine and as it should, but I've recently created a few more things that sometimes use that extra text as a trigger pattern...

So, is there a way I can force zMUD to reparse the string in the variable as if it were fresh output from the MUD? I've tried using #ECHO and #SHOW but those place the text in weird places. Tried putting it in a #PRIORITY to see if that would work, but it didn't.

Any ideas?
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Sun Oct 31, 2004 6:39 pm   
 
%trigger, as a variable, will show the entire line that the current trigger triggered from. That should give you all the information you want from the line again.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Sun Oct 31, 2004 7:43 pm   
 
I already have all the information from the line that I need. I just want zMUD to reparse a section of the line that I've captured and stored into a variable. I'm using #SUBSTITUTE so it won't automatically reparse the line like I'd want it to.

I'll post an example if requested.
_________________
Implementor at House of Ghouls
Telnet to House of Ghouls
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Mon Nov 01, 2004 3:10 am   
 
As you yourself stated, using #sub will not get the line reparsed, so you'll need to #gag both prompt lines and #say the new prompt line. This will cause it to get reparsed by triggers.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Mon Nov 01, 2004 5:14 pm   
 
Using #SAY, #ECHO, #SHOW, ect.. they all end up placing the lines in the wrong place, usually after another line from the MUD has been recieved. The only time that happens is when I'm running from zone to zone rather quickly or in some fast-pased combat. During combat, it's important that the lines be placed in the right position and parsed correctly in order to fire the appropriate triggers and such.

Maybe Zugg could add in a %reparse() function in a future version that could reparse a given string and fire any aplicable triggers.
_________________
Implementor at House of Ghouls
Telnet to House of Ghouls
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