Original Source
- Original title: Calling a base stat parameter
- Original author: KeenWolf
- Original date: January 26, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/calling-a-base-stat-parameter.55747/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
I would like to know if it is possible to pull information from the Classes.JSON file. What I am attempting to do is use Yanfly's armor scaling plugin to create a formula that uses the base defense of a class to calculate damage reduction. The formula I'm attempting is: armor = (target.def / (target.base_def + target.level)) * 100. The problem is obviously with target.base_def. I'm very new to rpg maker when it comes to scripting so I don't know how to look into the files myself so I ask if there...
Archived First Post
This screen shot is of the enemies basic attack which should make an enemy that has 25 atk deal ~100 dmg. That damage should be decreased based on the armor formula in the notebox which if the target actor is level 1 and has a base def of 14 and a current defense of 26 it will do a calculation of: armor = (26 / (14 + 1)) * 100 = 173.33. This number then goes into Yanfly's armor scaling formula of: damage *= 100 / (100 + armor) which in this case would be 100 *= 100 / (100 + 173.33) = 37 damage dealt. That amounts to 63% damage reduction where as without that 12 additional defense the damage reduction would only be 48%. I'm looking to create a flexable armor system that makes building armor a viable strategy while not letting it get too powerful.
If anyone reading this is confused as to what I am asking I would like to know if it is possible to call the base defense parameter to be put into a plugin rather than try and put it into the damage formula box which I already know can't be done.
Protected download
Edit: I appear to have posted this in the wrong forum since this has to do with scripting, yet I have no idea how to delete the post. I must apologize to the Admins/Moderators for this.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
