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
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Mon Jul 28, 2003 10:02 pm   

Last direction that you moved.
 
In my mud, if you enter a shop while riding anything, you get booted out of the shop.

I need to make a trigger to capture this situation, and move the map back, problem is, the %lastdir() function contains nothing when I trigger on the "Throws you out of the shop" line.

Any ideas?

Regards
Marts
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jul 28, 2003 11:30 pm   
 
Try %lastcom, %lastcom2, or even %lastcom3. The easiest way to check these is by using the #VAR command with no arguements.
Reply with quote
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Tue Jul 29, 2003 4:52 pm   
 
I have found that %lastdir works if you're in map creation mode, but as I want to to work while following, that dosn't help.

%lastcom ... they do have stuff, but it's from the triggers that fire upon room entry.

Hmmm
Reply with quote
Baldorf
Newbie


Joined: 29 Jul 2003
Posts: 1
Location: Netherlands

PostPosted: Tue Jul 29, 2003 10:32 pm   
 
i used to have a simular problem
and i fixed it by adding aliases like
#alias n {#var Lastmove "north";@lastmove} {Directions}
after that you always have a few on what your last move was
Reply with quote
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Wed Jul 30, 2003 4:23 pm   
 
hmm good idea, it wouldn't work for stacked directions, but that could be fixed by making a queue and removing the top item on a successful room entry.

I think I will give this a go.

Regards
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