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 Profile Posts

I am feeling better about my update schedule, I feel like I am actually getting consistent work done even if it isn’t big updates.
It's a joy to work on a well-made map. I am not regretting this commission in the least!
I'm currently being attacked by the RPG Maker Hydra: fixing one problem only to have two more rise to take its place.
Hey you! Yeah YOU! Whatcha doin' not backing up your projects? You a masochist or sumthin'? GO BACK UP YOUR PROJECTS! Sheeesh... Didn't think I'd hafta spell it out for yas.
now I need to determine, how MV determines if an auto tile is complete or not.
Edit:From what I can tell it uses Autotile kinds to do that.
Edit 2: The editor determines it and packs picture data for the engine....

Forum statistics

Threads
94,296
Messages
919,749
Members
124,042
Latest member
mintypatronus
Top