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
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: 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?
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Aug 04, 2003 3:49 am   
 
You should also be able to eliminate the variable and use

swim %item( %lastdir(), 1)
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