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
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Sun Jan 16, 2005 9:17 pm   

Alias works but getting syntax errors
 
I was curious if there is a way to fix the syntax error with this alias.

#alias strikes {#%1 strike %2}

I know first word after strikes must be a #. Is there any way to make sure that it is, in such a way to get rid of the syntax error, it just bugs me.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Sun Jan 16, 2005 11:37 pm   
 
use %if(%isnumber(%1),#%1 strike %2) then... cuz I assume you want to strike X-amount of times. Thus it won't do the command unless it's numeric.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jan 17, 2005 1:27 am   
 
#AL strikes {#REPEAT %1 {strike %2}}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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