I'm trying to recreate an ability called Underdog.
Here's a description of the skill.
Underdog: Increases damage dealt to an enemy in proportion to how much higher the enemy's level is.
And here is how I want mine to function.
Underdog: Increases the actor's stats in proportion to how much higher the enemies stats are.
So I don't know any Java at all, but from my basic understanding of C++, a couple of RpgMaker Java expressions/functions and some help from Reddit. I think I know how to recreate the ability... As a passive state.
I'm not sure if I need integers, but I'm going to put it here just in case.
int EneBST = 0;
int UrBST = 0;
int BSTBoost = 0;
EneBST = (b.mhp + b.mmp + b.atk + b.mat + b.def + b.mdf + b.agi + b.luk);
UrBST = (a.mhp + a.mmp + a.atk + a.mat + a.def + a.mdf + a.agi + a.luk);
if (EneBST > UrBST)
{
EneBST - UrBST = BSTBoost;
a.addBuff(0, 100); BSTBoost
a.addBuff(1, 100); BSTBoost
a.addBuff(2, 100); BSTBoost
a.addBuff(3, 100); BSTBoost
a.addBuff(4, 100); BSTBoost
a.addBuff(5, 100); BSTBoost
a.addBuff(6, 100); BSTBoost
a.addBuff(7, 100); BSTBoost
}
I'm not sure if code can work in a state's notebox, if it does, then I'd run into a new problem of how I get the BST of multiple enemies.
Here's a description of the skill.
Underdog: Increases damage dealt to an enemy in proportion to how much higher the enemy's level is.
And here is how I want mine to function.
Underdog: Increases the actor's stats in proportion to how much higher the enemies stats are.
So I don't know any Java at all, but from my basic understanding of C++, a couple of RpgMaker Java expressions/functions and some help from Reddit. I think I know how to recreate the ability... As a passive state.
I'm not sure if I need integers, but I'm going to put it here just in case.
int EneBST = 0;
int UrBST = 0;
int BSTBoost = 0;
EneBST = (b.mhp + b.mmp + b.atk + b.mat + b.def + b.mdf + b.agi + b.luk);
UrBST = (a.mhp + a.mmp + a.atk + a.mat + a.def + a.mdf + a.agi + a.luk);
if (EneBST > UrBST)
{
EneBST - UrBST = BSTBoost;
a.addBuff(0, 100); BSTBoost
a.addBuff(1, 100); BSTBoost
a.addBuff(2, 100); BSTBoost
a.addBuff(3, 100); BSTBoost
a.addBuff(4, 100); BSTBoost
a.addBuff(5, 100); BSTBoost
a.addBuff(6, 100); BSTBoost
a.addBuff(7, 100); BSTBoost
}
I'm not sure if code can work in a state's notebox, if it does, then I'd run into a new problem of how I get the BST of multiple enemies.