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
vileplume
Novice


Joined: 26 Dec 2001
Posts: 43
Location: USA

PostPosted: Tue May 14, 2002 3:16 am   

Help with special character use in #SUB please?
 
I'm trying to alter my skills list using the #sub command in a trigger to display MY zmud syntax for executing the command instead of the less meaningful description given by the mud. I'm running into a little trouble and wondered if there was a way around it.

Basically, my trigger looks like this:

#TRIGGER {Cancelling spirit defenses}
{#SUB {SYNTAX can %1}}

When pattern is matched, it displays the following:

SYNTAX can

How can I get it to display the %1 part of my syntax? I tried putting a ~ in front of the %1, like this {#SUB SYNTAX can~%1} as suggested by the help file on special characters, but it displayed exactly the same as without the ~ inserted.

What's the trick here?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 14, 2002 5:26 am   
 
Double up on the %.

#TRIGGER {Cancelling spirit defenses} {#SUB {SYNTAX can %%1}}

LightBulb
Vague questions get vague answers
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