Troop Escape Ratio

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

This script allows you to specify a custom escape ratio formula for each
troop.

troopEscapeRatio1

Download

Script: download here

Installation

Place this below Materials and above Main.

Usage

In the first page of a troop event, create a comment of the form

<escape ratio: formula>

Where formula is a valid ruby statement that returns a number.
Four variables are available in your formula

p - current game party
t - current troop
v - game variables
s - game switches

Examples

A few example uses

<escape ratio: 0>
   Zero chance of escape
<escape ratio: p.agi / t.agi>
   ratio of party's agi to troop's agi
<escape ratio: 1.5 - 1.0 * t.agi / p.agi>
   This is the default escape ratio
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...

6 Responses

  1. TheFado96 says:

    Hi, i tried your script for custom escape ratio but it gives this error:

    Script 'custom escape ratio' line 65: NameError occured.
    undefined method 'make_escape_ratio' for class 'Module'.

    Can you please help me?
    Thanks.

    • Hime says:

      You need to place it below Materials.

      • TheFado96 says:

        i did. anyway, when i removed the line, the game started and everything looked fine. I placed on a troop the line:

        Comment: <escape ratio: 1/1>

        Which should allow me to ALWAYS escape right? Nope, i escape only sometimes.
        So, i'm asking myself: Is the "alias" ine that removed really importan to the script? Or not?

        • Hime says:

          If you remove the line you're probably not calculating the escape ratio. This script requires you to use the default BattleManager.

  2. TIM says:

    Is there a way so that you can use an item them increases the chance of escaping? for example I could have a ‘smoke bomb’ item of some kind that would allow me to escape once used. Thanks 🙂

    • Tsukihime says:

      You can set up the troop escape ratio to include variables and then have your item run common events that will set the variable. It is up to you to be creative to figure out how to accomplish it. This script simply gives you the ability to customize the escape rate formulas.

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