|
jat63 Wanderer
Joined: 22 Sep 2003 Posts: 53 Location: United Kingdom
|
Posted: 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? |
|
|
|
Andromeda Beginner
Joined: 29 Aug 2003 Posts: 25 Location: USA
|
Posted: 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? |
|
|
|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: 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 |
|
|
|
|
|