Hello !
I've been using YEP_InstantCast a lot recently, and figured some interesting ways to make it work, like only once per turn, or if some enemies are affected by a state before acting.
I tried to setup a specific skill this time, tried multiple ways in hope of making it work, but with no success.
What I wanted the skill to do is to have instant property after hitting an enemy affected by a state, once per enemy.
To be more precise :
I have a Seduce state. A character make use of it for some of their skills, where they can work only if the target is inflicted with Seduce. So I wanted a skill to be instant (like giving a free turn) if the target is inflicted with Seduce, and that could happen only once on each enemy so the skill couldn't be spammed.
My attempts always end up with the skill being instant twice before disappearing.
My last one could help figure my question better I think :
The Seduce State has a Custom Apply Effect that applies another state to the target, to check for the skill X to be instant. Let's call it Seduce Instant.
Then the actor has a state applied at each turn to make the skill instant. I'll name it Skill Instant. It has a <Instant Skill : X> notetag to make skill X be instant.
So the actor performs the skill. If the target has the Seduce Instant, it removes it, and instant cast is processed as expected.
The issue is when hitting an enemy that has either Seduce but not the Seduce Instant, or not Seduce at all.
I made the Skill Instant state check with a <Custom Initiate Effect>, if the target isn't inflicted with the Seduce Instant state, the actor will have a Instant Lock state applied to them to prevent the skill to be instant, and removes the Skill Instant state.
But the skill stays instant for the occuring action so it makes the actor act again, then if trying to repeat the skill it doesn't have instant properties.
Maybe I'm missing JS knowledge to find the command in YEP's code to make the skill work as intended, but I post this thread if someone can help me with this, or confirming to me that the system I'm trying to make won't work.
I've been using YEP_InstantCast a lot recently, and figured some interesting ways to make it work, like only once per turn, or if some enemies are affected by a state before acting.
I tried to setup a specific skill this time, tried multiple ways in hope of making it work, but with no success.
What I wanted the skill to do is to have instant property after hitting an enemy affected by a state, once per enemy.
To be more precise :
I have a Seduce state. A character make use of it for some of their skills, where they can work only if the target is inflicted with Seduce. So I wanted a skill to be instant (like giving a free turn) if the target is inflicted with Seduce, and that could happen only once on each enemy so the skill couldn't be spammed.
My attempts always end up with the skill being instant twice before disappearing.
My last one could help figure my question better I think :
The Seduce State has a Custom Apply Effect that applies another state to the target, to check for the skill X to be instant. Let's call it Seduce Instant.
Then the actor has a state applied at each turn to make the skill instant. I'll name it Skill Instant. It has a <Instant Skill : X> notetag to make skill X be instant.
So the actor performs the skill. If the target has the Seduce Instant, it removes it, and instant cast is processed as expected.
The issue is when hitting an enemy that has either Seduce but not the Seduce Instant, or not Seduce at all.
I made the Skill Instant state check with a <Custom Initiate Effect>, if the target isn't inflicted with the Seduce Instant state, the actor will have a Instant Lock state applied to them to prevent the skill to be instant, and removes the Skill Instant state.
But the skill stays instant for the occuring action so it makes the actor act again, then if trying to repeat the skill it doesn't have instant properties.
Maybe I'm missing JS knowledge to find the command in YEP's code to make the skill work as intended, but I post this thread if someone can help me with this, or confirming to me that the system I'm trying to make won't work.