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.

troop_surprise_condition

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.

You may also like...

8 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *