SRPG Studio

SRPG Studio

CNU Feb 14, 2020 @ 6:57pm
Fire Emblem style effective damage
So I was messing with the Singleton Calculator script and I found out how to recreate Fire Emblem styled effective damage (where the damage is increased base on weapon might and not attack)
On line 116 of the Singleton Calculator is where the damage formula is for effective damage. Where is says "pow = Math.floor(pow * this.getEffectiveFactor());" change it to "pow = Math.floor((pow - weapon.getPow()) + (weapon.getPow() * this.getEffectiveFactor()));" I think this way might be easier because it doesn't require a seperate line for if the weapon is magic based, but I made this with a lot of trial and error so it might not be the simplest.
This formula will not only give you Fire Emblem style effective damage, but it's adjustable using the Effective Coefficient in Config 2. So having it set to 300% with 5 Strength and a bow that deals 5 damage will do 20 damage to an enemy with 0 defense and a weakness to bows, but will only deal 10 damage to an enemy without a weakness.
Just make sure to use "Save As" and to put the modified file into plugins when you make the change.
< >
Showing 1-2 of 2 comments
RadiantTower Feb 25, 2020 @ 11:23pm 
Thanks for the tip
Lord Mystirio Feb 25, 2020 @ 11:47pm 
Originally posted by CNU:
So I was messing with the Singleton Calculator script and I found out how to recreate Fire Emblem styled effective damage (where the damage is increased base on weapon might and not attack)
On line 116 of the Singleton Calculator is where the damage formula is for effective damage. Where is says "pow = Math.floor(pow * this.getEffectiveFactor());" change it to "pow = Math.floor((pow - weapon.getPow()) + (weapon.getPow() * this.getEffectiveFactor()));" I think this way might be easier because it doesn't require a seperate line for if the weapon is magic based, but I made this with a lot of trial and error so it might not be the simplest.
This formula will not only give you Fire Emblem style effective damage, but it's adjustable using the Effective Coefficient in Config 2. So having it set to 300% with 5 Strength and a bow that deals 5 damage will do 20 damage to an enemy with 0 defense and a weakness to bows, but will only deal 10 damage to an enemy without a weakness.
Just make sure to use "Save As" and to put the modified file into plugins when you make the change.
Thanks, @CNU. I think this could be info useful for many people, so maybe you might consider putting it into the "Guide" section or at some point, it will be buried with the flood of messages.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Feb 14, 2020 @ 6:57pm
Posts: 2