Is it possible to implement Guard Actor with lowest HP skill?

LucaP

Villager
Member
Joined
Apr 4, 2018
Messages
5
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hello everyone,
I wonder if it is possible to have the following effect added to an equipment.

If the item is equipped the actor will become some sort of 'tank' to the player with the lowest HP during a battle.
So whenever the the actor with the lowest HP in battle is attacked, the actor that has that item equipped will take the
damage instead.
(How) could this feature implemented in a game?
 

TWings

The Dragon Whisperer
Veteran
Joined
Jul 26, 2017
Messages
527
Reaction score
860
First Language
French
Primarily Uses
RMMV
I've never used it, but have you tried the "Substitute" Trait (in Other -> Special Flag) ? The description says it does exactly that.

EDIT : after a closer look at the code, Substitute actually works only if the target HP are less than 1/4 (dying) and the attack isn't a Certain Hit.
If you're ok with that, it works fine.
 
Last edited:

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
I've bashed together a quick plugin that will overwrite the Substitute Traits checks making it check for the ally with the lowest hp to protect instead. You can download it here.

Use it commercially, non-commercially, edit it, do what you like with it.
 

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top