Does anyone know if there is a way to turn dash on/off? I don't want people to be able to dash while swimming. Or while climbing.
No running by the pool.
RPG Maker VXAce SupportSure thing:
Disables dashing as long as switch #1 is OFF.
Code:
class Game_Player < Game_Character alias :original_dash? dash? def dash? $game_switches[1] && original_dash? endend
there are several threads discussing this. Try this one http://forums.rpgmakerweb.com/index.php?/topic/24508-help-disable-runing-on-certian-tiles-and-even-slowing-down/
If that doesn't suit, put disable dashing in the search box at the top of the page and you'll pull up lots of possibilities.
That search box is your friend.
Edit
Ninj'd,
If that doesn't suit, put disable dashing in the search box at the top of the page and you'll pull up lots of possibilities.
That search box is your friend.
Edit
Ninj'd,
OK so how do I use that?
Find an unused control switch. Iavra has used switch 1 as an example, but you may already be using it. When you have your unused switch NAME IT so that you know what it is and also so that you don't accidentally use it for something else as well.
Put that number in the snippet where it has [1]
Paste the snippet in scripts below Materials and above Main.
Now set your events so that the switch is ON at the beginning of the game. In places where you don't want dashing, use an event to turn it OFF. Remember to turn it back ON again when they leave that area.
Your question suggests that you are unfamiliar with some of the foundational aspects of the engine. Andar has an excellent thread for new users which you can find here. I think you will find it very helpful.
Put that number in the snippet where it has [1]
Paste the snippet in scripts below Materials and above Main.
Now set your events so that the switch is ON at the beginning of the game. In places where you don't want dashing, use an event to turn it OFF. Remember to turn it back ON again when they leave that area.
Your question suggests that you are unfamiliar with some of the foundational aspects of the engine. Andar has an excellent thread for new users which you can find here. I think you will find it very helpful.
Open your script editor (F11) and copy the whole code in a new slot between "▼ Materials" and "▼ Main Process".
If you want to use another switch, change the 1 to something else.
/edit: Re-Ninja'D 😮
If you want to use another switch, change the 1 to something else.
/edit: Re-Ninja'D 😮
Ok, I got it. Everything works perfectly now. Thank you. I almost know what I'm doing. Famous Last Words..As well as Whoops!
Original thread: https://forums.rpgmakerweb.com/threads/no-running-by-the-pool.40623/