Cover/Bodyguard State

NatuElChido

Rookie Dreamer
Veteran
Joined
Nov 13, 2017
Messages
38
Reaction score
6
First Language
Spanish
Primarily Uses
RMMV
Hello everyone.

I want to start the post with a little backstory, first of all I know that in Vanilla RPG Maker MV there is a similar State, which uses a special flag called Substitute. Now, It is important to clarify that this particular state, should be used by the Yanfly's plugin, Auto Passive States.

What I'm asking is something very similar to the special substitute flag. However, I have run into a series of unwanted problems and behaviors that the substitute flag has:

First, it "Blocks" allied interactions. For example, if one of my actors has low health, and another wants to use a healing ability, or a skill that cast a barrier or something similar about the actor with low health, the actor with the substitute flag will receive the effects of this skill instead. This is a big problem since, obviously, the state of covering is more a weakness than a strength. (And yes, i'm actually using HP Recover Damage formula)

Now, testing a bit I realized that this strange interaction does not happen when a skill modifies parameters or increases health using the "Recover" ability effect or by effect of an item. For example, if a skill decreases the defense of its target in a stage or if a skill heals 20% of total health, but this actually happens when a skill does HP recovery "damage". (I will explain this part more thoroughly in possible answers if it is not very clear) and also when a state tries to be inflicted, unfortunately, this also applies to all states, such as barriers and regen.

My request is, as I said above, a way to work exactly how the substitute flag works, but do not have these strange interactions. I think the best solution is to only cover enemy attacks. So far, I have not found any post or plugin that fixes this problem. And finally, I do not want to use the Yanfly's Taunt Plugin, because I find the interactions too different.

I will be open to questions and suggestions.

Finally, I want to apologize for my weird English. Since I use a Spanish version of RPG Maker Mv and I speak Spanish as a native language.

Thanks in advance.
 

Grunwave

Veteran
Veteran
Joined
Feb 4, 2017
Messages
586
Reaction score
158
First Language
English
I have not had any luck finding one for MV. Would be interested to know if you locate one.
 

Mimironi

But what do I know?
Veteran
Joined
Mar 4, 2013
Messages
503
Reaction score
506
First Language
English
Primarily Uses
RMMV
There's this plugin I found that helps expand the substitute command. Though it's in a post with other plugins, if you scroll a little, it's there:

https://triacontane.blogspot.com/2017/02/5.html

Hopefully it has a feature that you're looking for! I'd recommend using google translate, but here's, very roughly, what the list of features says:
  1. You can invalidate the default substitution condition.
  2. Detailed substitution conditions can be specified by HP, JS calculation formula and so on.
  3. You can limit the subjects of the substitution.
  4. The skill effect of the specified ID can be applied to the substitute performer at the time of exile activation. [This might mean that you can set the user to activate a skill after they substitute].
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
555
Reaction score
230
First Language
english
Primarily Uses
RMMV
is ur cure set as a magical attack? that shouldnt be happening if its a certain hit type skill
 

NatuElChido

Rookie Dreamer
Veteran
Joined
Nov 13, 2017
Messages
38
Reaction score
6
First Language
Spanish
Primarily Uses
RMMV
is ur cure set as a magical attack? that shouldnt be happening if its a certain hit type skill
Yes, it has the following specifications:

HealExample.png

(Yes, spanish RPG Maker, lmao)
 

NatuElChido

Rookie Dreamer
Veteran
Joined
Nov 13, 2017
Messages
38
Reaction score
6
First Language
Spanish
Primarily Uses
RMMV
There's this plugin I found that helps expand the substitute command. Though it's in a post with other plugins, if you scroll a little, it's there:

https://triacontane.blogspot.com/2017/02/5.html

Hopefully it has a feature that you're looking for! I'd recommend using google translate, but here's, very roughly, what the list of features says:
  1. You can invalidate the default substitution condition.
  2. Detailed substitution conditions can be specified by HP, JS calculation formula and so on.
  3. You can limit the subjects of the substitution.
  4. The skill effect of the specified ID can be applied to the substitute performer at the time of exile activation. [This might mean that you can set the user to activate a skill after they substitute].
Thanks! This was something very useful.
But, to be honest i don't understand THAT well the translation, lmao. (Neither the Spanish and the English one)

I quote:

"Note that the notes column of the database with features Actor, occupation, weapon, armor, state, enemy character is a memo field."

I guess it means that I can place the note tags in the Notebox. However, it does not mention that you can place this totags in the skill notebox.
I try to put this one in all the Skills that heals or adds beneficial states, to try to prevent the cover actor don't take the effects of this beneficial skills. But the "Cover" actor still takes the effects:
<SE_SubjectHPRate: 101>//Cover this skill if the target its a 101% HP
<SE_TargetHPRate: 0>//Cover this Skill if the target its at zero HP

So, overall i dont know if im using this right or don't.
It would be useful if you can explain me how to use this plugin. Please :)
 

Mimironi

But what do I know?
Veteran
Joined
Mar 4, 2013
Messages
503
Reaction score
506
First Language
English
Primarily Uses
RMMV
Alrighty, here's what I did.

First, get these two plugins by Yanfly: Target Core and Lunatic Pack-Action Beginning and End Effects:
http://yanfly.moe/2016/02/26/yep-74-target-core/
http://yanfly.moe/2017/12/01/yep-159-lunatic-pack-action-beginning-and-end-effects-rpg-maker-mv/

Now, this is a lot so I'll put in under spoilers:
In the Skill section, create the "Protect" skill, like this.
1.png
The reason I say to get Yanfly's Target Core is so you can put this in the notetag:
<Select Conditions>
Not User
</Select Conditions>
This makes it so that the user can't target themselves, but any of their allies.

The reason for Yanfly's Lunatic Pack – Action Beginning and End Effects is so you can put:
<Begin Action: Add State X>
in the skill notebox. This is so the actor can grant themselves a certain state (I call mine "Aegis Stance")

Also, make a state to give to the ally (I call mine "Protected")
---
Now, inside the State category, here's the "Aegis Stance" state that the Actor gives to themself when they cast the skill.
2.png
Put the two tags
<SE_TargetRestriction: 1> ("1" can be any number, but make sure it's the same as the next state which I'll talk about in a bit)
<SE_TargetHPRate: 50> (This makes it activate when the Ally's HP is less than 50%)
and make sure to put the Special Flag Substitute in the traits box.

Lastly, this is the state that the selected Ally is given when the "Aegis Stance" skill is used:
3.png
Put this inside the notetag:
<SE_SubstituteTarget: 1> ("1" needs to be the same as what you set the <SE_TargetRestriction: >tag in the "Aegis Stance" state.)
...And that's all!

Hope I explained it well enough! It worked for me when I used an item on the protected ally, but I haven't tried a healing skill yet.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top