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


Joined: 15 Dec 2002
Posts: 35

PostPosted: Fri Jun 20, 2003 5:37 pm   

%1-
 
i wanted an alias to add whatever message i wanted to a class of triggers that set the tick timer...
i could have sworn that i read somewhere before that %1- would add everything?

as it is now, it only makes a trigger for %1 and a - literally behind it.. heh

#alias addtick {#if (%1) {#trigger {%1-} {#ts 65} tick} {#say Add Tick Message?}}
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Fri Jun 20, 2003 5:44 pm   
 
*CLUB*

%-1
Reply with quote
dime
Novice


Joined: 15 Dec 2002
Posts: 35

PostPosted: Fri Jun 20, 2003 5:48 pm   
 
aha! my thanks

for some reason, it doesn't seem to work for the message

[addtick Auto-save complete.]
Add Tick Message?

this isn't as much a problem... i was just curious if in the future, i should use a different/better syntax to avoid things like this..
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jun 20, 2003 6:18 pm   
 
Try:
#IF (!%null("%-1")) {#TRIGGER ...} {#SAY ...}

Kjata
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