![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4717 Location: Pensacola, FL, USA
|
Posted: Thu Feb 13, 2003 1:31 am
if 0=#tr else 1=#ec |
It looks like a (%w) trap (about -(%d)).
%if( %2<=(@myskill+10), #tr {TICK IN} {#gag;disarm @mybox}, #ec This @mybox is beyond your skill)
but it gives me a syntax error on the #
i tried ~ing it out but then it doesnt do anything
Shalimar
AIM: shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
Kjata GURU
![](images/avatars/190086853941eff9946d4cf.jpg)
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Feb 13, 2003 2:07 am |
Use #IF instead of %if:
#IF (%2 <= (@myskill+10)) {#TRIGGER {TICK IN} {#GAG;disarm @mybox}} {#ECHO This @mybox is beyond your skill}
Kjata |
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Feb 13, 2003 3:26 am |
To clarify the point Kjata makes, you can always use a %function() or @function() within a #command but you can never use a #command within a %function() or @function(). That was why you were getting the syntax error.
li'l shmoe of Dragon's Gate MUD |
|
|
![](templates/Classic/images/spacer.gif) |
|
|