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
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Tue Mar 30, 2004 4:59 pm   

Some more help needed...
 
Sadly I've run into a problem again but this time it has to do with my channel capturing script.

I sat here for about an hour taking some code I used for one of my channels and making it so I thought it would do the same for all my channels.

Code:


#CLASS {Channels}
#TR capture {~(Thieves~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Warriors~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Witches~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Wizards~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Priests~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(rtfm~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Adventurers~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Two~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(A'Tuin~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Intermud~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Apex~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Assassins~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(playerkillers~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(playtesters~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Catfish~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Fish~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Gapp~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Gufnork~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Hat~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Pishe~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Sandelfon~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Sek~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(theAgateanEmpireCouncil~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(KlatchCouncil~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(KlatchCouncilMagistrate~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Ankh-MorporkCouncil~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Ankh-MorporkCouncilMagistrate~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(DjelianGuard~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(KlatchianForeignLegion~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Samurai~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Imperial Guard~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(LancreHighlandRegiment~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Hunters~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(HublandishBarbarians~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Ankh-MorporkPalaceGuard~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(WeaponMasters'Court~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(Newbie~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(dwchat~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(intercre~)} {:CHANNEL:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CHANNEL;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(cre~)} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(code~)} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(liaison~)} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(am~)} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {~(crime~)} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You cre-tell:} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You code-tell:} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You am-tell:} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You liaison-tell:} {:CRE:#SAYP {%time( hh:nn)};#CAP CRE;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP CRE;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You tell &temp} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You ask &temp} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp tells you:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp asks you:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You exclaim to} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp exclaims to you:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp says:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp exclaims:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp whispers to:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {tells &temp and you:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp asks:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You &temp ask} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You &temp tell} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {You &temp exclaim} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#TR capture {&temp exclaims in Agatean:} {:TELLS:#SAYP {%time( hh:nn)};#CAP TELLS;#GAG}
#COND {(*)} {#IF %begins( "%1", " ") {#CAP TELLS;#GAG} {#STATE capture 0}} {Looplines|Param=9}
#CLASS 0



I did that all in a text file and didn't do it in the settings editior as i knew this *should* work. But alas it does not work and will only work for one channel for some reason. The thing is I need it for multiple channels and multiple forms of comunications. I'm not quite sure where to look now either as I've been plodding through helps files and such and can't get the slightest clue on how to make this work.

Thanks!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Mar 30, 2004 7:55 pm   
 
The syntax for the #TRIGGER is as follows:
#TRIGGER [id] pattern command [classname] [options]

In your script, all triggers have an id of "capture". This means that zMUD will create one trigger and then overwrite it when the next #TRIGGER command with the same id is reached. This happens over and over again and your are left with just the last trigger.

You should then give each trigger a different id. However, as you change the id for each trigger, be sure to change the corresponding id that is given as a parameter to the #STATE command in that trigger.
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