|
Univarsity Beginner
Joined: 24 Jan 2003 Posts: 11 Location: USA
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Univarsity Beginner
Joined: 24 Jan 2003 Posts: 11 Location: USA
|
Posted: Fri Aug 14, 2020 6:16 pm |
Thank you Shalimar. Can you give me an example of how I would make my own?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|