Initial commit
This commit is contained in:
16
scripts/stroll/stroll_commands.dsc
Normal file
16
scripts/stroll/stroll_commands.dsc
Normal file
@@ -0,0 +1,16 @@
|
||||
stroll_command_stroll:
|
||||
debug: false
|
||||
type: command
|
||||
name: stroll
|
||||
usage: /stroll
|
||||
description: Makes you walk a lil slower, until you run or sneak.
|
||||
permission: stroll.command.stroll
|
||||
tab completions:
|
||||
1: <empty>
|
||||
script:
|
||||
- if <context.source_type> != player:
|
||||
- narrate "<&c>Please run this command as a player."
|
||||
- stop
|
||||
- flag <player> stroll_speed:<player.walk_speed>
|
||||
- adjust <player> walk_speed:0.1
|
||||
- narrate format:formats_prefix "You are now strolling. Sprint or sneak to stop strolling."
|
||||
12
scripts/stroll/stroll_world.dsc
Normal file
12
scripts/stroll/stroll_world.dsc
Normal file
@@ -0,0 +1,12 @@
|
||||
stroll_world:
|
||||
debug: false
|
||||
type: world
|
||||
events:
|
||||
on player toggles sneaking:
|
||||
- if <player.has_flag[stroll_speed]>:
|
||||
- adjust <player> walk_speed:<player.flag[stroll_speed]>
|
||||
- flag <player> stroll_speed:!
|
||||
on player toggles sprinting:
|
||||
- if <player.has_flag[stroll_speed]>:
|
||||
- adjust <player> walk_speed:<player.flag[stroll_speed]>
|
||||
- flag <player> stroll_speed:!
|
||||
Reference in New Issue
Block a user