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


Joined: 29 May 2002
Posts: 121

PostPosted: Fri Aug 01, 2003 2:48 am   

#Trigger/#Cond commands
 
I would like to change one of my triggers into using a the #cond command.

I have been playing around with it but haven't figure out how exactly to do it. I understand what is mentioned in the follow link but no sure how to set it up in the Front-end.

http://www.zuggsoft.com/library/trigadv.htm

Here is my trigger hopefully someone would know how to change it to using a condition.

#TRIGGER {^You {sense|project} {the|your} thoughts} {
#CAPTURE Thoughts
#IF (%ends( %trigger, %char( 34))) {#T- Thoughts} {#T+ Thoughts}
}

#CLASS {Thoughts}
#TRIGGER {*} {
#CAPTURE Thoughts
#IF (%ends( %trigger, %char( 34))) {#T- Thoughts}
}
#CLASS 0


Thanks
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Aug 01, 2003 4:06 am   
 
#TRIGGER "ThoughtCap" {^You {sense|project} {the|your} thoughts} {#CAPTURE Thoughts;#IF (%ends( %line, %char( 34))) {#STATE ThoughtCap 2}}
#COND {} {#CAPTURE Thoughts;#IF (%ends( %line, %char( 34))) {#STATE ThoughtCap 0}} "looplines|param=99"
#COND {*} {#NOOP This is here to make sure we prevent the trigger from getting locked in state 1}
Reply with quote
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Fri Aug 01, 2003 3:52 pm   
 
Thanks for the reply. My change was almost like yours except I was missing the last #COND with the #NOOP which was why my change wasn't working.

Oracle
Reply with quote
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Sun Aug 17, 2003 10:30 pm   
 
Is there an easy way to put time in front of the first line?

Something that displays such as:

12:03PM You sense the thoughts of Oracle, "This is where the message goes".
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon Aug 18, 2003 11:17 am   
 
There is.
http://zuggsoft.com/forum/topic.asp?TOPIC_ID=8698&SearchTerms=achaea

Into the settings file for the child window, you need to write a trigger.. an example of how this is done in Achaea, is in the linked post above. You'll have to modify it a bit, but if you have any problems, just ask.
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