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


Joined: 03 May 2003
Posts: 9
Location: New Zealand

PostPosted: Wed Sep 03, 2003 11:21 am   

onwalkend usage
 
Is there a way to use 'onwalkend' inside an alias and only for that alias?

For example, I have been guided by this helpfile http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=12055&SearchTerms=onwalkend

#ALIAS {walk} {brief on;#WALK 2735;#ALIAS onwalkend {brief off}}

In my example I have altered it to walk to a set room. It works brilliantly for the alias, but also sends 'brief off' everytime I speedwalk using the map. I only want the command (eg 'brief off') to be sent when I am using this alias. I aim to chain further commands after the alias walk is completed, but don't want them occuring after every speedwalk.
Reply with quote
MrTickle
Newbie


Joined: 03 May 2003
Posts: 9
Location: New Zealand

PostPosted: Wed Sep 03, 2003 11:56 am   
 
Hold up...

Had been trying this in offline mode. It actually works smoothly in 'real world' practice. In an sequence I already had set up, I simply added the following items on the next lines after my #Walk command ...

#AL onwalkend
#ECHO Action

I have a trigger in the room script to take certain actions when it sees the 'Action' text. It seemed to me that although I saw the ECHO onscreen long before I arrived at my destination (which is what was confusing me), Zmud still processes the commands in order so Echo is delivered into the right room.

Sorry for posting then answering my own question. Hope this might help someone else who might make the same mistake/misconception though.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Sep 03, 2003 3:52 pm   
 
The problem is that the alias is defined permanently, so it will affect other walks. A walk-around, like you mentioned, is to clear the alias for each walk. You can also create a kind of "temporary" alias by having it delete itself once it fires:
#ALIAS onwalkend {brieff off;#UNALIAS onwalkend}

This is untested, but in theory, it should work.
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