Guard Upgrade (Custom Guard Skills, Guard Damage Divisor Stat, Set Self to Guard, and more!)

Guard Upgrade​
(version 1.00)​
by SumRndmDde​
 ​
Intro:

Uuuuuuugh, I hate making these posts.

But, I created the Plugin, so I should post it anyway. T_T

What This Plugin Does:

This Plugin allows you to manipulate the Guard system in your game.

The two main points of this Plugin is:

 - the ability to change an Actor's guard skill,

 - the ability to manipulate how much damage is reduced from Guarding using a new stat called Guard Damage Divisor (GDD).

Other key features of this Plugin include:

- Ability to make an Actor guard when using a Skill that does not target themself

- Ability to use a new stat called Guard Damage Divisor to manipulate guarding damage

- Ability to set Guard Damage Divisor based on Actor/Class/Armor/Weapon/State

- Ability to add Guard Damage Divisor based on Actor/Class/Armor/Weapon/State

- Ability to set Guard Damage Divisor for Enemies

- Ability to set defaults for every value in this Plugin

How Does GDD work:

Before anything else, I think I should go over how Guard Damage Divisor (GDD) works.

Normally, when someone is damaged while they are guarding, the damage is cut in half, like this:

Guarding Damage = Damage * (1 / 2)

However, in this Plugin, GDD replaces the "2" you see in the formula, like this:

Guarding Damage = Damage * (1 / GDD)

This means if GDD is 4, then all damage is 1/4th as strong when guarding.

If GDD is 10, then all damage is 1/10th as strong when guarding.

If GDD is 100, then all damage is 1/100th as strong when guarding.

Finally, just wanted to say that each Actor has a unique GDD.

Furthermore, the amount of GDD that each Actor starts with by default can be changed in the Parameters.

(By default, it is 2).

How To Use It:

Let's start with the Notetags.

 ​
Notetags:

Actor/Class/Weapon/Armor/State Notetags:

<setGuardDamageDivisor: x>

Set x to the Guard Damage Divisor (GDD) you wish for this Actor to have.

This will override all <addGuardDamageDivisor: x> commands.

Furthermore, this command takes the following priority:

- State

- Weapon

- Armor

- Class

- Actor

If multiple of these have <setGuardDamageDivisor: x> in their Notetag,

then the one higher on the list will be the one used.

<addGuardDamageDivisor: x>

Set x to the amount of Guard Damage Divisor (GDD) you wish this

Actor/Class/Armor/Weapon/State to add to their total GDD.

The total number is used as the Actor's GDD.

<guardSkillID: x>

Set x to the Skill ID you wish this Actor to use when they

use the Guard command in battle.

Furthermore, this command takes the following priority:

- State

- Weapon

- Armor

- Class

- Actor

If multiple of these have <guardSkillID: x> in their Notetag,

then the one higher on the list will be the one used.

Enemy Notetags:

<guardDamageDivisor: x>

Set x to the Guard Damage Divisor (GDD) you wish this Enemy to have.

 ​
Skill Notetags:.

<appliesGuardToUser>

Inputting this into the Notetag of a Skill will make the User guard

no matter what the Skill's scope (target) is.

 ​
 ​
Parameters:

Default GDD (Actors)

This is the default Guard Damage Divisor (GDD) that Actors

use when they do not have a specific one.

Default is 2

Default GDD (Enemies)

This is the default Guard Damage Divisor (GDD) that Enemies

use when they do not have a specific one.

Default is 2

Default Guard Skill

Input the Skill ID you wish for Actors to use when

one hasn't specifically been set.

Default is 2

Guard State ID

Input the State ID for a "normal" guard State.

It is used in the <appliesGuardToUser> command.

Default is 2

[status Menu]

Show GDD in Status?

Set this to 'yes' if you wish for the Actor's Guard

Damage Divisor (GDD) to be displayed on the Status Menu.

Default is yes

Status GDD Name

This is what Guard Damage Divisor (GDD) is called on the Status Menu.

Default is Guard Damage Divisor

Status GDD Color

This is what Guard Damage Divisor (GDD) is colored on the Status Menu.

Default is 2

Status GDD Width

This is how wide the Guard Damage Divisor (GDD) is on the Status Menu.

If it looks squished, then increase this number.

Default is 240

 ​
 ​
Damage Formula Functions:

a.gdd

Returns the battler's Guard Damage Divisor (GDD).

Screenshots:



Spoiler
B1ECIwj.jpg


YsQobka.jpg


rnEZ1UA.png


n8uwcrL.png


JoXp2u0.png


A9yAgzT.png


PoGhxpH.png


Download:

There is a link to download the plugin in the description of this YouTube video.

https://www.youtube.com/watch?v=xIfIqABfOxk

It's a tutorial/trailer for the plugin also, so feel free to watch and enjoy it!      😛

Terms of Use:

Two rules:

1) This script is free for usage in non-commercial and commercial projects.

2) If used in a commercial project, give credit to "SumRndmDde" somewhere!

FAQ:

Q: The plugin receives an error or doesn't work for whatever reason.

A: Post whatever error you get or what won't work in a reply, and I'll see what I can do.

Q: You suck.

A: How else am I going to use a straw? 

Change Log:

Version 1.00

- Plugin Created
Nice work with it. It kinda works like gdr (GuaRD effect rate) does, but instead of having it as an SP-Param (base 100% and multiplies itself when being added from states, equipment, and actor and classes traits)


it works a bit diffently (I'm guessing it sums up instead of multipling itself, kind of like an EX-Param would do... Am I right? O_O)
Nice work with it. It kinda works like gdr (GuaRD effect rate) does, but instead of having it as an SP-Param (base 100% and multiplies itself when being added from states, equipment, and actor and classes traits)

it works a bit diffently (I'm guessing it sums up instead of multipling itself, kind of like an EX-Param would do... Am I right? O_O)
Yup, while GRD usually multiplies the "2" in which damage is divided by,

GDD literally replaces the "2".

Furthermore, GDD is the sum of all the factors that add to it (assuming it's not specifically set to something).

Original thread: https://forums.rpgmakerweb.com/threads/guard-upgrade-custom-guard-skills-guard-damage-divisor-stat-set-self-to-guard-and-more.51484/