- Joined
- Apr 12, 2012
- Messages
- 4,977
- Reaction score
- 4,591
- First Language
- English
- Primarily Uses
- RMMZ
Yeah, you want each distinct effect to have a unique identifier unless they all use the same counter.@Trihan
I see, that is very helpful, thank you for the info!
So I have this setup now, which does not seem to work:
<Custom Apply Effect>
user._counter = 2; // Does this need to be user or target?
</Custom Apply Effect>
<Custom React Effect>
if (value > 0 && target._counter > 0) { // And what about these?
target._counter -= 1;
value = Math.round(value * 0.5);
} else if (target._counter <= 0) {
target.removeState(139);
}
</Custom React Effect>
Side-question, I imagine that I should give each counter unique names right?
Calling every counter "counter" is surely prone to causing conflicts.
For Custom Apply Effect, I believe YEP plugins consider user and target to be the same object, so it shouldn't matter. For Custom React Effect it needs to be target.