At the (Yanfly's) ATB and CTB battle systems, I want something done. If your allies have used a lot of states and buffs against a certain boss to make yourself stronger, I want the boss to occasionally remove those improvements via an action but not lose a turn. I guess I can make the boss to go for the next turn immediately but what I fear will happen is that the boss will perform the same action again twice in a row. I want him to perform it frequently or always but only if those improvements are there. How can I do it?
MV A question about the specific action of the enemy when removing your "improvements"
Javascript/Plugin SupportWithout getting too far into the woods, in the troop event you can set up events such that a switch is turned on if a certain state is present. Then, for the actions, you can set the action as being available when a certain switch is on.
@pawsplay But 1) Can this work when a certain number of improvements happen (and more than 1)? And 2) If I were to "seal" that skill in an enemy, it won't stop the enemy using that skill at the default engine. Maybe use Yanfly's AI plugin to do so then?
no need - the tip above works with the default action pattern and troop events.
it does require some careful setup, but the AI core would require exactly the same setup to detect the situations. And unless you are extremely experienced using scripting it would actually be easier to set this up without script use.
plugins are not miracles, and a complex condition involving multiple buffs and states will always require work to setup.
@Andar Wait a minute... I think that that won't work without Yanfly's plugins because using the default engine's skills for the enemy that you have given the enemy do not get stopped if you seal those skills because the default engine doesn't allow that.
the tip above never said you have to seal the skill - of course that won't work, but neither the other poster nor I ever told you anything about sealing the skill. Your idea that sealing is needed is simply the wrong one, we told you that you need eventing and switches in the action pattern.
Moved to: Plugin Support
Also, could you please reduce the size of your signature? Forum rules state no larger than 800x220 pixels.
Also, could you please reduce the size of your signature? Forum rules state no larger than 800x220 pixels.
Hey, what do I need to know in order to use the Troop section's commands in order to do this thing? Just tell me the basic things.
you need to set the troop event to repeat once per turn
then in the troop event you need to use conditional branch for any and all checks if a state or buff is applied and to whom.
that will be a lot of conditional branches, and their combination will result in the decision to use the special skill or not - the exact logic depending on the exact conditions you want.
if the conditions to use the skill are true, then you set a flag that will force the enemy to use the skill in the next turn. The other poster above said to use a switch for that - I would prefer to use a state as that would make preventing a repeat easier (just have the state be autoremoved at turn 2, with a switch you would need another troop event to do the same).
then in the enemy action pattern, you give the skill a high rating and the condition of the state or switch as you want.
ATTENTON:
The description above works perfectly with the default turn based combat. Depending on how the ATB/CTB from yanfly works you might have to modify some points - for example in default turn battles the state has to last two turns because one turn duration ends before the skill selection of the next turn,but with ATB/CTB that is often different and might need to be set to one turn or some special condition.
then in the troop event you need to use conditional branch for any and all checks if a state or buff is applied and to whom.
that will be a lot of conditional branches, and their combination will result in the decision to use the special skill or not - the exact logic depending on the exact conditions you want.
if the conditions to use the skill are true, then you set a flag that will force the enemy to use the skill in the next turn. The other poster above said to use a switch for that - I would prefer to use a state as that would make preventing a repeat easier (just have the state be autoremoved at turn 2, with a switch you would need another troop event to do the same).
then in the enemy action pattern, you give the skill a high rating and the condition of the state or switch as you want.
ATTENTON:
The description above works perfectly with the default turn based combat. Depending on how the ATB/CTB from yanfly works you might have to modify some points - for example in default turn battles the state has to last two turns because one turn duration ends before the skill selection of the next turn,but with ATB/CTB that is often different and might need to be set to one turn or some special condition.
Original thread: https://forums.rpgmakerweb.com/threads/a-question-about-the-specific-action-of-the-enemy-when-removing-your-improvements.143694/