Golden Sun Hacking Community
28, May, 2020, 05:51:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Be sure to check out gsmagic, a WIP tool that has map editing capabilities!
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Master Formula List  (Read 51612 times)
0 Members and 1 Guest are viewing this topic.
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« on: 25, May, 2014, 05:47:41 PM »

Howdy! So uh, yeah. Here's a topic in which we can organize the games' formulas and discuss them a bit. This first post will be separated into two sections; confirmed through code and unconfirmed through code (such formulas may have unknown variables that are as of yet undocumented). Organization will be a little lackluster until we have a decent proportion of the game's formulas in here.



Vanilla

Agility/Turn Order

The following section explains how PC turns are calculated.

Turn Order:
Randomized agility has priority;
PCs have priority over enemies;
Left-most slots have priority;

Agility x 0-FFFF (or ran) = RAN
LSR 14 RAN = #
Agility + #
÷ 2 for additional turns only.

So if Agility = x64 (100 decimal) and ran = xFFFF, then you multiply them;
RAN = 63FF9C
LSR 14 in a programmer's calculator;
# = 6
Add 6 to 100 Agility
= 106
If it's not the first turn (as in second, third, etc. turns);
106 ÷ 2 = 53

It boils down to:

(Agility + Agility*(0~6%))*(Multi-turn penalty)
Multi-turn penalty = 1 if it's a character's first action that turn, and 0.5 otherwise.

Maximum agility values to ensure desired turn order.
PC1: 999
PC2: 940 (941 if right of PC1)
PC3: 884 (885 if right of PC2)
PC4: 832 (833 if right of PC3)


Enemies, on the other hand, are much simpler.

For 4 turns, agility decrements by 1/6th each turn.
For 3 turns, by 1/4th.
For 2 turns, by 1/2.


Turns are normally capped at 4, manually adding more to an enemy's RAM will result in every turn after the first one having only half of its agility value.

0811D0A8 = Check for 4 turns, branch if not equal - Turn 2: 5/6 agility ; Turn 3: 4/6 agility ; Turn 4: 1/2 agility
0811D0D0 = Check for 3 turns, branch if not equal - Turn 2: 3/4 agility ; Turn 3: 1/2 agility
0811D0EE = Check for 2 turns, branch if not equal - Turn 2: 1/2 agility



Ailment Success

(((((((Attacker's elemental level - Defender's elemental level) - Floor(Defender's luck / 2)) * 3) + effect's base chance + (vulnerabity's 25)) * multi_arg) / 100)  >= rnd())

Where "rnd()" is a random number from 0-99 (x00 to x63), and "multi_arg" (previously known as "unk_arg") is for diminishing success rates based on the amount of targets the effect can be used on:
First (Primary Target) = 100%
Second (Next to the target) = 60%
Third = 30%
Fourth = 30%
Fifth = 30%
Sixth = 30%

Notes:
x52 = "82 - May force target out of battle" is always 0% when class is not NPC. (0% for player characters?)

These generate three random numbers... This would make, for example, a chance of 50% (one) to be 87.5% (three), I think.
x43 = "67 - Inflicts Seal"
x50 = "80 - Inflicts Death Curse"
x55 = "85 - May inflict Stun"[/spoiler]

Base success rates (assigned in the function at 080B0514):

Spoiler for Base Rates in GS2 (with examples):
080B0660 - 70% (12/13 - Def debuffs)
080B0664 - 75% (16/17 - eRes debuffs)
080B0668 - 30% (22 - Charm)
080B066C - 45% (24 - Sleep)
080B0670 - 55% (18/19 - Poison/Venom, 25 - Seal)
080B0674 - 25% (26 - Haunt)
080B0678 - 20% (27 - Instant Death)
080B067C - 65% (20 - Delusion, HP Drain)
080B0680 - 35% (21 - Confuse, 34 - HP to 1)
080B0684 - Flat 60% (56 - Revive to 50%)
080B0688 - Flat 90% (57 - Revive to 80%)
080B068C - Flat 70% (73 - Revive to 60%)
080B0690 - 60% (8/9 - Attack debuffs, 28 - Curse, 32 - PP Drain, 80 - Curse)
080B0694 - 50% (35 - May ignore 50% of Def)
080B0698 - 40% (23 - Stun, 85 - Stun)
080B069C - Flat 100% (Def buffs, eRes buffs, Regen, Reflect, Break... seems to be the default for anything that either shouldn't fail or has its success rate calculated differently)

Spoiler for Base Rates in GS1 (with examples):
08079E58 - 70% (12/13 - Def debuffs)
08079E5C - 75% (16/17 - eRes debuffs)
08079E60 - 30% (22 - Charm)
08079E64 - 40% (23 - Stun, 85 - Stun)
08079E68 - 45% (24 - Sleep)
08079E6C - 55% (18/19 - Poison/Venom, 25 - Seal)
08079E70 - 25% (26 - Haunt)
08079E74 - 20% (27 - Instant Death)
08079E78 - 65% (20 - Delusion, HP Drain)
08079E7C - 35% (21 - Confuse, 34 - HP to 1)
08079E80 - 50% (35 - May ignore 50% of Def)
08079E84 - Flat 60% (56 - Revive to 50%)
08079E88- Flat 90% (57 - Revive to 80%)
08079E8C - 60% (8/9 - Attack debuffs, 28 - Curse, 32 - PP Drain, 80 - Curse)
08079E90 - Flat 100%


Ailment Recovery

Note: 5 or fewer turns must remain for this chance to occur.

(((Luck * 3) - (Turns * 5) + base_chance) * 655) >= rand()

Random number is 16-bit (Up to xFFFF)
If chance was 100% and you multiplied by 655, you'd get xFFDC.  Evidently, 656 would make x10040.

Base chances of recovering from an ailment, etc:

Spoiler for Base Chances:
Attack = 30%
Defense = 20%
Resistance = 20%
Delusion = 30%
Confuse = 60%
Charm = 70%
Stun = 20%
Sleep = 50%
Psy-seal = 30%



Healing

This one is pretty simple.

If current HP > 0:
Restored HP = ((Base Value*ePower)/100) + (0~3)
If restored HP > max HP, overwrite with Max HP. Else add restored HP to current.

The 0~3 is basically calculated like so:
(0~3) = 3 AND rand()
Where rand() is a 16-bit value up to xFFFF. Change the 3 to change the amount that can be added to the final result.

I don't think it uses RNG when calculating the amount to restore outside of battle.



Regenerate/Coatlicue

Another easy one that's similar to the Healing formula, minus how the amount to heal is calculated:

If Duration > 0:
((Duration + 1)*Max HP))/10

So basically, having about 5 turns before the effect ends will net you 60% regeneration for that first turn. 3 turns will be 40%, 8 turns would be 90%, and so forth. You will be healed before the duration counter goes down at the end of the round.



Poison/Venom

This one is pretty similar to Regenerate, in that it reads the corresponding ailment value from the unit's RAM before making the calculations.

Located at 0812593C, it skips the calculation if Poison = 0; otherwise:
(Poison * Max HP)/10

A Poison value of 1 (regular poison) will deal about 10% of your Max HP in damage and a Poison value of 2 (venom) will deal about 20%. As an FYI, you can technically go higher than 2 despite there not being a graphic for anything higher than that (or even an effect for it). I should also mention that this does not actually apply in the field; that seems to be coded strictly for Poison values 1 and 2, and those are fixed at 5% for regular poison and 10% for venom as far as I can tell.

However, the field formula works a little differently. It only works if your Poison value is either 1 or 2, and each value uses a slightly different calculation. What I like about them is how they only deal roughly half damage when not in battle... Well anyway, here they are.

Poison: (Max HP + 10) / 20
Venom: (Max HP + 5) / 10




Summon ePow Boosts
((Tier x Tier) + Tier) x 5

"Tier" is a RAM value ranging from 1-4, depending on how many djinn of a single element are used in a summon. This formula doesn't account for differences when you follow a weaker summon with a stronger one, and the text that displays will only give you the difference (or, if the boost would put you above the 200 ePower cap, the difference between what it normally would be and the cap).

The boosts are normally 10-30-60-100 for each tier.

The formula reads more like this in the code:
((Tier x Tier) + Tier) = Tier2
(Tier2 x 4) + Tier2




So yeah! I'll work on scouring other topics for fomulas in a bit; please post any that you can think of, I would greatly appreciate it!
« Last Edit: 25, September, 2017, 05:55:33 AM by Salanewt » Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #1 on: 25, May, 2014, 06:27:40 PM »

Can you try this in "I don't need a degree in Assembly programming to understand this" version?

For example, that Agility formula confuses the hell out of me.
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile
leaf
Potions class is starting
Venus Clan

Death Eater+Grass Snake = Snake Eater? SNAAAAAAAKE

Veteran Member
*

Coins: 11
Offline Offline

Posts: 1322

« Reply #2 on: 25, May, 2014, 06:56:42 PM »

I thought it was pretty clear since he said this afterward:
Quote
It boils down to:

Agility + (Agility x 0~6%) [÷ 2]
Although I'd have notated it as:

(Agility + Agility*(0~6%))*(Multi-turn penalty)
Multi-turn penalty = 1 if it's a character's first action that turn, and 0.5 otherwise.
Logged

Spoiler for quotes:
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O
View Profile
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #3 on: 25, May, 2014, 07:55:38 PM »

Jamie: No problem! The bolded parts are the formulas done in normal math, and the rest is the more technical stuff (or additional information, etc.).

Leaf: Done and done, thanks for the notation; it's clearer than the one I had before.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #4 on: 25, May, 2014, 08:02:40 PM »

Yeah, I somehow missed the bolded text.

Is the multi-action penalty really that simple? Personally, I'm under the impression that it stacks. That is, your third action is at *0.5 *0.5, and your fourth action is at *0.5 *0.5 *0.5. The reason I say this is that with one particular boss I made, in my many tests I frequently found that it would take one action before the entire party, and another action before Sheba (who was the party's slowest member due to her class). But it wouldn't take both of its other actions before Sheba got to act. Just one of them.

Spoiler for Off-topic: Sheba is the slowest member?:
If you're wondering why Sheba was the slowest character, classes in this hack were rather heavily modded to emulate standard RPG/Final Fantasy archetypes instead of elemental Psynergy. Sheba's default class, the Magician, focused on damage-dealing spells of all elements. Attack power versus standard foes was good-to-mediocre, but was made up for by her ability to fairly consistently target a foe's weak point for heavy damage. The Magician has incredibly high HP and PP and decent Luck, but low Attack and Agility and abysmal Defense. She could tank base damage spells all day, but a standard physical attack from most foes would flatten her in 3 hits. Contrast Piers the Fencer, who would routinely take 1 damage from most foes' standard physical attacks, but would go down in 3 hits from any half-decent base-damage ability.

Also, weird things happen if you use the "extra turn next round" ability effect on a target multiple times. At 2 uses, the target treats their second action the same as their first, or something like that. For example, if I give an enemy 0 turns by default and another enemy targets it once with a Kite effect, it makes one action at 0.5x Agility. If another enemy targets it twice with a Kite effect, it makes one action at what seems to be either 1x Agility or 0.75x Agility.
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #5 on: 25, May, 2014, 08:39:50 PM »

That's what I was hoping when I initially started looking into it, but I can confirm 100% that it doesn't stack for PCs. In the battle ram section, there's enough room for 20 turns per round from all units. PC turns are input first, and then are rearranged depending on agility values when enemy turns are calculated. Agility is recalculated by reassigning an action for the turn, but consecutive turns are always roughly half of the range of the first turn's agility. You can probably guess that those later turns would scramble around then...

However, looking again against an enemy with 3+ turns, it looks like enemy agility is not randomized with 0-6%. It also divides at a slightly different rate and does stack (I never looked into 3+ turn enemies before, sorry). For them, it looks like the first consecutive turn is multiplied by about 75% (or 0.75), docking off about 25% of the previous value. I'll take another look at the code and see if I can find exactly how it's calculated. Might even make a patch that does this for both PCs and enemies if I can do so without rewriting the entire function.

An enemy with 300 agility will have the following three turns:
300
225 (x.75)
150 (x.50)

Not sure what the values are for 4+ turns, but I'm going to take another look at the code and check for enemy turns this time.


Thanks for pointing that out Jamie!
« Last Edit: 26, May, 2014, 12:50:46 AM by Salanewt » Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #6 on: 25, May, 2014, 09:08:45 PM »

I know a player character cannot have more than 1 extra turn, either through equipment mods or the "Extra turn next round" effect. This I was already aware of. At the time, I had assumed that enemies followed the same Agility rules as the player, and so by "your" I was referring to an enemy. When I talked about "stacking" the Agility mod, I was referring to the multi-turn penalty stacking, not to stacking the "Extra turn next round" effect.

But even for player characters, stacking the "Extra turn next round" effect does strange things to your action priority. Targeting a player character twice in one round with that effect seems to cause both of their actions to be made at their full Agility stat. The first action always goes before the second action, however, even if your Agility roll for the second action is higher than for the first. Although, now that I think about it it's entirely possible that rolling higher Agility on the second action than the first pushes the priority of the first action up, to the point where you can act first in the turn even if you are slower than other characters.

Enemies are locked to a maximum of four turns. Even an "Extra turn next round" effect cannot override that limit, and an enemy can only gain 1 extra turn per round through that effect regardless of how many times they are targeted by it. But just as I said for player characters, the "Extra turn next round" effect does strange things to action priority when applied multiple times to a single target.
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #7 on: 25, May, 2014, 09:46:00 PM »

Yeah, it's weird. My best guess is that it has something to do with ability and item effects not working 100% properly when it comes to granting extra turns (the ability effect being a buff that doesn't have stack). You can simply overwrite a PC's turn value in RAM and it'll work the way I've described, which I assume is how it is supposed to work. You can also do this in an enemy's RAM, so it isn't 100% locked to four turns; the downside is that the agility division stuff doesn't seem to work properly for 5+ turns (does the same thing as the PC agility formula without the randomization). You have to keep in mind, however, that you still only get a maximum of 20 turns total. PCs also get buggy if you give them too many turns...


So after testing with a Druj enemy, it seems that the agility ratings for consecutive turns are actually based on how many turns an enemy has; the x.75 multiplier doesn't apply with four turns. Likewise, the /2 thing also works for enemies if they only have two turns (which just reminded me that I knew the 0~6% thing didn't apply to enemies and forgot). This also happens to every turn after #2 if an enemy has more than four turns for some reason. So uh, I'll check the code to see if I can find the exact enemy turn formula.

Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
JamietheFlameUser
Diamond Pokémon
Mars Clan

Does this look like the face of mercy?

Prodigy
*

Coins: 20
Offline Offline

Gender: Male
I am: Poke poke poke poke... I can't stop it...
Posts: 2634

« Reply #8 on: 25, May, 2014, 10:05:00 PM »

I suspect the enforced cap on turn counts is probably deliberate. Either that, or it was a bug that they never bothered to fix because it never, under any circumstances possible in-game, would actually need fixing.

It actually almost makes sense for having extra turns above the cap to behave the way it does, honestly. I would like to know what the exact mechanics are that result in the strange mess of action priority I've just described, though.

Maximum 20 turns total, huh? Okay. In that case, I'll remember not to give 4 turns each to enemies that come in groups of 5...
Logged

:P

Lloyd: Easy as pie.
Genis: Sweet!
Presea: ...Sweetie pie...
Zelos: Let's not start on this again...

Spoiler for epic mindscrew:
View Profile
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #9 on: 25, May, 2014, 10:24:51 PM »

Well, as it turns out, the function that reads and does the calculations for enemy turn order is entirely different from the one that calculates PC turns (and that is a part of the same function that deals with attack/psynergy/defend/etc. action commands in battle).

I've noticed so far that this function grabs both the agility and turn values. It kind of looks like this is one of the functions that Teawater took a brief glimpse at, but there isn't much documented here. It also looks like it calculates an enemy's turns differently depending on how many turns an enemy has, not using the amount they have. There's a branch for "if /= 4 turns," which goes to a "if /= 3" and so forth. I'll work on documenting this and figuring out exactly how it works.


Yep! I can't say if the RAM right after the battle stuff is used for anything or not either, so 20 is the effective cap right now. PCs also tend to bug out if you go much higher than 4-5 turns, but it's not like you can really do that anyway.

Edit: Looks like Teawater is taking a look. All I'll say for now is that, before calculating the new values, it does a series of checks that somewhat resemble the following:

If Total Turns /= 4, branch;
If Current Turn = 0 (first one), branch;
If Current Turn /= 1 (second), branch;
...
If Total Turns /=3, branch;

And so forth. Unless he wants me to explain what he's finding, then I will let him finish studying them and post the info himself.
« Last Edit: 25, May, 2014, 10:53:19 PM by Salanewt » Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Daddy Poi
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2487

« Reply #10 on: 25, May, 2014, 11:02:02 PM »

A Master Formula List? Sounds like a plan!

Do you plan on putting the addresses of code locations in the list for future reference? (Then again, the only people who are likely to use it is you and me... but still, someone else might one day join us in our studies. Unlikely, but you never know?)


Quote
and post the info himself.
For 4 turns, agility decrements by 1/6th each turn.
For 3 turns, by 1/4th.
For 2 turns, by 1/2th...

Quote from: from documentation - edits from me and Salanewt
Executes at the start of a round.
0811CFD0 = Start
 0811D0A2 = Write Enemy’s Slot ID to battle RAM
 0811D0A4 = Write Enemy Agility to battle RAM
 0811D0A6 = Write Enemy’s current turn (0-3)
 0811D0A8 = Check for 4 turns, branch if not equal - Turn 2: 5/6 agility ; Turn 3: 4/6 agility ; Turn 4: 1/2 agility
 0811D0D0 = Check for 3 turns, branch if not equal - Turn 2: 3/4 agility ; Turn 3: 1/2 agility
 0811D0EE = Check for 2 turns, branch if not equal - Turn 2: 1/2 agility
0811D126 = Call Enemy AI
0811D15E = End

Edit: @5+ turns... it seems like the first turn is 100%  agility, and remaining turns are 50% agility? (non-stackable) ; That is assuming that I looked at the code right, ofcourse? The way it was coded makes me think that 5+ turns wasn't supposed to be a feature in GS. (The same 1/2 agility code is used where necessary.)


EDIT: /= looks like division, you could try != or <>, though.
« Last Edit: 25, May, 2014, 11:37:47 PM by Teawater » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?
View Profile
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #11 on: 25, May, 2014, 11:27:36 PM »

Terrific, thanks for the info Teawater; I have added what is necessary to the first post. I also plan on including more technical info later, since it would be nice to have an area where those experienced with assembly hacking can just find all of the game's formulas.

On that note, can you think of any more formulas that I can add to this topic? I remember researching the HP Healing one back when I made the HP% formula, so I'll try finding the .png/.gif I stored it on. It's pretty much the same as what has been documented by countless others fortunately.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #12 on: 26, May, 2014, 02:29:02 AM »

You found Ailment success?!  MOTHER FREAKING +1!  NICE JOB!
Logged

View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #13 on: 26, May, 2014, 02:37:58 AM »

Haha! Um, thanks for the compliment I guess. You know that Teawater is the one who found the formula a while back, right?
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Rolina
The Fulminous Witch
Jupiter Clan

Template maker turned lurker

Alchemist
*

Coins: 3
Offline Offline

Gender: Female
I am: wondering if we can get our clan position changed...
Clan Position: Grand Overlady of Jupiter
Posts: 6051

« Reply #14 on: 27, May, 2014, 11:03:00 PM »

No, I didn't.  I'd been looking for that sucker for quite some time now, and the times I had visited in the past must have been before then.
Logged

View Profile WWW
Salanewt
His Sexiness
Global Moderator

Oh yeah, baby!

Prodigy
*

Coins: 202
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4603

« Reply #15 on: 27, May, 2014, 11:55:02 PM »

I think it might have actually been a little bit before your return in... was it November? You can catch up on the discussion here if you'd like, but it's more or less just us doing some practice calculations and basic balancing discussion.


But anyway. Unless Teawater wants to post it later, I'll see if I can search through that topic where they were discussing critical hit rate stuff and add it to the first post at some point. Can you think of any other formulas that should be added and/or researched? I know that the wiki(s) have a bunch, but I'd rather not search them and give myself a migraine just yet.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Daddy Poi
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2487

« Reply #16 on: 28, May, 2014, 12:18:34 AM »

Rolina did know about it at one point, she just forgot about it.

Remember this post? http://forum.goldensunhacking.net/index.php?topic=2067.msg37426#msg37426
Rolina posted before /and/ after it. On the same day, too.

Critical Hit Rate stuff was discussed in one of the DCrisis sections, http://forum.goldensunhacking.net/index.php?topic=2448.0

EDIT: What do you think about moving Joao's topics out of the DCrisis section?
« Last Edit: 28, May, 2014, 12:43:43 AM by Teawater » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?
View Profile
leaf
Potions class is starting
Venus Clan

Death Eater+Grass Snake = Snake Eater? SNAAAAAAAKE

Veteran Member
*

Coins: 11
Offline Offline

Posts: 1322

« Reply #17 on: 28, May, 2014, 04:08:06 AM »

They probably shouldn't have been in dc to begin with, so yes. Move them out of there and into the general gs hacking forum.
Logged

Spoiler for quotes:
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O
View Profile
jjppof
Modafoca

Regular Member
**

Coins: 0
Offline Offline

Gender: Male
Posts: 107

« Reply #18 on: 01, June, 2014, 07:19:55 PM »


Let me see if I understood this agility formula for PCs:

First check:
Calculates speed for each char

speed = {AGI + [(AGI * rand(0, 65535))>>20]}*k

k = 1, if PCs first move in turn,
k = 0.5, if PCs second or more move in turn

Second Check:

Check the max speeds and correct it id needed:
PC1: 999
PC2: 940
PC3: 884
PC4: 832

Third check:

If a certain PCs speed is the same of a enemy, PC goes first.

Fourth check:

The most left char has priority.
Logged

View Profile WWW
leaf
Potions class is starting
Venus Clan

Death Eater+Grass Snake = Snake Eater? SNAAAAAAAKE

Veteran Member
*

Coins: 11
Offline Offline

Posts: 1322

« Reply #19 on: 01, June, 2014, 07:42:52 PM »

Ignore the second check. That's the "practical use" of the formula. Sala was just saying what the highest speeds each char could have if you wanted a consistent turn order, without the rng ever causing a PC of lower agility to move before a PC of higher agility.
Logged

Spoiler for quotes:
[9:00:50 PM] Randel Peltier: Ok...what did I do last night?
[9:01:19 PM] Kain: Something boring, repetitive, and lasted for about sixty seconds.
---
[10:45:08 AM] Salanewt: But yeah, the elemental phalluses are being... Stroked up by Saturos and co., and the energy will go towards... Mt. Muffin, where the Golden Climax will arise.
[7:28:42 PM] Salanewt: An added bonus is that Isaac and co. were trying to stop Saturos and co. because their beliefs state that Mt. Muffin should remain a virgin.
---
[9:54:21 PM] Randel Peltier: Guess the number in my head an you get to pick what I say. Number between 1-10
[9:54:28 PM] leaf: 11
[9:54:36 PM] Randel Peltier: @#$%!
---
[8:38:13 PM] Randel Peltier: Shes like this queen up on a pedastal that I have yet to court.
[8:38:29 PM] Kain: You've tried courting her.
[8:38:43 PM] leaf: and failed spectacularly
[8:38:44 PM] Randel Peltier: Ive tried...shes the best dating game ever.
---
[12:24:35 AM] Salanewt: I need to find a picture of a naked person to put on the Christmas tree next year.
---
[2:19:06 PM] Zeadra: wait... Rief's a guy???
---
[1:09:57 PM] Zeadra: well if you want to know if its a new effect or something weird, just check GS1, if side step is there maby it is the nimble dodge thing
[1:10:35 PM] Kioll: For once, you've contributed something useful.  o.O
View Profile
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  

Chatbox
27, April, 2020, 07:54:10 PM
Daddy Poi: I'm having a thought. So I know Atrius's editor is slow at saving sprites.... So I've been thinking.   I am considering another console program.  This time, for importing and exporting sprites/animations. Image files (for sprites), binary files (for animation data), and maybe binary or text files for Settings. Would certainly be cool if it works out. - Console programs are fun, when you can (at least temporarily) cheat out making a full interface editor for them. =P
25, April, 2020, 10:42:07 PM
Daddy Poi: Tried to list those in order of importance, but anyway....
25, April, 2020, 10:37:59 PM
Daddy Poi: GSHC, GS Speedrunning, /r/Golden Sun, GS United Nations, ToK.  Sixth one is border-line I'm not sure.
25, April, 2020, 08:00:21 PM
Daddy Poi: (low as in <100)
25, April, 2020, 08:00:04 PM
Daddy Poi: So while there are quite a few GS Communities out there. There are only up to maybe ~6 Discords worth even the consideration of joining, I think. Most of the rest of them have a fairly low member count. (Of which I can tell?)
14, April, 2020, 10:49:35 AM
Daddy Poi: The Essential Age could be what it stands for?
13, April, 2020, 05:23:32 PM
Misery: Tea editor... that's a cute name for it
01, April, 2020, 02:42:50 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:48 AM
JupiterDjinn: Also my browser is sending two o f my messages srry.
01, April, 2020, 02:42:09 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
01, April, 2020, 02:42:06 AM
JupiterDjinn: Just got the reply. Ok my question is: how can I get the tea editor on Android, because I already have an emulator. But no computer.
31, March, 2020, 07:18:29 PM
Salanewt: Sure thing!
31, March, 2020, 03:38:30 PM
JupiterDjinn: Can I have a question answered?
31, March, 2020, 03:38:27 PM
JupiterDjinn: Can I have a question answered?
28, March, 2020, 12:50:15 AM
Salanewt: I want to shrink it down in size later, but yup!
28, March, 2020, 12:50:13 AM
Salanewt: I want to shrink it down in size later, but yup!
26, March, 2020, 03:24:45 PM
Daddy Poi: The news box is back? :D
19, March, 2020, 05:59:16 PM
Salanewt: Nice work hiding the searchbots Atrius!
19, March, 2020, 04:23:34 PM
Salanewt: I was wondering when I said that stuff! May need to work it out with Kain.
19, March, 2020, 07:03:05 AM
Daddy Poi: (The simplest being to not accept char IDs pass 255, I think.)
19, March, 2020, 05:33:15 AM
Daddy Poi: Heheh.... I'm just testing. You pretty much gave it away. Hahah. It seems to look fairly convincing, but I'm sure there's an easy solution to preventing it.
19, March, 2020, 05:28:50 AM
Atrius: Whelp, there it goes... Just what I didn't want.  Have fun with that I guess...   
19, March, 2020, 05:20:25 AM
Daddy Poi: So like. Replace the "e" with another "e"? Alright. Gotcha.
19, March, 2020, 05:04:41 AM
Daddy Poi: Good work.
19, March, 2020, 04:44:10 AM
Atrius: Nah, any member could change their name to what I did, there's a trick to it.  I just fixed it so that now the Cbox will use your new name if you change it though, so... That part of the problem is fixed.
19, March, 2020, 04:41:53 AM
Daddy Poi: For which? It may be that normal users can't change their names to used names, but admins can?
19, March, 2020, 04:39:57 AM
Atrius: Sorry if the Cbox keeps breaking, I'm trying to make that be less of a thing.
19, March, 2020, 04:02:04 AM
Daddy Poi: Looks like ID Fraud. You're under arrest. :D  Oh wait.
19, March, 2020, 03:57:56 AM
Atrius: Yup, that's a thing.
19, March, 2020, 03:57:08 AM
Atrius: Just testing something, for science.

Affiliates
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.096 seconds with 22 queries.