Jump to content
Tsukihime

Random Repeats

Recommended Posts

Random Repeats

-Tsukihime

 

This script allows a skill to repeat a random number of times.

You can specify the upper and lower bounds on the repeat range.

 

Download

 

Script: http://db.tt/GX8F0X4Z

 

Usage

 

Note-tag skills/items with

 

<repeats: x y>

Where x and y are two integers,

 

x represents the lower-bound

y represents the upper bound.

 

For example,

 

<repeats: 1 3>

means that the skill will randomly repeat 1 to 3 times.

 

You have the option of using the variable `v` to access global variables,

using the syntax

 

v[i], for some number i

For example,

<repeats: v[1] 5>

means that the skill will randomly repeat between the amount stored in

variable 1, and 5, assuming variable 1 is smaller.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Probably not, since the value is fetched from the skill and therefore `self` refers to the skill, not the actor that is using it.

 

A different approach would be required, but I can't come up with anything atm.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

To address the second poster's question, and if it was possible to choose a variable instead of an integer, you could just use a skill to execute a quick variable equation and then force call the actual skill with the variable in the skills tag.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×