I am using Yan's Buffs and States core... I'm trying to figure out how to execute some events if the state is being added to an enemy. Something like this:
<Custom Apply Effect>
if (state being added to = troop/enemy)
{
do such and such
}
</Custom Apply Effect>
I was doing some research but couldn't find anyone with similar problems.
What exactly are you trying to do because Custom Apply Effect applies when the state is applied
sounds like they trying to get common event to run when state is applied to an enemy.
but buff/state core isnt even needed for that.
can have the skill that is adding the state also run common event.
whether the event is triggered by the skill or a custom apply effect it would still be the same thing,
the event would need a series of conditional check to figure out which enemy the state was applied to and then do stuff to that enemy.
this is usually just done with an invisible "target" state and the event checking for that state.
(remember to remove the target state with the event too.)
custom apply effect would be used to skip the whole event checking each target for the state before doing stuff and just do the stuff directly.
for someone to help with that coding we would need to know exactly what the event was intending to do to the target.