You may have forgotten to replace the
x and
y with actual numbers? That error is basically saying "could not open the console to show you the actual error". Possible causes: your plugin(s) and/or project's core scripts are outdated. In case you're interested, you can find details on updating your project's core scripts to match your editor version here (don't forget the backup stage!):
https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-v1-6-1-stable-release.96715/
For your question...I just tested with these
Buffs & States Core notetags on a poison state and it seemed to work out OK:
Code:
<Reapply Add Turns>
<Custom Regenerate Effect>
var dmg = user.stateTurns(stateId);
user.startAnimation(59);
user.gainHp(-dmg);
</Custom Regenerate Effect>
Replace 59 with the ID of the animation you want to play on damage (or remove the line entirely if you like). Set the state to remove on Turn End, duration 1~1. Then you can use multiple "Add State" traits (or a <State X Turns: +Y> notetag) to add however much poison you like! The turns should add due to the <Reapply Add Turns> tag; damage is equal to turns remaining.
😤
For a catalyst-like effect (multiply poison), you could do something like this:
Code:
<Custom State 12 Turns>
turn *= 2;
</Custom State 12 Turns>
Just replace 12 with the ID of your poison state. Also, note that the tag here must be "Custom State X Turn
s": there's an error in the documentation (thanks to Sagittarius1 for
pointing that out years ago).
😅