Noticed that the fight will bug somewhat when I use action sequence and have an HP at % trigger from the troop event and not display it. Is there a work around for this?
MV Troop Events and Yanfly Action Sequence.
Javascript/Plugin SupportWe don't know what your troop event is, what span it has, what action sequence you got, what "somewhat bug" even means, nothing.
Any Troop event that triggers from passing an HP threshold will clip out the "dialogue box" or "force action" action when an Action Sequence is being used and multi hits the target past the threshold.
I guess I wasn't being too clear. What I was trying to tell you was to post screenshots of the troop event, action sequence and whatever else related information so we can see what you have instead of guessing.
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
face user: target
else
perform start
end
hide battle hud
zoom: 115%, 30
camera screen: target, front center, 30
camera focus: target, front center, 30
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
death break
perform finish
</target action>
<finish action>
immortal: targets, false
perform finish
clear battle log
show battle hud
</finish action>
This is an action sequence it happens with but it happens with almost all of action sequences I have. Here is a troop event also. Also happens with all troop events where the troop interjects with a force action or dialogue from passing a threshold.
Easy. You set the immortal targets flag to false at the end of the sequence. Meaning the enemy will die and the condition for <= 0% can never be true because a dead enemy is no longer existing. You can simply give your enemy resistance to knockout at turn 0 to avoid it dying at 0% health.
This happens at other HP% and when I use force action at 20% HP for example.
thats a thing ive observed before, but i didnt try to look into fixing it. the main battle loop with yanfly's battle engine needs to be adjusted so that troop events cant fire off in the middle of actions.
i usually have my troop events with text boxes either trigger at the start or the end of turns as a workaround.
Here is a gif of it happening, happens with almost every action sequence and troop event where the enemy interrupts the action.
I just woke up so take this with a grain of salt, but Robro should be right. There is weird stuff happening when you make stuff pop up during the action sequence. I'd put the span to turn instead of battle and run it at the end of turn as well. Just what he suggested.
Original thread: https://forums.rpgmakerweb.com/threads/troop-events-and-yanfly-action-sequence.176141/