Page 1 of 1

buggy script (cmud)

Posted: Tue Apr 19, 2016 6:35 pm
by hudin
can anyone advise me on why this script is not working please?

Communication script
# CLASS{communication}
#TRIGGER {%w chats ~'*~'} {#CAP Global;#GAG}
#TRIGGER {You reply to %w ~'*~'} {#CAP Tell;#GAG}
#TRIGGER {%w narrates ~'*~'} {#CAP Global;#GAG}
#TRIGGER {You chat ~'*~'} {#CAP Global;#GAG}
#TRIGGER {You narrate ~'*~'} {#CAP Global;#GAG}
#TRIGGER {%w bellows '*'} {#CAP Global;#GAG}
#TRIGGER {%w speaks from the * '*'} {#CAP Global;#GAG}
#TRIGGER {%w tells you ~'*~'} {#CAP Tell;#GAG}
#TRIGGER {You tell %w ~'*~'} {#CAP Tell;#GAG}
#TRIGGER {%w narrates ~'*~'} {#COLOR orange}
#TRIGGER {%w chats ~'*~'} {#CAP Chats;#GAG}
#TRIGGER {You chat ~'*~'} {#CAP Chats;#GAG}
#CLASS 0

idealy this will generate 2 coms windows.

Re: buggy script (cmud)

Posted: Tue Apr 19, 2016 8:45 pm
by Taziar
I use zMUD so this might not be right...

You are using 3 different #CAPTURE commands so that should be 3 windows...

Need a space in #CLASS {communication} (and have a space between # and CLASS) though all of that may just be a copy/paste mistake

Don't think you need to ~ out the ' '

And just a note: #GAG is going to remove the text, but you will still get a blank line feed... it is annoying. On the version I use I left them in main screen and just use the comms window for backup. It looks too weird without the globals in main screen for me. *shrug*

Check out my stuff... not sure it will work for cMUD... eventually I plan on buying cMUD and porting everything over but that hasn't happened yet.

http://www.wotmudarchives.org/forum/vie ... f=8&t=2409

Re: buggy script (cmud)

Posted: Wed May 04, 2016 7:19 am
by Alison
I fixed it for him. Was a syntax error.