Hi everyone,
I want to change the function of the Substitute special flag in RPGMaker MV. Here's my thinking on how I can get it to behave more like a typical Guard skill - that is to say, when the Guard skill is used by Actor A on Actor B, Actor A will substitute for Actor B's damage if Actor B were to receive Physical-elemental damage as a result of the enemy's attack.
From my research, this is pretty difficult to achieve.
My thinking here, is that the "Guard" skill cast by Actor A on Actor B, applies GuardStateA on Actor A and GuardState B on Actor B - both states last the same amount of time in terms of turn duration.
GuardStateA (on Actor A) enables the Substitute Special Flag for the duration of the state.
GuardStateB is an empty state that I want to use as one of the conditions under which Substitute will activate.
This would then require me to change the conditions of the Substitute Special Flag in RPGMaker MV to something like:
if attack is physical AND if target has GuardStateB applied.
I know that the conditions of Substitute can be changed, but I don't know how I would write this out (I'm not proficient in coding).
I would also like this to be in a separate plugin, I think.
I want to change the function of the Substitute special flag in RPGMaker MV. Here's my thinking on how I can get it to behave more like a typical Guard skill - that is to say, when the Guard skill is used by Actor A on Actor B, Actor A will substitute for Actor B's damage if Actor B were to receive Physical-elemental damage as a result of the enemy's attack.
From my research, this is pretty difficult to achieve.
My thinking here, is that the "Guard" skill cast by Actor A on Actor B, applies GuardStateA on Actor A and GuardState B on Actor B - both states last the same amount of time in terms of turn duration.
GuardStateA (on Actor A) enables the Substitute Special Flag for the duration of the state.
GuardStateB is an empty state that I want to use as one of the conditions under which Substitute will activate.
This would then require me to change the conditions of the Substitute Special Flag in RPGMaker MV to something like:
if attack is physical AND if target has GuardStateB applied.
I know that the conditions of Substitute can be changed, but I don't know how I would write this out (I'm not proficient in coding).
I would also like this to be in a separate plugin, I think.