Stacking States Script v1.1

What is it?
This script states that can be stacked on top of each other for increased effectiveness.  In other words, having more than 1 instance of the same state on an actor or enemy.  Due to how it works, the “params” and “sp-params” of states in a multiplicative fashion rather than additive which increases the state’s effectiveness with each stack.

How can I use it?
Insert this script under materials and above main.  The script has no config option, just tags.  Place the tags in a state and it will work on it’s own.

  • max stack[2] – Allows two instances of the state to be present at once.  The “2” can be replaced with any number to increase the number of stacks.
  • stack icon[2, 100] – Changes the icon of stack 2 to icon 100.  You can use this tag more than once with different stack numbers to have a different icon for each level.  You can also use any icon rather than 100.

What does it work with?
This script should work with most other scripts, but overwrites the methods relating to adding or removing scripts.  For this reason it should go ABOVE any scripts that affect how states are added or removed.

How can I get the code?
Version 1.1 (base script, 8.17.2013) is available from my pastebin account here.

I would like to use this code.
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License and is available for commercial and non-commercial use.

Author’s Disclaimer:
I made this script actually as sort of a way to replace buffs.  I wanted a way to increase stats by a little but allow the player to keep on increasing the stat.  Obviously making the stat stack was the answer.  Like I mentioned, the states stacking is multiplicative, so having for example 10 states with 110% HP, the end result would be 259.3% or so, rather than 200%.  Still, I think it gives a nice effect of increasing returns for using a skill multiple times in a row.  As always, enjoy!

  1. (Sorry for my (very) bad english)
    I’m newbie and I dont know how to make the skill the more state stacked, the more skill powerful. Eg: Skill Fire when enemy have state “Burn” stack 1 is dmg 10HP,
    when enemy have state “Burn” stack 2 is dmg 20HP
    Can you do that?
    Thank you.

Reply to this post

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: