Random Repeats MV

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

By default, RPG Maker allows you to have skills or items repeat a certain amount of times when you use them. For example, if you want an attack to always hit two times, you would set the “repeat” field to 2.

However, what if you wanted to create a skill or item that will repeat a random number of times between a given range?

This plugin gives you the ability to do just that quickly and easily!

Download

Plugin: download here (right-click and save as)

Installation

Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the RandomRepeats plugin.

Once it is in your list of plugins, turn the plugin on.

Usage

Note-tag skills or items with

<random repeats: min max>

Where the min is the minimum number of times the skill will repeat, and the max is the maximum number of times the skill will repeat.

A random number is generated from this range.

randomRepeats2

For example, if you want a skill to repeat between 0 and 5 times, you can note-tag the skill with

<random repeats: 0 5>

For advanced users, you can edit the plugin to customize the way the random number is generated. Currently it uses a very simple non-uniform distribution dependent on javascript’s random function.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

5 Responses

  1. Jeremy says:

    is this compatable with yanflys battle engine?

  2. Eatorl says:

    This is great! It feels more “rewarding” having a chance of hitting a lot of times than always hitting the same amount with a chance to miss each hit.

  3. HeroDude says:

    Neat stuff! This reminds me of the Goblin Punch ability from the Final Fantasy series. ^^

    • Hime says:

      The example I was thinking of was some pokemon attacks where you randomly hit 2 to 8 times or something. But there’s definitely a lot of use cases.

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax