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
jmmq
Newbie


Joined: 22 Nov 2007
Posts: 6

PostPosted: Sun Dec 09, 2007 11:18 pm   

last dir in slow walk (w/o mapper)
 
Ok, i have a slow walk script that goes to different areas and do some things,
sometimes for problems with mobs or something i need to re-enter the last dirrection sended to the mud.

example...
script does N
mud=> U are currently fighting
i need to re-do the N (or any dirrection) when the mob dies and continue the slowwalk in the right room.

p.d: I'm not using the mapper for this.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Dec 10, 2007 1:49 am   
 
You can simply all you move commands n,w,s,e etc to store the direction in variable. That way you trigger can check to see if you moved successful then resend the lastdir variable.

The mapper has a %lastdir special variable, but since you're not using the mapper I don't think it will you.
_________________
Asati di tempari!
Reply with quote
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: Mon Dec 10, 2007 5:19 am   
 
Yeah, I did something like this and ended up just storing the direction myself in a varable done from the alias
#alias {e} {#send east;#var lastdir east}

#trig {When the fight is over} {@lastdir}
Reply with quote
jmmq
Newbie


Joined: 22 Nov 2007
Posts: 6

PostPosted: Mon Dec 10, 2007 10:40 pm   
 
Thx

can i store the direction in a variable from the direction settings?
i mean...
because
my e direction = e|este|est|east comands
or i should name the alias with the first entry of commands (e) ?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Dec 11, 2007 3:47 am   
 
Perhaps an oninput trigger would be easiest.

#oninput {({north|south|east|whatever})} {lastdir = %1}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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