Troop Surprise Condition

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 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.

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...

1 Response

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