Damage based of $gameParty.gold using Yanfly Lunatic Mode Skill Core

Nerdboy

Veteran
Veteran
Joined
Jan 4, 2017
Messages
78
Reaction score
7
Primarily Uses
hi im using lunatic mode for yanfly's skill core and trying to make two skills called "Payday" and "Payback".. But im doing zero damage even if i have 100,000 gold.


heres the code im using give me some tips on how to fix it plz thank you.


Payday


<Pre-Damage Eval>


dmg = $gameParty.gold * 0.5;


$gameParty.gainGold(100);


</Pre-Damage Eval>


Damage Formula looks like this.


a.mat += dmg; a.mat;


Payback does damage based on a multiplier as you take damage. the more damage you take the more you deal. pretty simple but not working either.


Payback


<Pre-Damage Eval>


dmg = $gameParty.gold  * 0.5;


$gameParty.loseGold(100);


</Pre-Damage Eval>


Damage Formula looks like this.


1/(1/a.mhp*a.hp) * (a.mat += dmg);


the problem is the dmg variable isnt being recognized for some reason in the pre-damage evaluation. please help idk whats wrong code to me looks right.


i also tried a.mat = dmg but that doesnt work either. i also tried just adding dmg; as the damage formula but not working either.
 
Last edited by a moderator:

Nerdboy

Veteran
Veteran
Joined
Jan 4, 2017
Messages
78
Reaction score
7
Primarily Uses
solved. i forgot to add () in the $gameParty.gold() part to recognize gold amount oops.. but works great now.


here's the code for "Payday" and "Payback"


Payday: what it does is give you random gold per hit from 50-500GP, and deal more damage based on 10% of your gold amount.


<Pre-Damage Eval>


dmg = $gameParty.gold() * 0.1;


x = (Math.floor(Math.randomInt(500) + 50));


$gameParty.gainGold(x);


</Pre-Damage Eval>


Damage Formula looks like this.


dmg;


Payback: Payback does damage based on a multiplier as you take damage. the multiplier is 10% of your gold!!! the more damage you take the more you deal.  it also makes you loose gold from 50-500GP randomly so you deal less damage as you use it but increased damaged as you take hits.


<Pre-Damage Eval>


dmg = $gameParty.gold() * 0.1;


x = (Math.floor(Math.randomInt(500) + 50));


$gameParty.loseGold(x);


</Pre-Damage Eval>


Damage Formula looks like this.


1/(1/a.mhp*a.hp) * dmg;
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Free RPG Maker Ready Charging Up Animation

Enjoy -No Credit Needed But Appreciated -
Download it at https://lvgames.itch.io/free-charging-up-pixel-animation-fx-rpg-maker-ready
:/ .... so, thought I’d go to the park to sit in the cool breeze and get out of the house a little. Nope, guess that’s quarantined too. Ok...
How do you do when you want to work on projects but the game companies make so many games available for free because of the quarantine?
Kes
I have just stepped down from being a Mod, so please don't send me any more pm's with Mod questions. Thanks
Made a brief video showcasing early game play... Got a copyright claim by BIG UP! (https://big-up.style/) for using music I bought from here (Future Steam Punk Pack). Now I wonder if I should strip any purchased music from here out of my game. :LZSskeptic:

Forum statistics

Threads
95,485
Messages
929,496
Members
125,725
Latest member
Elender
Top