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


Joined: 22 Sep 2003
Posts: 53
Location: United Kingdom

PostPosted: Tue Sep 30, 2003 8:03 pm   

Performing actions when leaving a room
 
I need to be able to perform an action when leaving a room down a link. The reason for this is that some exits have a long round time before they reach the next room and the automapper times out on these. First I tried to use the "other" direction option with a command alias of "qmove <dir>". The qmove alias paused the walk then resumed when the delay was up. This works great when the <dir> is a standard one (e,s,se etc). However, the mud uses a lot of portal exits most of which use the "go <something>" type syntax. I tried to put "qmove go gate" for example in the other option. While my alias is still called and everything looks to work OK the mapper does not recognise this as a valid exit and fails. (The Queue: lable always stays on <empty>).

Has anyone got a better idea on how to fix this or a different way to try and get the same result.

I did try this in a second way as well - using a scrip in the room to test if a slow walk was in progress by testing %inwalk. However, if I look at %inwalk, %nextdir or %lastdir inside the room script they are not valid. Is this a bug or feature?
Reply with quote
Andromeda
Beginner


Joined: 29 Aug 2003
Posts: 25
Location: USA

PostPosted: Thu Oct 02, 2003 9:41 pm   
 
*warning* total novice here. :)

I don't know if we are talking the same problem here or not. In the game I play (Dragonrealms) roundtime occurs after movement into a room. What I found is that with slow walk is that imediately on recognising the movement into a room the next movement would be issued which would fail because of the round time in effect.

My solution was to remove room title recognition. Then I created a trigger that identified room entry. If no roundtime was in effect it would immediately signal #ok. If there was roundtime it would use an alarm to signal #ok after the time remaining in the round time. I had to of course increase the slow walk timeout for the largest likely roundtime.

That brings me to a question: is it possible to set or even disable the slow walk timeout from a script?
Reply with quote
Smokabul
Novice


Joined: 27 Sep 2002
Posts: 37
Location: USA

PostPosted: Tue Mar 16, 2004 12:41 pm   
 
try making use of the onroomenter alias which executes a command on the entering of each room, on that alias set an alarm which echoes something then set a trigger to match the echo, make that trigger do %nextdir. or something like that.

cheers ;) Smok
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