Golden Sun Hacking Community
May 19, 2019, 11:29:35 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
Author Topic: [WIP] blanky's formulas  (Read 578 times)
0 Members and 1 Guest are viewing this topic.
« on: October 18, 2018, 03:43:20 AM »

Currently laying some groundwork for a hack centered around improving replayability and the hard mode feature. It would probably take forever for me to actually finish a full hack, given my busy schedule, but I plan on implementing the features one by one and releasing mini-patches so that nothing goes to waste either way. (The semi-randomized enemy drops patch was the first of these mini-patches.)

But every hack needs a mechanical foundation. So basically I plan on overhauling a variety of formulas in the game to achieve a semblance of balance. Yes, more formula hacks seems redundant. Stay with me here. Note that these are, as of right now, all very rough drafts. I would love it if the community could give me feedback or ideas for better implementation.

HP & Atk stat growths are assumed similar to vanilla.
Def stat growth is assumed doubled from vanilla. (see:Physical damage)
Casting is a new stat. (see:"Magic" damage)
Agility is now capped at 255.
PP may or may not be reduced subjectively.

Physical damage: [(Lv*8+Additive modifier)(Atk/Def)*Multiplicative modifiers]
The italicized portion (Atk/Def) would be capped at a minimum of 0.5 and a maximum of 1.5. This formula shifts the value of the Defense stat so that it's every bit as good as attack, rectifying the obvious imbalance between the class multipliers for the two stats. Not counting modifiers like resistance the formula acts as follows:

--(~200) damage at level 50 if Atk/Def equals 0.5 or less
--(~400) damage at level 50 if Atk/Def equals 1.0
--(~600) damage at level 50 if Atk/Def equals 1.5 or greater

--(~396) damage at level 99 if Atk/Def equals 0.5 or less
--(~792) damage at level 99 if Atk/Def equals 1.0
--(~1184) damage at level 99 if Atk/Def equals 1.5 or greater

I got the idea of Atk/Def as an equalizer from the Pokemon damage formulas.

"Magic" damage: [Base*Rand(1.0 to 1.25)*4(CurrentCastStat/MaxCastStat)*Modifiers]
The italicized section is capped at a minimum of 1.0. CastStat refers to a new stat, similar to Intellect in Salanewt's patch. The idea here is that until you pass 25% of the max stat (so probably 250) the psynergy would do its base damage, modified only by a small amount of randomness (to make it feel less controllable than physical attacks). But after that it would gradually increase to its final damage of about 4*Base. Ignoring resistances a psynergy with a base power of 200 would act as follows:

--(200-250) damage at <250 CastStat
--(400-500) damage at ~500 CastStat
--(800-1000) damage at 999 CastStat

Keep in mind that base powers can be modified suitably. The goal here was just to implement scaling properly. I took inspiration from some of the newer Dragon Quest games for this formula, since they too once lacked a proper magic stat before adding one in.

Healing: [Base*Modifier*(1+CurrentCastStat/MaxCastStat)]
Yep. Scaled healing. Note that base powers would be modified properly to fit this model. The differences between Mercury and non-Mercury would also be less drastic, probably by substantially nerfing Mercury. It's okay for Mercury healing to be slightly stronger but it shouldn't render other healers inviable.

Enemy stat growth: [Growth*Level(1+Level/100)]
The section in italics is capped at 1.5. The idea here is to have every enemy's stats calculated and save those results to RAM instead of having fixed stats. Why bother? Because by adding subroutines for (level+a IF flag is set) you can have monsters that grow stronger as you progress through the plot AND that can scale properly for a New Game+ mode. Instead of vanilla's total cop out x1.5 Atk/HP mode.

Are you wondering what the italicized section is for? It's to simulate character growth. While you keep getting djinn and classing up, monsters don't get that luxury. So instead they're given a modifier based on their level that reaches 1.5 at level 50 and then stops. (This way monsters never become totally insurmountable after you STOP getting new djinn.)

Note that this could also save a few bytes in monster data (if those hardcore hackers really need them) because growth stats should never come close to the monster's original stats. This might also indirectly remove the caps from monster stats, depending on how it's coded. Not sure.

Easy option: Simple Success Rates patch+Enemy Specific Immunities patch

New option: Give each monster a resilience stat (0-100). Change the status formula to (Base acc-Resilience). Which should save substantial space since that's a simple formula. And here's the fun part. Give every monster a "family" byte that determines which abilities they are and are not immune to. Families would be things like Boss, Dragon, Aquatic, etc.

And of course it would have the same benefits as the enemy specific immunities patch. Want a lightning unleash that always paralyzes flying enemies? Done. How about a bait item that distracts animal type enemies? Gotcha. A holy themed psynergy that instantly removes undead enemies from your sight? Say no more fam.

Dodge rate: [Agility/(Level/20)=Dodge chance]
This one's definitely a work in progress and may or may not see the light of day. The general assumptions are (A) dodge success will be checked BEFORE unleash rate so agile monsters can effectively dodge late game uses of the attack command, (B) items will be modified to restrict access to broken agility boosts in the early game, and (C) class modifiers for agility are kept modest, maybe even within a -20% to +20% margin.

The core goal here is to make agility just as worth optimizing as the other stats. Instead of just determining turn order, this change would allow players to toss some end-game agility focused gear on a Ninja and turn it into an honest to goodness dodge tank build.

A hard cap of perhaps 50% dodge rate is probably necessary. But these so called dodge tanks are still vulnerable to everything except normal attacks...unless I can set a value on the monster skill EPAs that allows them to skip to a dodge animation as well. No promises.

Other changes
Summons. Nerfing. Question is how. On Discord we discussed several options, from implementing a special meter, to inverting the damage formula so they only do their full damage to weakened enemies, to implementing a "disabled" mode for djinn instead of out of battle standby, to just reducing or flat out removing the HP modifier. It's hard to find an answer that feels right because summons are integral to the game but BROKEN AS THE GOLDEN GUN.

Personally I'm leaning toward the inverted damage formula, with a few modifications to allow summon rushing to still be an option without being THE option.

ELevels would probably be removed from all formulas, as it's otherwise wasted space on enemies. Ailment recovery might just be a set number of turns, or perhaps based on agility or the new casting stat. Dunno yet.

I might also add a formula that factors in both Atk and CastStat. This would be useful for a few things, like making maces and light swords that feel right on both melee and mage characters.

Last, and honestly least, I want to move the equipment calculations so that multipliers only apply to the character, not the equipment. The fact that Sol Blade can have anywhere from 160-340 attack depending on Felix/Isaac's class does not make sense to me. It's the same sword. Ancient magical swords of legend don't just randomly lose their sharpness because you happen to be holding a black book.

This is all I have for formula discussion at the moment. Please tell me about every mistake I made in my calculations and assumptions. Thank you.
« Last Edit: October 18, 2018, 10:57:39 AM by blanky-blank » Logged
Pages: [1]   Go Up
Jump to:  

May 12, 2019, 12:15:01 PM
raijinken: Hey there guys. Been a long time. But has anyone found out how to make a hard mode of Dark Dawn?
April 18, 2019, 01:18:08 AM
Fox: Thinking.... meme topics.....    Isaac: Stop calling me a sack! Also, don't call me sick either!
April 03, 2019, 08:24:45 PM
Fox: Really don't see the point in the Crystal or even the crown conversation, but whatever... (I mean, if you want to do it, then just do it. - Doesn't need to be at GSHC, because there are no longer clan leaders at GSHC.)
April 03, 2019, 03:59:33 AM
squizzy44: We all need to band together to take down Crystal.
April 02, 2019, 12:00:09 AM
Fox: Your clan?  You can't edit it manually, so you have to tell an admin so they can do it. There's actually a topic for when you pick a clan... but uhh... I've no idea if an admin will see it via that, though. (Kain will certainly see id you ping him on GSHC Discord.)
April 01, 2019, 05:28:42 PM
squizzy44: How do I change my position on my profile? I haven't used the site in nearly 10 years...
March 31, 2019, 10:10:15 PM
Fox: I still wonder if a Tret glitch for speedrunning exists... I don't think I looked into if the PC was on one of the other layers. (Which basically the second layer edits @-0x200 instead of @-0x100... in the event you are going up (y-axis) out of bounds.) Hm.
March 31, 2019, 06:18:43 PM
Fox: Not me.
March 31, 2019, 02:59:38 PM
Salanewt: I don't know of any, although if there were then we'd have to send it as a patch file. I think someone is working on it at least!
March 29, 2019, 07:51:48 PM
MaxiPower: no such thing exists
March 26, 2019, 03:38:42 AM
reeZ931: I would really appreciate it 
March 26, 2019, 02:39:38 AM
reeZ931: Anyone have a golden sun rom where you can play as saturos and menardi properly? 
March 25, 2019, 09:31:15 PM
Fox: It would explain why everyone leaves so quickly after taking our bananas.
March 24, 2019, 10:36:10 PM
Fox: Wouldn't bananas increase agility the more you have? Like... Diddy Kong Racing reference.
March 22, 2019, 11:19:11 PM
Average Wind Seer: Banana: Restores 50PP to user. Restores 40PP to Isaac if Jenna uses this item.
March 22, 2019, 09:57:53 PM
Salanewt: Lol. I mean, I am thinking of adding a banana item to GS so...
March 22, 2019, 09:48:42 PM
Fox: Ooh! Sala's back!  I think he wants a banana.  All this banana talk must have attracted him.
March 22, 2019, 08:56:52 PM
Fox: :O I just notice I have no Coins to buy bananas with! (You know, the coins feature this forum has.)
March 04, 2019, 08:45:44 PM
Fox: Aw.  I kind of want to suggest dressing up in a banana costume.  No wait, that's a bad idea.
March 04, 2019, 04:24:10 AM
Average Wind Seer: *angry gorilla noises that roughly translates to "Stay the [redacted] off my island and don't touch my [redacted] bananas"*

Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.099 seconds with 20 queries.