 |
Minoc Newbie
Joined: 05 Sep 2006 Posts: 3
|
Posted: 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? |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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?  |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Minoc Newbie
Joined: 05 Sep 2006 Posts: 3
|
Posted: 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. |
|
|
 |
Minoc Newbie
Joined: 05 Sep 2006 Posts: 3
|
Posted: 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.
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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 |
|
|
 |
|
|