Friday Script – Dash Control

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:

Check the box to stop a player from dashing on the map.

Check the box to stop a player from dashing on the map.

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:

Here is where the magic happens; where you add anything you want to dash a player's dreams of dashing.

Here is where the magic happens; where you add anything you want to dash a player’s dreams of dashing.

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:

Label your switch in the trigger editor as "Dash Available" or something similar, otherwise you'll forget the importance of this switch.

Label your switch in the trigger editor as “Dash Available” or something similar, otherwise you’ll forget the importance of this switch.

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.

You can add a short-term burst dashing system the same way!

You can add a short-term burst dashing system the same way!

There’s really no limit! What other creative ways of limiting/allowing dash can you come up with?

Advertisements

One thought on “Friday Script – Dash Control

  1. Pingback: Dashing through the Sound | The Iron Shoe

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s