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
42,827
Reaction score
14,980
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
252
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 Posts

Latest Profile Posts

I don't believe it. I actually did some proofreading in my game - and fixed some grammar errors! I feel so accomplished, knowing I can actually proofread my own writing!
...I've had a bad day, okay? Bad enough for me to want to proofread stuff. :yswt2:
Ughhh, July is not my month. Thankfully, it's nearly done.

I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!
Ugh, I opened MV after a few weeks and I'm completely lost on what I was working on.
Does it happen to someone else or am I the only disorganized one around? :kaoswt:
xH5Fk2f.jpg
Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.

Forum statistics

Threads
113,665
Messages
1,076,528
Members
147,684
Latest member
KITTO
Top