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
kewlkidbrent
Beginner


Joined: 21 Mar 2009
Posts: 12

PostPosted: Mon Feb 01, 2010 2:46 pm   

I am Having trouble with my #IF alias
 
ok what I want is simple but it keeps entering the script instead of what I want
#if (@stance=0) {scs}
mnk @target
ucp @target
ucp @target
all I want it to read is if the variable Stance is 0 enter scs
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Feb 01, 2010 7:11 pm   
 
if you are seeing code flash by on your script, this generally means you have a syntax error somewhere in your scripts--most likely a missing {} or (). It's not in the above code.
_________________
EDIT: I didn't like my old signature
Reply with quote
bebamedo
Novice


Joined: 02 Aug 2006
Posts: 32

PostPosted: Mon Feb 01, 2010 7:21 pm   
 
if I am not mistaken the first line needs to be written with empty spaces before and after "="sign

#if (@stance = 0) {scs}
Reply with quote
kewlkidbrent
Beginner


Joined: 21 Mar 2009
Posts: 12

PostPosted: Mon Feb 01, 2010 9:33 pm   
 
MattLofton wrote:
if you are seeing code flash by on your script, this generally means you have a syntax error somewhere in your scripts--most likely a missing {} or (). It's not in the above code.


that's the problem I can't find whats wrong the code #if (@stance=0) {scs} doesnt work correctly it enters that into the prompt instead of just entering scs or nothing at all. and the space imbetween doesn't fix it
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Feb 01, 2010 9:45 pm   
 
I already evaluated your code. There's absolutely nothing wrong with it. Without more info, we can't help you.
_________________
EDIT: I didn't like my old signature
Reply with quote
kewlkidbrent
Beginner


Joined: 21 Mar 2009
Posts: 12

PostPosted: Mon Feb 01, 2010 9:46 pm   
 
this is what happens when I hit the alias and am in stance
#if (Scorpion=0) {scs}
mnk thief
ucp thief
ucp thief

and when I am not in stance it says
#if (0=0) {scs}
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