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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Tue Jul 28, 2009 3:36 am   

[3.10 Pro] Feature Request: For OnRoomEnter/Create, add the previous room as %2
 
It's often useful to know where you are coming from when the events OnRoomEnter/OnRoomCreate fire. Could %2 be added as the room number of the previous room?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jul 28, 2009 4:15 am   
 
I looked into this, but unfortunately this is extremely difficult. Because of the complexity of various speedwalk modes, when the event fires it doesn't really know what room you were in before. You'll need to keep track of this yourself in your own event handler.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Tue Jul 28, 2009 4:19 am   
 
Ah well. At least it was possible on onZoneEnter, which for me was the most useful of the two.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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