|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: 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? |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: 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.
|
|
|
|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: 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. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: 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.
|
|
|
|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: 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. |
|
|
|
|
|