Troop Surprise Condition
This script allows you to specify custom troop surprise conditions.
The condition must evaluate to true or false, but you are not limited to
using probability-based conditions.
Download
Script: download here
Installation
In the script editor, place this script below Materials and above Main
Usage
In the first page of a troop event, create a comment of the form
<surprise condition: 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
In the configuration, there is a global surprise condition which you can
set. It will be used if the troop doesn’t have its own condition.
Note that by default, this is only considered during random encounters, not
evented battles.
Made that alteration a simple plugin. 🙂
https://github.com/Hime-Works/Requests/issues/9