VIPMud - Chainwalk
Posted: Thu Nov 23, 2017 10:17 pm
Someone mentioned wanting a chainwalk style command for VIPMud today and nerd sniped me hard. Got it to work though.
Note: This is the first thing I've ever created for VIP Mud, so if there's a more effective way to provide it, or something blatantly obvious needs to be added, let me know if you could.
usage: chainwalk east,north,east,go gate,go arch,south,go stables,wander
using chainwalk, provide each direction you would like to go (including go commands e.g. go gate, go arch, wander, out) and chainwalk will incrementally execute the directions with a 1.5 second delay after arriving to the previous room.
usage: chainstop
chainstop will delete any queued chainwalk commands. If you get stuck in combat, find someone you want to talk to, or otherwise need to stop chainwalking, this command is very important to remember.
To use chainwalk for VIPMud:
Paste the following code block into your .set file for your character and/or the Clok mud within VIPmud.
Note: This is the first thing I've ever created for VIP Mud, so if there's a more effective way to provide it, or something blatantly obvious needs to be added, let me know if you could.
usage: chainwalk east,north,east,go gate,go arch,south,go stables,wander
using chainwalk, provide each direction you would like to go (including go commands e.g. go gate, go arch, wander, out) and chainwalk will incrementally execute the directions with a 1.5 second delay after arriving to the previous room.
usage: chainstop
chainstop will delete any queued chainwalk commands. If you get stuck in combat, find someone you want to talk to, or otherwise need to stop chainwalking, this command is very important to remember.
To use chainwalk for VIPMud:
Paste the following code block into your .set file for your character and/or the Clok mud within VIPmud.
Code: Select all
#Alias chainwalk {
@chainwalkDirections = %0;
@chainwalkStatus = %pos(",",@chainwalkDirections);
@nextDirection = %left(@chainwalkDirections,%pos(",",@chainwalkDirections)-1);
@chainwalkDirections = %right(@chainwalkDirections,%Length(@chainwalkDirections)-%pos(",",@chainwalkDirections));
#trig {<chainwalk1>You head *} {
#If {@chainwalkStatus = 0} {#Alarm 1.5 {@chainwalkDirections};#UnTrigger chainwalk1;#UnTrigger chainwalk2;};
@nextDirection = %left(@chainwalkDirections,%pos(",",@chainwalkDirections)-1);
@chainwalkDirections = %right(@chainwalkDirections,%Length(@chainwalkDirections)-%pos(",",@chainwalkDirections));
@chainwalkStatus = %pos(",",@chainwalkDirections);
#Alarm 1.5 {@nextDirection};
};
#trig {<chainwalk2>You venture *} {
#If {@chainwalkStatus = 0} {#Alarm 1.5 {@chainwalkDirections};#UnTrigger chainwalk1;#UnTrigger chainwalk2;};
@nextDirection = %left(@chainwalkDirections,%pos(",",@chainwalkDirections)-1);
@chainwalkDirections = %right(@chainwalkDirections,%Length(@chainwalkDirections)-%pos(",",@chainwalkDirections));
@chainwalkStatus = %pos(",",@chainwalkDirections);
#Alarm 1.5 {@nextDirection};
};
@nextDirection;
};
#Alias chainstop {
#say {Stopping chainwalking};
#UnTrigger chainwalk1;
#UnTrigger chainwalk2;
};