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 – 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.
This work is licensed under a Creative Commons Attribution 3.0 Unported License and is available for commercial and non-commercial use.
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!