buggy script (cmud)

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Post Reply
hudin
Posts: 3
Joined: Sat Apr 16, 2016 3:49 pm

buggy script (cmud)

Post by hudin » Tue Apr 19, 2016 6:35 pm

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.

Taziar
Posts: 961
Joined: Sat Mar 21, 2015 10:28 pm

Re: buggy script (cmud)

Post by Taziar » Tue Apr 19, 2016 8:45 pm

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

Alison
Posts: 821
Joined: Mon Mar 30, 2015 3:09 am
Location: South Africa
Contact:

Re: buggy script (cmud)

Post by Alison » Wed May 04, 2016 7:19 am

I fixed it for him. Was a syntax error.

Post Reply