Hello there, I've pretty much exclusively made this account to post about this problem I've been having:
I'm trying to create a stacking status effect that gives a elemental damage buff to the caster depending on its stack (5% at 1 stack, 8% at 2 stacks, 12% at 3 stacks)
To do so I've been trying to use two plugins that I've seen reccomended for this purpose:
YEP_BuffStatesCore
&
YEP_ElementCore
This is the note code I've put in the status effect:
I'm an extreme noobie at JavaScript so forgive me if this looks like a blasphemy.
Anyway the effect is not at all what I want it to be - while the counter does appear in-game, and the buff does apply, they don't interact with each other, and it defaults to +12% regardless of status count.
Anyone know a way around this? Are they just completely incompatible plugins?
I'm trying to create a stacking status effect that gives a elemental damage buff to the caster depending on its stack (5% at 1 stack, 8% at 2 stacks, 12% at 3 stacks)
To do so I've been trying to use two plugins that I've seen reccomended for this purpose:
YEP_BuffStatesCore
&
YEP_ElementCore
This is the note code I've put in the status effect:
<Custom Apply Effect>
target.addStateCounter(13, 1)
if (target.getStateCounter(13) > 3){
target.setStateCounter(13, 3)}
</Custom Apply Effect>
<Custom Confirm Effect>
if (self.getStateCounter(13) = 1) {
<Element Amplify Fire: +5%>
}
</Custom Confirm Effect>
<Custom Confirm Effect>
if (self.getStateCounter(13) = 2) {
<Element Amplify Fire: +8%>
}
</Custom Confirm Effect>
<Custom Confirm Effect>
if (self.getStateCounter(13) = 3) {
<Element Amplify Fire: +12%>
}
</Custom Confirm Effect>I'm an extreme noobie at JavaScript so forgive me if this looks like a blasphemy.
Anyway the effect is not at all what I want it to be - while the counter does appear in-game, and the buff does apply, they don't interact with each other, and it defaults to +12% regardless of status count.
Anyone know a way around this? Are they just completely incompatible plugins?