|
bajerose Newbie
Joined: 28 Nov 2015 Posts: 4
|
Posted: Thu Apr 15, 2021 12:16 am
Speedwalking and sneak |
Hey all,
Is there a way to apply sneaking when I walk/speedwalk instead of having to go sneak e, sneak s, etc? |
|
|
|
hpoonis2010 Adept
Joined: 18 Jun 2019 Posts: 279
|
Posted: Thu Apr 15, 2021 8:18 am |
You only 'sneak' for movement into one room only? Not a mud command which sneaks until combat/etc?
For one-room sneak you can set an event (probably OnRoomWalk) to fire sneak...and probably even limit it to a particular zone. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Apr 17, 2021 7:39 pm |
You can use variables and an #ONINPUT trigger.
I have a similar feature for sailing in a MUD I play.
Code: |
#ONINPUT {^(%w)$} {
#IF (%reversedir( %reversedir( %1))) {
lastDir=%reversedir( %1, 1)
#IF (@vessel) {sail %reversedir( @lastDir, 1)}
}
#IF (%ismember(%1, {dive|disembark|drydock})) {#CALL %pop(vessel);#T- Myship}
} |
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|