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
Eowyn
Apprentice


Joined: 19 Jan 2001
Posts: 117
Location: Norway

PostPosted: Sat Jun 07, 2003 10:10 pm   

Words ending with = and %1!=null
 
I've got a bit of an odd problem.
I have the following two aliases:

#alias makeportal {#if (@currentplayer=MyCharacter AND %1!=null) {emote gets ready to gate.};#if (@currentplayer=MyCharacter AND %1=null) {emote makes a record of this spot for future portals.};channel 'portal' %1}

#alias porthome {makeportal VmdodSA2IDAyYjI3MzI3NWExYzczNGQgMjY=}
#alias portsomewhereelse {makeportal U2VncnUgOCBmNDkyNTM1ZGRkZTc4NWM1IDYx}

In other words, the makeportal can be used to memorize the spot you're standing in - or teleport to a previously memorized spot.

Thing is - the emotes don't trigger if the memorized teleportcode ends with a =.

Porthome will just send
channel 'portal' VmdodSA2IDAyYjI3MzI3NWExYzczNGQgMjY=

whereas portsomewhereelse will send:
emote gets ready to gate.
channel 'portal' U2VncnUgOCBmNDkyNTM1ZGRkZTc4NWM1IDYx

Why is words ending with = not counted as null? What can I do to correct this? (Putting the emotecode in all the port-aliases is not an option.)

Thx :)

-E
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jun 07, 2003 10:28 pm   
 
Try surrounding the %1 with double-quotes.

Kjata
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