By default, my game does not let you dash at all, so I have hit the Disable Dashing checkbox on every map. But I'm also implementing a little cheat menu that does a bunch of crazy stuff, and one of the things I want to do with the cheat menu is allow players to dash all the time anyway. Is there a way I can issue an event command to override Disable Dashing on every map?
Is there a way to globally override a map's "Disable Dashing" checkbox?
RGSS3 Script RequestsMoved to: VX Ace Script Requests
Put the following as a new script below all others.
and replace 15 with a switch you haven't used yet. It will be off by default, but you can turn it on in your cheat menu.
The line with @move_route_forcing will disable dashing when there's a cutscene playing (or any event that does a move route on the player). If you don't want that - if you want them to dash even during cutscenes and forced move routes, delete that line or put a # at the start of the line.
The line with vehicle will disable dashing when the player is in a vehicle, as vehicles have their own speed that's faster than the player. If you don't want it to do that - if you want the player to dash even while in a vehicle, delete that line or put a # at the start of the line.
The line with $game_switches will make the player dash when that switch is on, and not dash when it's off. They will not have to hold down the Shift key in order to dash. If you DO still want them to hold down the Shift key (so they will not dash ALL the time, as you've said above, but only when they want to), change that line to this:
Put the following as a new script below all others.
Code:
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Determine if Dashing
#--------------------------------------------------------------------------
def dash?
return false if @move_route_forcing
return false if vehicle
return $game_switches[15]
end
end
and replace 15 with a switch you haven't used yet. It will be off by default, but you can turn it on in your cheat menu.
The line with @move_route_forcing will disable dashing when there's a cutscene playing (or any event that does a move route on the player). If you don't want that - if you want them to dash even during cutscenes and forced move routes, delete that line or put a # at the start of the line.
The line with vehicle will disable dashing when the player is in a vehicle, as vehicles have their own speed that's faster than the player. If you don't want it to do that - if you want the player to dash even while in a vehicle, delete that line or put a # at the start of the line.
The line with $game_switches will make the player dash when that switch is on, and not dash when it's off. They will not have to hold down the Shift key in order to dash. If you DO still want them to hold down the Shift key (so they will not dash ALL the time, as you've said above, but only when they want to), change that line to this:
Code:
return $game_switches[15] && Input.press?(:A)
Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-globally-override-a-maps-disable-dashing-checkbox.140258/