Troop Escape Ratio
This script allows you to specify a custom escape ratio formula for each
troop.
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
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.
You need to place it below Materials.
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?
If you remove the line you're probably not calculating the escape ratio. This script requires you to use the default BattleManager.
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 🙂
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.