Golden Sun Hacking Community
August 18, 2019, 11:47:34 PM *
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  

Simple Success Rates
Simple Success Rates.ips
Filesize: 145B  Views: (1741)  Downloads (260)  Last Download: August 16, 2019, 02:19:57 PM 
Previous Download | Next Download
Description: Update: Slightly moved the base function a bit. It's not necessary at all to update unless you want to use the Unleashes Unleashed patch, in which case it's mandatory that you install this new patch first.

Howdy everyone! This is basically another optimizing patch, but this time for ailment success rates. I modified the function at #080B0514, and it even takes up less space than it did before now!

Basically, the game loads a byte from (080B053C + ability effect ID) and checks to see if it is less than 151 in decimal. If so, then the success rate will be based on luck and the formula. If not, then it will subtract 151 and use the resulting number as a flat success rate. Two examples of what I mean below:

Sleep normally has a 45% success rate based on the formula. It's value, in hex this time, is x2D. This is less than x97 (151), so it will be based on the formula.

Revive (60%), on the other hand, normally has a 70% flat success rate (xDD, or 221 this time). Because it is greater than 151, it will subtract that amount and ignore the formula like normal. This means that you have to add 151 (decimal) to the success rate you want to use when editing it in.

Edit for clarity: You can have anywhere from 0-150% for base success rates that use the formula, and 0-100% (151-251) for flat success rates that do not use the formula.

Unlike the previous function, this one covers every ability effect and leaves a tonne of space where the old code was; plenty of room for a new function or two. However, I left the NEG and POP instructions in the original spot, as whether new functions or success rates for additional ability effects should go in here is up to whoever uses this patch.

Edit: Whoops, forgot to actually give the address for the actual list in this description. Fixed!

Edit 2: Turns out I left an extra instruction in there by accident; thanks for pointing it out Caledor! I fixed the download, which can be applied over the old patch with no problems.
Posted by: Salanewt May 11, 2015, 01:50:16 AM

Rating: ***** by 1 members.

Linking Codes
Direct Link
0 Members and 1 Guest are viewing this files.

Diamond Pokémon
Mars Clan

Coins: 0
Offline Offline

Gender: Male
Posts: 2633

Does this look like the face of mercy?

View Profile
February 19, 2016, 01:44:48 AM
Is the table address given here accurate to the previous version of this patch? 'cause I'm finding totally random data at that address in a hack I made that uses an old (pre-Unleashes Unleashed) version of this. I'm certain I didn't edit the activation rates of the first 8 ability effects (0-7) at all, but I'm not seeing 0xFB as their values

Edit: Never mind! I'm just an idiot lol. Apparently I hadn't actually used the patch yet on my previous version.
Last modified by: JamietheFlameUser February 19, 2016, 02:56:50 AM

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

Spoiler for epic mindscrew:

His Sexiness
Mercury Clan

Coins: 0
Offline Offline

Posts: 4586

Oh yeah, baby!

View Profile WWW
January 25, 2015, 12:28:28 AM
Oops, I think you're right; must have accidentally left that first one in from a WIP version of the function. I'll update with a fix momentarily.

Edit: Fixed! Thanks for finding that!
Last modified by: Salanewt January 25, 2015, 12:46:08 AM
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?
Excellent Member

Coins: 0
Offline Offline

Gender: Male
Posts: 836

I need saves to test encounters in GS Reloaded!

View Profile
January 23, 2015, 12:43:26 AM
Squirtle please check your function at 080B0514, I think you're adding r0 and r2 twice at 080B0518 and 080B051A, making the LDRB miss its mark.

Add Comment
Your comment will not appear until it has been approved.
Return to Downloads

Powered by: Download System by
August 15, 2019, 04:08:47 PM
Fox: Golden Sun Slacking Community = I like that, Misery! Perfect April Fools joke?
August 13, 2019, 02:37:11 AM
Salanewt: Oh hey Atrius, long time no see!
August 12, 2019, 11:37:45 PM
Fox: (Someone else discovered that, not me.)
August 12, 2019, 11:33:42 PM
Fox: So um. It looks like abilties in the class editor are being put back in as a byte for GS1?
August 12, 2019, 08:02:58 PM
Fox: Also, it seems most of us have moved to the Discord. In case if you were wondering where the forums activity went. Maybe come by and check it out. But it is just a suggestion, you don't have to.
August 12, 2019, 07:57:02 PM
Fox: I figured that was a possibility. If you are guesting, it is hard to know how frequently you check back. It's great to hear from you, though. :)   What have you been up to?  Is Forgotten Dreams still being worked on, or has that been cancelled? (I'd guess you don't have much time for it. It's been years since we've last heard about it.)
August 12, 2019, 12:48:12 AM
KingAmiti: Still great work Atrius :)
August 11, 2019, 06:45:03 PM
Atrius: This place was a HUGE part of my life, and even though I don't have the time that it really deserves to take care of it, I will love it forever, and never forget about it..
August 11, 2019, 05:16:34 PM
Atrius: If anyone wants to make a replacement site then go for it.  Although I plan to keep this place up for the foreseeable future, it isn't really maintained anymore.
August 11, 2019, 05:09:10 PM
Atrius: Sometimes he comes by and looks around without logging in.
August 08, 2019, 11:52:33 AM
Fox: Does Atrius still come here? He hasn't logged in since last year. Maybe it is time to create a replacement site so we can have our full encyclopedia... Then again, I'm too lazy. Especially to get all that done by myself. :/
July 06, 2019, 03:44:41 AM
Salanewt: Oh, yeah there isn't an animation overhaul for GS1 sadly.
July 03, 2019, 04:54:58 PM
ryancaesar12345: GS2 Animation Overhaul w/ Baseline  ips patch in golden sun 1?
July 03, 2019, 12:03:06 AM
Salanewt: There actually is a Jupiter revive... if you're using the Animation Overhaul patch. I think Caledor made a standalone patch for GS1 too, but you'd have to ask him.
July 02, 2019, 07:34:13 AM
Fox: So like... (just a thought)...  If we designed a script to compare times for speedrunning something... goalChance represents stability (I think?) ; If it is 100%, answer results in infinite, which means you can't have 100% stability. (Meaning you'd basically be skipping all item drops/etc.) 
July 02, 2019, 07:06:08 AM
Fox: (I still want to make sure the equation is correct, though... as it did include some guessing.)
July 02, 2019, 07:04:47 AM
Fox: Was thinking .... tosses = ln(1-goalChance) / ln(1-chance) = "chance" being a single-toss percentage probability (0.00 - 1.00) , goal chance being if you did more tosses...   So that's an interesting logarithm.  Just came up with it after some research/thinking... and could maybe be useful for general use.
June 25, 2019, 02:51:42 PM
ryancaesar12345: jupiter revive animation any?
June 24, 2019, 08:05:17 AM
Fox: Such a patch would mean you need to be careful with item drops, coins, exp, etc. Because those things would then no longer be an infinite supply.  Whether or not one uses it depends on what they want to do with it.
June 24, 2019, 07:55:01 AM
Fox: (High enough being based on the area you are in.)

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.129 seconds with 24 queries.