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


Joined: 24 Jan 2003
Posts: 11
Location: USA

PostPosted: Mon Aug 10, 2020 8:11 pm   

Slow Walk (Step)
 
Is there a way to initiate the first step of a slow walk, and type #STEP every time that you'd like to move to the next room? I'm having a difficult time just initiating the slow walk because it always moves the entire route of the path instead of moving slowly as it is suggested.

I have a path saved under the name test. The movements are 3es4en5eswnw

when I type #SLOW test nothing happens. When I click on the actual paths button and click the step button, it allows me to take the first step east and I can type #STEP to finish the entire path until it's competion.

when I type .test it fastwalks me through the entire path.

Is there a way to initiate the step feature of the test path manually without the need of clicking the paths button, clicking on test, and then clicking on the step button?
Reply with quote
shalimar
GURU


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

PostPosted: Mon Aug 10, 2020 9:20 pm   
 
I tend to not use the inbuilt system and just make my own:

#IF (@destination) {#EXEC %pop(%pathexpand(%pathfrom(, @destination)))}

You can pop that in an alias for manual use or by script.
_________________
Discord: Shalimarwildcat
Reply with quote
Univarsity
Beginner


Joined: 24 Jan 2003
Posts: 11
Location: USA

PostPosted: Fri Aug 14, 2020 6:16 pm   
 
Thank you Shalimar. Can you give me an example of how I would make my own?
Reply with quote
shalimar
GURU


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

PostPosted: Fri Aug 14, 2020 7:07 pm   
 
That was the example, to make it work you just set @destination to be the %roomnum or %roomid of where you want to end up. and throw all that mess in a trigger, with some cleanup:

Code:
#TR {Obvious exit} {
  //First we check to see if we have a destination in mind.
  #IF (@destination) {
    //Then we check to see if we are at said destination.
    #IF ((%match( @destination, %roomid)) OR (%roomnum=@destination)) {
      //If so, we Say as much.
      #PRINT {You have reached: %pop( destination)}
      } {
      //Else we take the next step.
      #EXEC %pop(%pathexpand(%pathfrom(, @destination)))
      }
    }
  }
_________________
Discord: Shalimarwildcat
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