Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Hazram
Wanderer


Joined: 24 May 2005
Posts: 71

PostPosted: Thu Aug 04, 2011 12:54 am   

Trouble with %lastdir
 
<event event="onRoomEnter" priority="2630" id="263">
<value>#SHOW %lastcom</value>
</event>

This works, but when I replace %lastcom with %lastdir, I get nothing. The mapper is on.

I've tried a bunch of other things with %lastdir, but none work. Is there something about the mapper command queue I'm missing? I just want to retrieve the lastdir when creating a room, for use in scripting.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Aug 04, 2011 2:10 am   
 
Once you've moved, the queue is cleared, and %lastdir will become null. %lastcom is probably your best bet, as you've discovered.
Reply with quote
Hazram
Wanderer


Joined: 24 May 2005
Posts: 71

PostPosted: Thu Aug 04, 2011 7:03 am   
 
Thanks Daern. Now if I can just figure out the order of execution for events, room creation, triggers, and so on.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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