Golden Sun Hacking Community
04, June, 2020, 09:01:19 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  
 
  Search  


Simple Success Rates
Simple Success Rates.ips
Filesize: 145B  Views: (2056)  Downloads (312)  Last Download: 02, June, 2020, 02:01:38 AM 
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.

Notes:
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 11, May, 2015, 01:50:16 AM

Rating: ***** by 1 members.

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

Comments
JamietheFlameUser
Diamond Pokémon
Mars Clan
Prodigy
*

Coins: 20
Offline Offline

Gender: Male
Posts: 2634


Does this look like the face of mercy?


View Profile
19, February, 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 19, February, 2016, 02:56:50 AM
:P

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

Spoiler for epic mindscrew:

Salanewt
His Sexiness
Global Moderator
Prodigy
*

Coins: 202
Offline Offline

Posts: 4604


Oh yeah, baby!


View Profile WWW
25, January, 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 25, January, 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?
Caledor
Excellent Member
****

Coins: 20
Online Online

Gender: Male
Posts: 876


I need saves to test encounters in GS Reloaded!


View Profile
23, January, 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
Comment: 
Your comment will not appear until it has been approved.
Return to Downloads

Powered by: Download System by CreateAForum.com
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.056 seconds with 24 queries.