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


Joined: 01 Jul 2002
Posts: 81
Location: USA

PostPosted: Sat Dec 21, 2002 2:06 pm   

Room Scripts in 6.4
 
Room scripts are executing before I enter the room.

For example, I have a room script in the bank to check my balance and count the money in my inventory. The new version tries to check my balance and shows me my money before I enter the bank.

Is there a way to set it so the script executes after I have entered the room?

Thanks!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Dec 21, 2002 3:15 pm   
 
Just put a little delay in the room script with #ALARM.
Reply with quote
parrotslave
Wanderer


Joined: 01 Jul 2002
Posts: 81
Location: USA

PostPosted: Sat Dec 21, 2002 5:08 pm   
 
quote:

Just put a little delay in the room script with #ALARM.





I tried that, it just pauses before executing the room script. I still enter the room after the script has executed.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Dec 21, 2002 8:12 pm   
 
Zugg said elsewhere that this is normal behavior in "fastwalk" mode. Try using the "safe" or "slow" modes.

The roomscript gets executed when zMUD arrives at the room, not when your MUD character does. That is, the script is executed at the point when zMUD makes that room the current room on the mapper, regardless of where you actually are in the MUD.

LightBulb
Senior Member
Reply with quote
parrotslave
Wanderer


Joined: 01 Jul 2002
Posts: 81
Location: USA

PostPosted: Sun Dec 22, 2002 1:19 pm   
 
I tried switching to safe mode and slow mode. The room scripts didn't execute in either mode.
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