About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
atheaker
Newbie


Joined: 10 Dec 2011
Posts: 9

PostPosted: Sat Dec 10, 2011 9:14 pm   

Trying to learn.
 
Was wondering if perhaps anyone might be able to lend a helping hand. Been trying to learn how to make some of these aliases in cmud through the help files.

Friend helped me make a stepper for walking me through areas but when I changed from zmud to cmud it stopped working.

Name: m

#AL {dstep @dstep} {
%1
#ADD dstep 1
}
#ADD dstep 1
%1

the idea of this was to make an alias called (dstep 1/dstep 2/dstep 3) as I walk through areas for making my own step by step script. when it makes dstep 1 it gives it the value of "%1;#add dstep 1" instaed I was trying to get the value of the direction i went, and the #add step. (If this makes any sense) This is probably a terrible way to make a file folder of step directions to follow, but I tried makinga speedwalk path, and having it step/pause every round, but seemed if i manually moved off that path it would spam the entire path at me.

Trying to learn, but don't know alot about scripting. lol
(Looking for help)

Thanks
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Sun Dec 11, 2011 9:10 pm   
 
first, try spelling the name out more #AL could be #ALIAS or #ALARM
second, make sure the map is in safe walk mode (the button with the cross shield)

Also, if you know the name of the room you want to end up in, you could do something like....

destination=roomID here

Code:
#ALIAS nextStep {#SEND {%item( %pathexpand( %pathfrom( %roomnum, %roomkey( %mapvnum( @destination)))), 1)}}


That will send the single next direction to get to your destination

As for keeping track of the direction you came from i like this:

Code:
#ONINPUT {^(%w)$} {#IF (%reversedir( %1)) {lastDir=%reversedir( %1, 1)}}
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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