Heyho!
Using Yanflys Counter Control I try to create a state that trigger a counter skill in 100% of the cases as long as the wielder is attacked using a certain element, say fire.
Here's the problem:
I have an actor with a default counter rate of 5% and a default counter skill.
Now I inflict the state on the actor: It raises the counter rate to 100% and adds another counter skill, with the element fire as a condition. But since conditions can only be added to counter skills, not to the related state (correct me if I am wrong here), the counter rate will still be 100%, even if the actor is hit with another element. So the default counter skill will still trigger in 100% of the cases.
I don't see any built in way to avoid that with just the Counter Control Plugin, but if anybody has a suggestions I'd be very happy to try it.
What I thought of instead however was using Yanflys Buffs and State Core Plugin.
It should be possible to give the state a Custom Select condition, which raises the counter rate to 100%, if the wielder is selected as the target of a fire skill and puts it backs to it's previos value afterwards. But I don't know how to do that exactly. The only thing I have so far ist this:
Do you think I am on the rate track? If so, how do I achieve what I want? If not, is there an easier way to achieve this?
Thanks in advance~
Using Yanflys Counter Control I try to create a state that trigger a counter skill in 100% of the cases as long as the wielder is attacked using a certain element, say fire.
Here's the problem:
I have an actor with a default counter rate of 5% and a default counter skill.
Now I inflict the state on the actor: It raises the counter rate to 100% and adds another counter skill, with the element fire as a condition. But since conditions can only be added to counter skills, not to the related state (correct me if I am wrong here), the counter rate will still be 100%, even if the actor is hit with another element. So the default counter skill will still trigger in 100% of the cases.
I don't see any built in way to avoid that with just the Counter Control Plugin, but if anybody has a suggestions I'd be very happy to try it.
What I thought of instead however was using Yanflys Buffs and State Core Plugin.
It should be possible to give the state a Custom Select condition, which raises the counter rate to 100%, if the wielder is selected as the target of a fire skill and puts it backs to it's previos value afterwards. But I don't know how to do that exactly. The only thing I have so far ist this:
Code:
<Custom Select Effect>
var fire = 3
var elements = this.getItemElements();
if (elements.some(function(e) {
return e === fire;
})) {
//Store the current counter rate
//Set it to 100%
}
</Custom Select Effect>
<Custom Conclude Effect>
//Set the counter rate to the stored value
</Custom Conclude Effect>
Do you think I am on the rate track? If so, how do I achieve what I want? If not, is there an easier way to achieve this?
Thanks in advance~