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


Joined: 25 Aug 2002
Posts: 13
Location: Australia

PostPosted: Sat Dec 14, 2002 5:34 am   

funny trigger reaction
 
Hi i'm running a trigger to catch some output and put it to another window if @writeing is true

the trigger pattern is
~(Jesters~): (%w) says, ~"(*)

the expression is
#if (@writeing) {#win jestertells ~jesters~) %1 say's %2}

second state is
(*)

#if (@writeing ) {#win jestertells %1}

(option on second state is loop lines 4)

and what happens is

mud line
(Jesters): Madasluea says, "*hug mom*."
(output from trigger)
{#win


any ideas?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Dec 14, 2002 12:44 pm   
 
Surround your %1's and %2's with double quotes to prevent this error. Generally, if a %n captured value contains more than one word, it should be surrounded in double quotes to prevent errors in parsing commands.

Kjata
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