Hi, so I'm using Yanfly's Buffs & States Core plugin ( http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP) ) to manage states in my RPG, but from what I can tell there's no way to set a cap on how many stacks I want a state to be able to stack to? (Example: Limit poison to 1 stack)
MV [YEP Buffs & States Core] How to set a cap on the stack counter?
Javascript/Plugin SupportCan you clarify your question? There's no such thing as "stacks" in that plugin for states.
You can simulate it by using state counters or coding a variable onto the target, but you would have to be doing that intentionally.
Perhaps you can clarify and post the code you have in the state you're talking about.
You can simulate it by using state counters or coding a variable onto the target, but you would have to be doing that intentionally.
Perhaps you can clarify and post the code you have in the state you're talking about.
Yes, I meant state counters. ^^
I would like a way to be able to cap the state counter. Right now it just seems to go infinitely?
I would like a way to be able to cap the state counter. Right now it just seems to go infinitely?
Oh, I see! I did not see that. ^^ Um, where can I put that in my notetags?
My note tags look like this currently:
(The <params> note tag is from Quasi Param Plus (https://forums.rpgmakerweb.com/index.php?threads/quasi-params-plus.48777/)
My note tags look like this currently:
Code:
<Custom Apply Effect>
user.addStateCounter(18, 1)
</Custom Apply Effect>
<Custom Turn Start Effect>
user.addStateCounter(18, 1)
</Custom Turn Start Effect>
<params>
ATK: - (current * (1 / (4 * Math.pow(0.5, a.getStateCounter(18) - 1))))
</params>
Use it after every line where you change the state counter's value
Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-core-how-to-set-a-cap-on-the-stack-counter.165481/