If you want to get the most out of RPG Maker, learn Ruby.
In the meantime, lots of talented scripters have done the work for you. Every Friday, The Iron Shoe features a fun script and goes into detail about how to use it. It also covers a little bit of Ruby each time so you can make even more out of the script. And that’s just what we’re gonna do today!
Sometimes we do complicated scripts like building new quest journals, exporting images from RPG Maker, or fine-tuning control over the camera.
And then other times we just want control over dashing ability.
You might know that each map allows you to control whether the player dashes or not. Oh, you don’t? Well it’s right here:
But we want fine tuned control over our dashing! What if it’s not so simple to do a map-by-map control? Well you can find the script in Game_Player. Just control f for script and you’ll find this little section:
This script controls the player’s dash. It won’t dash under the following circumstances:
- Something is forcing the player to move (like an event, controlling you in a cutscene)
- The map has “disable dash” on (well duh)
- The player is riding a vehicle
But who is to stop us from adding more? Consider something like this:
Now we have a switch that controls whether dashing will work. If switch 10 is off, dashing is off. How cool!
We can do this with variables, and we can ask if those variables are too big or too small. Which means we can prevent dashing when a player’s inventory is too big (carrying too much).
We can do this by looking at the party makeup, so that dashing is disabled unless our rogue/thief is in the lead position.
There’s really no limit! What other creative ways of limiting/allowing dash can you come up with?