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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4717
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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