|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Mon Jul 28, 2003 10:02 pm
Last direction that you moved. |
In my mud, if you enter a shop while riding anything, you get booted out of the shop.
I need to make a trigger to capture this situation, and move the map back, problem is, the %lastdir() function contains nothing when I trigger on the "Throws you out of the shop" line.
Any ideas?
Regards
Marts |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Jul 28, 2003 11:30 pm |
Try %lastcom, %lastcom2, or even %lastcom3. The easiest way to check these is by using the #VAR command with no arguements.
|
|
|
|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Tue Jul 29, 2003 4:52 pm |
I have found that %lastdir works if you're in map creation mode, but as I want to to work while following, that dosn't help.
%lastcom ... they do have stuff, but it's from the triggers that fire upon room entry.
Hmmm |
|
|
|
Baldorf Newbie
Joined: 29 Jul 2003 Posts: 1 Location: Netherlands
|
Posted: Tue Jul 29, 2003 10:32 pm |
i used to have a simular problem
and i fixed it by adding aliases like
#alias n {#var Lastmove "north";@lastmove} {Directions}
after that you always have a few on what your last move was |
|
|
|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Wed Jul 30, 2003 4:23 pm |
hmm good idea, it wouldn't work for stacked directions, but that could be fixed by making a queue and removing the top item on a successful room entry.
I think I will give this a go.
Regards |
|
|
|
|
|