Conditional branches in Battle

Greetings Forums!
I have run into a snag concerning conditional branches in battle, I am attempting to simulate exploding barrels in one of My games the conditional branches in question is freezing My play test;

I am running vista steam version RPGmaker vxa with galv Animated battlers 1.2.

Rifleman hits barrel with rifle applying state bullet struck,

if state (Bullet struck) is applied
+500 damage to barrel (ko)
+100 damage to ghoul 1
+100 damage to ghoul 2
end event processing

Now initially I tried to run this on the troop event page but it freezes the game, running common events from abilities does not even work until after the battle, and linking them via run common event from troop event page does not work either.

I await any support on this matter I am at an impasse with this system.
Try to add a show message command before the if condition. If it resolves, then the if's at fault, which is improbable. If it doesn't resolve, something in front is at fault. If it resolves repetitively, it's being triggered repetitively.
Many Thanks, Poryg. I will try this and update soon.
Can you please post a screen shot of the troop event page itself, not just the commands, as there could be a whole range of things going on here.
When taking the screen shot, use Alt+PrtSc so that it captures only the active window, not your whole desktop. It makes reading the event a lot easier.
Thanks.
Apologies Kes for the delayed response, I'll get to that straight away as I still have this issue.
a troop event like you describe shoult NOT freeze the game, there has to be something else that does this - and I can think of several ways where a wrong condition or span on the troop event can cause problems.
That is why we prefer screenshots, because that way we can see all those tiny other details people often forget to mention.
I lay My designs at Your feet, let Me know if more detail is needed.
The troop event has a span of moment, meaning it calls itself as many times as it can due to the turn 1 condition being fulfilled. You'd need to change it to span of a turn.
Additionally, the troop event is called on turn 1 and turn 1000 and on turn 1999 etc.
It will not run on turn 2-999, so the player will not be able to cause this unless he attacks the barrel on the first turn.
You'll want the condition on the troop event to be 0+1*x to have it run every turn.

And this is one case where it would be easier to NOT use common events but to place the commands in the troop event directly. Try it and you'll see that the enemy dependent conditions then list the enemy instead of an empty 1 2 3 and so on.
Eureka! it works, I have plied all of Your directions and now it works as desired, Thanks to You three Exploding barrels shall be in this game.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branches-in-battle.96692/