 |
darkspot Apprentice
Joined: 29 Jul 2002 Posts: 105
|
Posted: 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. |
|
|
 |
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: 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.
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
 |
|
|