DSBwizzardMakesGame

Happy to be here
Member
Joined
Jun 20, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMZ
I would really like to have an Actor/Enemy have the ability to interrupt a target mid-Skill and use their Skill first. Essentially, my goal is "I see you moving towards my friend, I am going to hit you first". Ideally, if afterwards the target is still alive / capable of continuing, they do so.

I've tried a lot of varied approaches, including working with VisuStella's Battle Core and the included notetags, and I thought "<JS Pre-Start Action>" may be the trick. However, unfortunately it also appears that the "Force Action" command only ever occurs at the end of an Actor/Enemy turn, not the instant it is called.

Is there some way for an Actor/Enemy to interrupt a target's activated Skill (and use a Skill of their own) before said target successfully proceeds to apply the Skill effects (damage, states, etc)? Perhaps this would require a Plugin.

Thank you!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,359
Reaction score
15,172
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.



I wondered if I should move this to Plugin Support instead, because you're already using the VS plugins. But I suspect such a think is not already baked in to VS.
 

Kenen

Veteran
Veteran
Joined
Apr 3, 2012
Messages
341
Reaction score
253
First Language
English
Primarily Uses
RMMZ
It's certainly possible, but would require some non-trivial changes to Game_Action and BattleManager in order to get it working the way that you describe.

I have pretty limited knowledge of the VisuStella plugins, but I do remember reading that they created their own action queue system, or something of that sort. You may want to continue down that train of thought. If the notetags that are available in MZ are similar to what were offered in MV, it might be possible to pull off either what you are asking or at least an approximation of it.

However, unfortunately it also appears that the "Force Action" command only ever occurs at the end of an Actor/Enemy turn, not the instant it is called.

This is because of the way that BattleManager works. Once one action resolves, it checks to see if a Forced Action exists and executes that before moving on to the next in the normal queue.

It is possible to code something along the lines of a function that would inject an action that immediately takes effect, but again, you're looking at some relatively advanced modifications to both Game_Action and BattleManager to get that kind of effect to occur in a bug-free manner.

By default, Force Action also has the downside of consuming your actor's turn. So, depending upon how you expect your intercept action to work, it may prevent your character from using another action that turn.
 
Last edited:

Latest Threads

Latest Profile Posts

Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG
BCj
Finished another GUI! Turn indicator wasn't made by me.

ff981f8dc50b03cf58038c644334b454.jpg


3cb092fdc00087acfa0a190fd891f0ed.jpg
Added a small refining scene to my game.

It makes sense that you try to focus on the squishy mages at the back of the party first, right? If the mage can out-DPS the enemy DPS before the latter can kill the tank in front, the fight becomes boring.

Forum statistics

Threads
115,244
Messages
1,088,325
Members
149,841
Latest member
RenShimizu
Top