Having the option to use Vigor in some spells - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Having the option to use Vigor in some spells (/thread-3221.html) |
RE: Having the option to use Vigor in some spells - madsiur - 04-30-2016 (04-30-2016, 09:45 PM)B-Run Wrote: The point i was getting at on-stream was that you could write any number of damage calculations using any number of variables and assign them to free bits in the spell variables I can make his vigor formula optional, there's no problem there. Thanks for the idea! RE: Having the option to use Vigor in some spells - seibaby - 05-01-2016 Hey, I JUST finished work on something like this and am playtesting it right now. It works, I'm just playtesting to adjust the damage of weapons and physical spells since it's obviously much higher now. The Great Physical and Magical damage formula Equalizer EDIT: Update: fixed a bug and cleaned up the code. Code: ;Physical Damage Formula Overhaul This has some extra stuff in it that I feel makes sense/is neat, overall it is a complete rebalance of Vigor. You absolutely need to severely decrease the Battle Power of weapons/characters and Spell Power of Physical spells since they're balanced for the crappy physical formula. Also, @Kugawattan, here's how to make physical Blitzes and Swdtechs Row-dependent: Code: ;Halve damage for physical Blitzes and Swdtechs EDIT: I just spotted a way to shrink the rowblitz code, I think. Am I correct in thinking BIT #$01 / BEQ could be shrunk to LSR / BCC? RE: Having the option to use Vigor in some spells - madsiur - 05-01-2016 Seibaby code is a really nice tweak but I'm posting a different though more basic tweak. It's not a contest between both codes because they aren't doing the same thing. Basically I use bit 7 of the special byte 3 ($11A7) of the spell data to implement vigor in magic damage calculation (see image). There two possible scenarios: 1) "Physical Damage" and "Special byte 3 bit 7" are checked: Spell use the magic damage formula and replace magic power with vigor. The spell is treated as physical for the rest (damage reduction, relic effects, etc...). 2) "Physical Damage" is unchecked and "Special byte 3 bit 7" is checked: Spell use the magic damage formula and replace magic power with vigor. The spell is treated as magical for the rest (damage reduction, relic effects, etc...). For a "regular" magical or physical damage, simply ignore Special byte 3 bit 7. The following is a bank $C2 implementation. If you plan on using this and want it in another bank, the code need modification. I had to include a decent chunk of vanilla code in the file because there was no moment I could call my first JSR properly. Code: hirom ;do not touch this RE: Having the option to use Vigor in some spells - Kugawattan - 05-01-2016 Good work, both of you. I'm thankful for your effort at helping me. I'm also a bit dense today. seibaby, how worse is the "level scaling" you mention ("It also makes physical abilites scale much worse with level, obviously.")? How much stronger would an attack made by a level 50 character with the same vigor and battle power than one of level 10? I don't remember what the scale was with vanilla, but for monsters (that have their vigor set randomly) being at a much higher level results in much, much more damage. Madsiur, you mention stamina multiple times in your post...you do know I said "Use Vigor instead of Magic"? Or is stamina coded for Vigor? Maybe I'm missing something completely. I'll thorougly playtest both and pick whichever suits me more...I'll let you guys know. RE: Having the option to use Vigor in some spells - seibaby - 05-01-2016 (05-01-2016, 06:32 PM)Kugawattan Wrote: how worse is the "level scaling" you mention ("It also makes physical abilites scale much worse with level, obviously.")? How much stronger would an attack made by a level 50 character with the same vigor and battle power than one of level 10? Vigor and Battle Power has very little effect compared to Level in vanilla. Since one of the terms in the formula is Level * Level, you can see that damage scales pretty much quadratically, while Battle Power and Vigor don't have a big effect. In other words, even a weak weapon or physical ability will do a lot of damage if your level is high. The magical damage formula is much more egalitarian with regards to stats; damage scales linearly with each stat. Even on a low level, a character with high magic can do a lot of damage with a strong spell. In other words, Magic and Spell Power have a much bigger effect. And, with my hack, Vigor and Battle Power do as well. From Terii's algorithms FAQ: Code: For magical attacks made by characters: My hack makes both characters and monsters use the same formula for damage: Code: Magical Damage = Spell Power * 4 + (Level * Magic * Spell Power / 32) RE: Having the option to use Vigor in some spells - Kugawattan - 05-01-2016 Oh, okay then, that sounds really awesome. Have you tested the "physical damage" box on the spell list in usME? I'm assuming they will take the physical damage formula, but since yours it's the same of the magic one, it overall works as if it was using the Vigor valor instead of Magic's. I'm still not sure how does it work in vanilla that function as a whole. RE: Having the option to use Vigor in some spells - madsiur - 05-01-2016 (05-01-2016, 06:32 PM)Kugawattan Wrote: Madsiur, you mention stamina multiple times in your post...you do know I said "Use Vigor instead of Magic"? Or is stamina coded for Vigor? Maybe I'm missing something completely. I'm the one who misread your post. I edited my code to use vigor. Note that my code only switch magic power for vigor in the maximum damage calculation in magic damage routine (C2/2B69) given you check the checkbox mentioned in previous post. You are right, monster vigor is a random number between 56-63. Since the in battle vigor value in $3B2C is vigor * 2 for characters, my code halves that value to reflect the real character vigor but does not alter the monster vigor. RE: Having the option to use Vigor in some spells - Gi Nattak - 05-01-2016 Nice work fellas! I'm wondering, would removing just the level scaling aspect help out the Vigor stat become important, as well as weapons/battle power? Or would that then make physical attacks too weak in general without switching the physical damage formula over to the magic one such as this patch does? RE: Having the option to use Vigor in some spells - dn - 05-01-2016 just removing level scaling would cause other problems, i believe. vigor's influence is just not dramatic. RE: Having the option to use Vigor in some spells - seibaby - 05-02-2016 (05-01-2016, 07:59 PM)Kugawattan Wrote: Oh, okay then, that sounds really awesome. Have you tested the "physical damage" box on the spell list in usME? I'm assuming they will take the physical damage formula, but since yours it's the same of the magic one, it overall works as if it was using the Vigor valor instead of Magic's. Yes, spells that have the "Physical damage" bit checked will use the physical damage formula. Have a look in the spell editor in FF3usME. Physical damage is a spell property used by a few spells: Pummel, Suplex, Dispatch, Slash, Quadra Slam, Quadra Slice and Tentacle. Battle and Special are technically spells and also have the physical attribute set. The physical property is set for certain Item usage as well, like (some) Tools or Thrown weapons. All other abilities use the magical damage formula unless they have some special way of calculating damage. Whether an attack is physical or magical affects which damage formula they will use, and how their damage is modified. For example, magical attacks are modified by Mdef. Shell, and Morph, while physical attacks are modified by Defense, Safe, Row and Defend. Which means that, if an attack ignores defense, the only difference is the damage formula used. One important difference of the damage formulas is which stat they use to calculate damage: physical attacks use Vigor, and magical attacks use Magic. Battle Power and Spell power are just two different names for the same stat: the power of the weapon/spell used. In vanilla, the formulas are different. With my hack, the only difference is whether Vigor or Magic gets used. So yes, if you're using my hack, you may think of the "Physical damage" checkbox in FF3usME as a "use Vigor" checkbox. |