|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Mon Aug 04, 2003 1:02 am
%lastdir() help |
Im using %lastdir() to trigger if I attempt to walk into a room a should have swam into then i want it to trigger off the message to
swim %lastdir()
but what i get in output is
swim e|east
I just need swim e or swim east, any help? |
|
|
|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Mon Aug 04, 2003 1:17 am |
for inquiring minds this is the solution I came up with to solve the problem and it works nicely
@swimdir = %item( %lastdir( ), 1)
swim @swimdir |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Aug 04, 2003 3:49 am |
You should also be able to eliminate the variable and use
swim %item( %lastdir(), 1) |
|
|
|
|
|