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
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Jun 29, 2004 10:16 pm   

Displaying text without firing triggers
 
I'm looking for a method to display text in the MUD output window that doesn't trip my triggers or get in the way of multi-line conditional triggers. The commands #show, #echo, and #say all cause my triggers to execute. Is there a way to display text that prevents this? Or is it simply the 'Trigger on Commands' setting that is supposed to take care of this?

I ask because I want my #oninput triggers to continue firing, but I don't want my #say commands to fire triggers. My main problem is the multi-state triggers that use Within Lines|Param = 1.

For example:

#TRIGGER {%w hits you.} {attacked = 1;#say Attacked!}

(in another class folder)
#TRIGGER {%w hits you.} {}
#COND {Your left leg breaks.} {mend leg} {within|param=1}

If the first trigger fires before the second, the condition part never fires because the "Attacked!" message is the next line. Changing the firing order of the triggers isn't really an option for me, either, as there are dozens of echo commands sprinkled throughout my massive healing script and they're all in various class folders.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jun 30, 2004 3:28 am   
 
Sorry, I don't know of any way to display text in the MUD window without the possibility of affecting triggers.

However, it could easily be displayed elsewhere such as on the status line, in a #MESS window, or in a button made for that purpose.
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