DMV Willpower (stat)

DMV Willpower (stat)
By Dekita
​
Introduction:

A short description of how this system works;
As you take damage from hp, willpower goes down, and other stats (atk, def, mat, mdf, agi and luk) each go down in accordance with the will multiplier. When you are at full hp mp and tp, the other stats will be normal.

A more detailed explanation;

This plugin creates two new stats - will, and willrt.

Will Rate (willrt), is a stat that is solely based on combined hp, mp, and tp rates. Eg, when all are full, will rate will also be full (1.0 / 100%). This value can NOT be controlled by the player - other than whatever control they have over hp, mp and tp via potions and skill etc.

Will (will), is a simple stat that is meant to be used within the will power multiplier function to allow for the multiplier value to be different when certain actors/classes/enemeies/equips or states are in effect. By default, this value is 0.

The willpower multiplier function is used to determine parameter LOSS. Notetags can be used to allow each actor / enemy to use a different multiplier function from one another.

If all of this sounds extremely confusing to you, know this; Your stats go down as your hp/mp and tp does. The higher your 'will' stat, the less the parameters go down when not at full will rate. And you can also customize the formula that determines the param loss.

Additionally, as all battlers now have shiny new stats called 'will' and 'willrt', you can use these in skill formulae as shown below;

(a.will * 10) * (1.0-b.willrt)Screenshots:

Not required

Plugin:

Link

FAQ:

None yet

Credits:

Dekita / DekitaRPG
Interesting. This ought to be a good way to make a party member. Uber-strong, but becoming weaker whenever he or she takes a hit.
Its quite strange when you can see all the stats after each hit - cause everything goes up and down. I had to scale back the default formula by half cause it was just FAR too much. 😀
Great! Reminds me a bit of the ps1 strategy RPG Kartia! ^w^
This is wonderful.

May I ask, how would one go about editing the script so that low Willpower only affects one statistic (namely Attack)?
At line 161, you will see this...

/** * safe_param_ids * Holds array of safe parameters to ignore for willpower mods */var safe_param_ids = [0, 1];Simply add more parameter ID's to this array and the stat will not be altered by willpower. So for everything except regular attack, it would be

Code:
var safe_param_ids = [0,1,3,4,5,6,7];
Maybe others know but not I, what Parameter is each ID?
Could someone give a brief list, please?
Default Parameter ID's are as follows;  mhp: 0, mmp: 1, atk: 2, def: 3, mat: 4, mdf: 5, agi: 6, luk: 7. 🙂
This is really interesting.  Is there an easy way to make the loss of parameters decrease ONLY based on missing HP, and not have MP/TP affect it?
Around line 179 of the code, looks something like this:

$.reader(battler, 'willrt', function(){ return (this.hpRate()+this.mpRate()+this.tpRate())/3; });Just change it to look like this instead:

Code:
    $.reader(battler, 'willrt', function(){      return this.hpRate();    });
Is it possible to make sure that HP and MP each affect different stats?

I basically want my characters physical stats like Strength and Defence to lower down with HP while

Magic Attack and Defence goes down with MP? Basically magic spells grow weaker as an actor loses MP.

You follow?
Yea I follow, unfortunately that is not possible. I may consider adding it in the future though. 🙂
The link is spam or wrong redirect.
woops, old site ~sry. fixed 🙂
The link is spam or wrong redirect.
Thank you for responding.

Original thread: https://forums.rpgmakerweb.com/threads/dmv-willpower-stat.46947/