How to Disable and Renable Dashing?

The Prince of Sarcasm

Prince of sarcasm
Veteran
Joined
Apr 3, 2014
Messages
1,145
Reaction score
131
First Language
Sarcasm
Primarily Uses
I'm sure there is a way to disable dashing (holding shift) in the database, and renable it in an event, but I can't find it anywhere. You guys are geniuses, I'm sure you know how to find it.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
28,960
Reaction score
6,667
First Language
German
Primarily Uses
RMMV
Enable/disable dashing is an option of the map properties and not changable by default. It needs a script to change that option dynamically (I know a script for this already exists).


I've moved this thread to Ace Script Request. Please be sure to post your threads in the correct forum next time. Thank you.



I don't have the link to that script ready, please search for it on the master script list
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,272
Reaction score
11,865
First Language
English
Primarily Uses
RMMV
Allocate a switch to disable dashing (the example below will assume it's switch 5).


Go to Game_Player, and insert this before line 141:

Code:
return false if $game_switches[5]
so the whole method will look like this:

Code:
def dash?
  return false if @move_route_forcing
  return false if $game_map.disable_dash?
  return false if vehicle
  return false if $game_switches[5]
  return Input.press?(:A)
end
of course, replace 5 with whatever switch number you want to use (no leading zeros)


When the switch is off (which is the default when a new game is started), the player will be able to dash.  To disable dashing, turn the switch on.
 
Last edited by a moderator:

DJ-0zymandias

Absolute God of Hyperdeath
Member
Joined
Jan 4, 2016
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Pointing Out the Obvious.png


I do believe one can use a script call to control that in events. I am going to try to get this to work.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,272
Reaction score
11,865
First Language
English
Primarily Uses
RMMV
It's a property of $game_map's @map variable, which is not avialable for modification at runtime.  If you want to change the map property via a script call, you will need to change the script to make @map and @map.disable_dashing available for changing.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Have you appreciated a Hedgehog today?

Storybook Hero demo has been well received so far. Yay! We are developing it steadily albeit slowly <_<. We will get there one day o_O.
TFW: You get a text from someone and a long conversation--but you have no idea who this person is and don't wanna be that guy that asks "Who is this by the way?" I have no clue who this person is... but they seem to know me quite well. :rswt
You know, after all these years of using RM I've never played To The Moon. With being busy with life and then after my mom died I was too emotionally fragile to play something that heavy. Has anyone played the Switch version? Is there any big differences between that and the RM version?
Today I finished my Lets Play. Gonna have the videos scheduled for daily uploads now. Woo I finished something ^^

Forum statistics

Threads
93,406
Messages
912,067
Members
122,914
Latest member
Arcannis
Top