Hi all,
My game uses some pretty low numbers (the default attack stat for the majority of actors is 1 or 2, for context!) - I want to make use of skills to buff and debuff stats, but with the numbers being so low, the engine's default method of handling buffs and debuffs means a skill that buffs will either be ludicrously weak (having no effect) or being blatently overpowered.
I am using Visustella and am trying to tinker with SkillStates Core. In the Buff/Debuff settings area you can set the Buff/Debuff rate.
The code reads as follows:
// Declare Variables
const user = this;
const paramId = arguments[0];
const buffLevel = arguments[1];
let rate = 1;
// Perform Calculations
rate += buffLevel;
// Return Rate
return Math.max(0, rate);
As far as I understand this, what I've actually done is made it so that a buff effectively doubles the stat, which is definitely not what I want.
What needs to change so that a buff would give a flat +1 increase to a stat, and a debuff would give a flat -1 to a stat?
My game uses some pretty low numbers (the default attack stat for the majority of actors is 1 or 2, for context!) - I want to make use of skills to buff and debuff stats, but with the numbers being so low, the engine's default method of handling buffs and debuffs means a skill that buffs will either be ludicrously weak (having no effect) or being blatently overpowered.
I am using Visustella and am trying to tinker with SkillStates Core. In the Buff/Debuff settings area you can set the Buff/Debuff rate.
The code reads as follows:
// Declare Variables
const user = this;
const paramId = arguments[0];
const buffLevel = arguments[1];
let rate = 1;
// Perform Calculations
rate += buffLevel;
// Return Rate
return Math.max(0, rate);
As far as I understand this, what I've actually done is made it so that a buff effectively doubles the stat, which is definitely not what I want.
What needs to change so that a buff would give a flat +1 increase to a stat, and a debuff would give a flat -1 to a stat?