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
quicksilver85
Beginner


Joined: 16 Jan 2004
Posts: 15
Location: USA

PostPosted: Thu Mar 04, 2004 3:53 am   

%lastcom returns 0
 
I am attempting to use the lastcom function to do two different things... one of which is to make my character swim in a peticular direction after recieving the message that there is water to swim through:
***I walk with macros that are set as follows for example west: w;aoff***

((macro for w: w;aoff))
There's water ahead of you.
((swim %lastcom2))


For some reason lastcom returns aoff lastcom2 returns 0 and lastcom3 returns aoff.
This only happens on the comp I am using now but not any others. I am using the EXACT same system because I am uploading it to a server to transfer back and forth.

I am also try to get it to do the same thing for opening doors.

The line for a door is as follows:

There is a door in the way.

Same thing happens here as well.

Like I said only happens on this comp, but not any others...
HELP!
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Thu Mar 04, 2004 1:08 pm   
 
This is what works for me:

#trigger {^There's water ahead of you. You'll have to swim in that direction to make it} {swim %word( %nextdir, 1, "|")}

With this I can just move into the room (via automapper paths, slowwalk, typing "n", or clicking the buttons on my button bar) and if there's water I automatically swim. If I'm flying or someone's parted the waters it still works. Once in a rare while this doesn't work, it sends "swim " or "swim swim s" or something else bogus; but if I repeat the command it usually does.
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