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
Minoc
Newbie


Joined: 05 Sep 2006
Posts: 3

PostPosted: Tue Sep 05, 2006 2:21 am   

Comparator trouble
 
I'm trying to put the following line in an alias:

#IF ( %roomnum( ) = 3883 ) {d}

The obvious intent is that if I'm in a certain room, I want to go down. If not then I do nothing.

I've gotten similar aliases to work with ">" and think the problem is with the comparator "=".

What am I doing wrong?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Sep 05, 2006 5:01 am   
 
How are you using the alias? I don't see anything at all wrong with the above code, so it might be how/where you are using the alias.

And, just so we can get the stupid question out of the way, is the mapper open? Smile
_________________
EDIT: I didn't like my old signature
Reply with quote
Minoc
Newbie


Joined: 05 Sep 2006
Posts: 3

PostPosted: Tue Sep 05, 2006 7:03 am   
 
This was to be the very first line in the alias, and after coding it, I saved and tested it. So as it stands now, this is the only line in the code. When I can get it to execute properly, I'll code the rest of the alias.

And yes, the mapper is open.
Reply with quote
Minoc
Newbie


Joined: 05 Sep 2006
Posts: 3

PostPosted: Tue Sep 05, 2006 7:05 am   
 
And just to clarify things further, I'm certain I'm in room number 3883 when I test it.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Tue Sep 05, 2006 10:46 am   
 
Try eliminating the extra spaces and see if it is happier. You can always add them back in 1 at a time to see which was causing the failure.
#IF (%roomnum()=3883) {d}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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