Hi everybody, I hope you can help me:
What is the problem?
Lets say I have a poisoned Harold and a healer Lucius and I want to reward Lucius with TP for removing Harold poison.
It means Lucius should receive TP if he effectively removes Harold poison.
Then Lucius should not receive TP in these cases:
My first attempt was using YEP Skill Core and <After Eval> tag, which lets me get the origin (lucius), but doesn't let me get the state removed.
My second attempt was using YEP Buffs&States Core and <Custom Remove Effect> tag, which lets me get the state removal, but doesn't let me get the healer.
Do you know any way to achieve this?
Thank you in advance!
What is the problem?
Lets say I have a poisoned Harold and a healer Lucius and I want to reward Lucius with TP for removing Harold poison.
It means Lucius should receive TP if he effectively removes Harold poison.
Then Lucius should not receive TP in these cases:
- if poison expires
- if antidote fails
- if Harold is not poisoned
My first attempt was using YEP Skill Core and <After Eval> tag, which lets me get the origin (lucius), but doesn't let me get the state removed.
Code:
<After Eval>
// Antidote skill notetag
if(target.wasStateAffected(2)) // <- nope
user.gainTp(20);
</After Eval>
My second attempt was using YEP Buffs&States Core and <Custom Remove Effect> tag, which lets me get the state removal, but doesn't let me get the healer.
Code:
// Poison state notetag
<Custom Remove Effect>
healer.gainTp(20); // <- nope
</Custom Remove Effect>
Do you know any way to achieve this?
Thank you in advance!