Troop Escape Ratio

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

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. Required fields are marked *