MZ trying to do an action sequence with visustella battle core

Basicly, I kinda want to make an enemy that as his last resort tries to shot a random party member, using a last desprete attack.

Though its hard to do it the normal way since forced actions been reworked with it, so now I am wondering how to handle it where the enemy uses the attack right as he is dying, and have it be at a random enemy
If it's always supposed to happen (Meaning you can't kill the enemy before it happens) you can just make the enemy immune to knockout (By giving it a state with knockout immunity at the start of battle), set its desperation move to priority 9 with a condition of hp 0%. That should automatically make it use it as soon as it would be normally dead.

If you then want to use action sequencing, you can simply make the skill your usual "1 Random enemy" scope and in the sequence itself, after the hit landed, simply remove the immunity state from it and it will die.
If you want it right at death, you can do that immortal stuff and do a troop event at 0% hp. Use action sequence plugin commands in the troop event. Set the correct enemy to do stuff (index starts at 0). You can do movements, motions, animations, emulate skill at random target etc
If you want it right at death, you can do that immortal stuff and do a troop event at 0% hp. Use action sequence plugin commands in the troop event. Set the correct enemy to do stuff (index starts at 0). You can do movements, motions, animations, emulate skill at random target etc
mind to give me an example, I am using frontview though, so only really want to have the attack being pulled out. I think I am just to stupid to pull it off properly
If it's always supposed to happen (Meaning you can't kill the enemy before it happens) you can just make the enemy immune to knockout (By giving it a state with knockout immunity at the start of battle), set its desperation move to priority 9 with a condition of hp 0%. That should automatically make it use it as soon as it would be normally dead.

If you then want to use action sequencing, you can simply make the skill your usual "1 Random enemy" scope and in the sequence itself, after the hit landed, simply remove the immunity state from it and it will die.
I don't think the first one can happen because the enemy couldnt even try and use that attack to begin with. Unless you mean to have him use it during his final turn.

And I am sorta trying to pull it off, know the immortality part since I disected lisa the painful to figure out how to do it, its just that visustella has so many options I kinda get lost on what to actually use for that improvised forced action
Here's an example I made that I think works. Make a troop event (span: Battle) that has condition for the enemy hp to be at 0%. Here it's enemy number 1, so that means enemy index 0 (they start at 0). If you want it to target one random dude, you can use scripts to get a random target and then put conditionals depending on the result (here I'm using variable 20 called 'TEST'). Like (for that script box dont copy those colons before the lines start):

◆Script:const numberAlive = $gameParty.aliveMembers().length;
: :const randomIndex = Math.randomInt(numberAlive);
: :$gameVariables.setValue(20, randomIndex);
◆Plugin Command:VisuMZ_1_BattleCore, MOVE: Float
: :Targets = ["enemy index 0"]
: :Desired Height = 100
: :Duration = 60
: :Float Easing = Linear
: :Wait For Float? = true
◆If:TEST = 0
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 0"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 0"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 1
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 1"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 1"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 2
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 2"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 2"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 3
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 3"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 3"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆Plugin Command:VisuMZ_1_BattleCore, MOVE: Float
: :Targets = ["enemy index 0"]
: :Desired Height = 0
: :Duration = 60
: :Float Easing = Linear
: :Wait For Float? = true
◆Change Enemy State:#1 Goblin, - Immortal
I don't think the first one can happen because the enemy couldnt even try and use that attack to begin with. Unless you mean to have him use it during his final turn.

And I am sorta trying to pull it off, know the immortality part since I disected lisa the painful to figure out how to do it, its just that visustella has so many options I kinda get lost on what to actually use for that improvised forced action
Why wouldn't it work? The skill is killing it, so it's its final turn regardless. If you don't want have it use it literally when "dead", just change the conditional HP values.
Why wouldn't it work? The skill is killing it, so it's its final turn regardless. If you don't want have it use it literally when "dead", just change the conditional HP values.
because it skips the forced action, ignoring said skill and just resuming the fight. What Visustella does is place the forced action on a queue to the new turn. And I am seeking ideas on how to properly use the action sequences during the enemy dropping to 0 hp instantly, but its hard when the plugin sorta has its own way of handling it =w=; lol
Here's an example I made that I think works. Make a troop event (span: Battle) that has condition for the enemy hp to be at 0%. Here it's enemy number 1, so that means enemy index 0 (they start at 0). If you want it to target one random dude, you can use scripts to get a random target and then put conditionals depending on the result (here I'm using variable 20 called 'TEST'). Like (for that script box dont copy those colons before the lines start):

◆Script:const numberAlive = $gameParty.aliveMembers().length;
: :const randomIndex = Math.randomInt(numberAlive);
: :$gameVariables.setValue(20, randomIndex);
◆Plugin Command:VisuMZ_1_BattleCore, MOVE: Float
: :Targets = ["enemy index 0"]
: :Desired Height = 100
: :Duration = 60
: :Float Easing = Linear
: :Wait For Float? = true
◆If:TEST = 0
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 0"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 0"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 1
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 1"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 1"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 2
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 2"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 2"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆If:TEST = 3
◆Plugin Command:VisuMZ_1_BattleCore, MECH: Emulate Skill Effect
: :Skill ID = 10
: :User(s) = ["enemy index 0"]
: :Targets = ["actor index 3"]
◆Plugin Command:VisuMZ_1_BattleCore, ANIM: Show Animation
: :Targets = ["actor index 3"]
: :Animation ID = 2
: :Mirror Animation = false
: :Wait For Animation? = true
◆
:End
◆Plugin Command:VisuMZ_1_BattleCore, MOVE: Float
: :Targets = ["enemy index 0"]
: :Desired Height = 0
: :Duration = 60
: :Float Easing = Linear
: :Wait For Float? = true
◆Change Enemy State:#1 Goblin, - Immortal
ok with some tweaking around, thanks that actually helped lol. though idk what exactly teh emulate skill effect does
because it skips the forced action, ignoring said skill and just resuming the fight. What Visustella does is place the forced action on a queue to the new turn. And I am seeking ideas on how to properly use the action sequences during the enemy dropping to 0 hp instantly, but its hard when the plugin sorta has its own way of handling it =w=; lol
I never said anything about using a forced action tho, did I? I suggest you read my post more carefully before assuming it doesn't work.
I never said anything about using a forced action tho, did I? I suggest you read my post more carefully before assuming it doesn't work.
i mean even that doesn't work since the enemy has barely even time to use it when his immortality is gone. since he would sorta wait awkwarly until its his turn and then use that very specific attack just to die.

Did managed to replicate it with action sequence commands.

still thanks for trying to help out

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-do-an-action-sequence-with-visustella-battle-core.181818/