Hi there,
I was wondering how to get an enemy to use a skill after using another.
The intended effect is:
- When enemy uses skill A, on the next turn they always use skill B.
Any advice appreciated.
Thanks!
Enemy Follow Up Skills
● ARCHIVED · READ-ONLY
-
-
Hi thepsyche = )
this can be done with Yanfly AI plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
first, you add a stateX to the Enemy after he used skillX
then in AI notetags, you will have him to cast skillZ if he has stateX on him
= ) you need to check Yanfly's plugin for more detail though -
Can use Yanfly's AI plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
Maybe there is a better way to accomplish this, but you can have "Skill 1/A" run a common event that turns on a switch. Then put the following notetag into the subject Enemy.
<AI Priority>
Switch 99 Off: Skill 1
Switch 99 On: Skill 2
</AI Priority> -
Hi thepsyche = )
this can be done with Yanfly AI plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
first, you add a stateX to the Enemy after he used skillX
then in AI notetags, you will have him to cast skillZ if he has stateX on him
= ) you need to check Yanfly's plugin for more detail though
Hey @Isabella Ava ! Yeah, tried this. The problem is, if the target scope of a skill is on the enemies - I don't think it's possible to check if a state is on the user.
state === state 31: Skill 58
Will only check if state 31 is applied to anyone in Skill 58's target scope, which in this case, is the enemies.
Can use Yanfly's AI plugin: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
Maybe there is a better way to accomplish this, but you can have "Skill 1/A" run a common event that turns on a switch. Then put the following notetag into the subject Enemy.
<AI Priority>
Switch 99 Off: Skill 1
Switch 99 On: Skill 2
</AI Priority>
Thanks for the reply @Grunwave . I think this might actually do the trick. I did consider using a switch, but only thought to use it for the second part! Good thinking. -
i think this will work:Hey @Isabella Ava ! Yeah, tried this. The problem is, if the target scope of a skill is on the enemies - I don't think it's possible to check if a state is on the user.
state === state 31: Skill 58
Will only check if state 31 is applied to anyone in Skill 58's target scope, which in this case, is the enemies.
Eval user.isStateAffected(X) === true: Skill 10, Highest HP% -
Great @Isabella Ava ! That's going to be very helpful with other enemy AIs.
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.