Golden Sun Hacking Community
April 22, 2019, 10:08:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Some Questions about Formulas  (Read 332 times)
0 Members and 1 Guest are viewing this topic.

New User


Coins: 0
Offline Offline

Posts: 5

« on: March 23, 2019, 06:57:19 AM »

I was wondering about some odd details that I need to complete a spreadsheet I'm working on.  Sorry in advance if I accidentally break a rule here,  or posted in the wrong spot, or if these questions have been answered elsewhere in the forums.  I'm new here :s

1. For weapons that have multiple unleash effects, what are the exact probabilities for each?  I found Excalibur's probabilities on the wiki: 40% for 1x damage, and 60% for 3x damage.  Also found the probabilities for the Tisiphone Edge (30% for 1x, 20% for 2x, 50% for 3x).  What about the Masamune, Swift Sword, and Bandit's Sword?  Also, are those percentages rounded to a fraction out of 256?  I was also wondering the same thing regarding secondary effects of Djinn, like the chance for Gust to deal double damage.

2. I read in a post on Weapon Variabilities here that weapon effects have half the base% chance of working as dedicated spells, eg. Blinding Smog from the Righteous Mace would have half the base chance of causing Delusion as the spell Delude.  I assume that also applies to Djinn unleashes?  But what about things that don't have associated spells, like the health sapping of the Angelic Ankh, or the chance to halve agility from the Hestia Blade? (Actually, the Drain spell saps HP, but I couldn't find the probability for that.)

3. Is there a list of bosses with preset move orders?  The ones I've found so far were Saturos, Manticore, maybe Poseidon (I haven't tested that), Dullahan, and the first action of each phase of Doom Dragon (thanks to Plexa).  Are there any others?

4. Crit chance vs Unleash Chance:  The two seem to be used interchangeably elsewhere but in game they're two totally different effects.  How are the probabilities for crits dealt with, for enemies too?

Basically, I'm trying to make something where you can plug in a weapon, and some statistics, and have the spreadsheet tell you the average damage you would deal each attack, factoring in crit chance, unleash chance, average unleash multiplier, and relative power and attack.  I'm also making something where you can plug in a boss, and some statistics on a target, and see the probabilities of each move's effects activating on that target, as well as the average damage that target would take from each of the other moves, and the total average damage per turn.

Apologies again if these questions have already been answered somewhere else, or if I'm not supposed to have this many questions on one post... Thanks for any replies!
Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
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: 4579

« Reply #1 on: March 30, 2019, 06:42:16 PM »

Hey there! I'll answer as best I can:

1. I'm not sure; this is just for Dark Dawn though, for the record.

2. Do you have a link for that? I ask because that doesn't feel accurate, but it's entirely possible we need to double check some code. I *think* it might actually be tied to ability formula used (Effect Only may have a higher rate?) but I'd have to verify that.

3. You should be able to check in the editor for that one; Poseidon and Dullahan have sequential patterns, but they are set up a bit differently than other enemies. Poseidon links to a second moveset that it draws from on every second turn, and Dullahan has a random starting point but otherwise chooses moves in a sequential order using three enemy slots. It also uses Defend occasionally, which is a bug with the AI that I haven't fully worked out yet (Defend is what the AI defaults to when it is unable to select a move).

4. Unleashes take precedence over everything else; crits come either after that, or after miss rates. Both critical and miss rates are 1/32 if I recall correctly, though crits are also boosted by crit-boosting gear (not only unleashes).


This spreadsheet project sure sounds interesting!

And it's not a problem at all! Ask away. :P
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

New User


Coins: 0
Offline Offline

Posts: 5

« Reply #2 on: March 30, 2019, 08:58:16 PM »

Thank you again!

Um, yeah, on closer inspection, that Weapon Variabilities post was about suggested balancing things, not actual ingrained mechanics >~<

I only just learned about the editor from these forums, and it seems pretty darn kewl!  I read on the wiki that Dullahan also had a second moveset he draws from when his Psynergy is sealed.  I had to study that for the Dullahan Solo I made o3o.  I'll download the editor and try to figure stuff out I suppose ^-^

I take it that means that three independent random numbers are rolled: one for unleashes, one for crits, and one for missing?  Or do any of them share a random number?  That makes a lot of sense actually, since weapons with unleashes increase the BRN by 4 before landing a hit, although idk what that 4th RN is for.  I have a bunch of questions about RN too.  I would assume that the boost to crit chance from equipment is also additive, rather than multiplicative.  Also how much does Delusion affect the chance to miss?

I have a bunch of questions concerning battle mode too.  Should I make a new post or just have all the questions in this thread?  Btw, I read your master formula list from a while ago ^-^ It might be cool to include the formula for flee chance, some damage formulas, stat formulas, and BRN formulas maybe.
Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
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: 4579

« Reply #3 on: March 31, 2019, 02:58:46 PM »

Haha, yeah it's pretty neat! We've already talked about the Dullahan thing over Discord, but I'll reiterate here for anyone else who reads this topic:

Dullahan has a linked moveset that draws abilities from three enemies. When sealed, it will skip psynergy due to the way the AI works. It's not really a second move pool, so much as the game cutting some actions out under the right conditions (the same would happen in a hypothetical scenario where Dullahan has 0 PP). Action selection is also slightly bugged, because the way the AI is set up means that an enemy will always use Defend if it is unable to select a valid action within x number of code loops; this is why Dullahan sometimes uses Defend despite not having it in its move pool.


Critical boosts are indeed additive! I'm not sure how helpful I'd be about random number stuff though; you may have better luck asking someone from the speedrunning community.


As for battle mode, it's up to you! I can always answer questions over Discord, although we could use a topic that goes over some things too; I don't think a lot of people have given it much thought.

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
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 0
Offline Offline

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

« Reply #4 on: March 31, 2019, 06:12:52 PM »

Quote
Critical boosts are indeed additive! I'm not sure how helpful I'd be about random number stuff though; you may have better luck asking someone from the speedrunning community.
All you have to do is put a breakpoint on the function, and see where it is called for all four times... Read the code there to see what it is. (Perhaps using the GS2 Documentation as a generic guide.)


I thought of the random +0 to +3 number... but I think he's referring to before that...  Maybe effect chance.
Too lazy to check right now.
« Last Edit: March 31, 2019, 06:16:39 PM by Fox » 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...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 0
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: 4579

« Reply #5 on: April 01, 2019, 07:11:38 PM »

Lol, well I was mainly referring to this part:

Quote
I have a bunch of questions about RN too.

But yeah, that should help.
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
Pages: [1]   Go Up
  Print  
 
Jump to:  

Cbox
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"*
March 04, 2019, 03:06:07 AM
Fox: Gosh. This is like playing whack-a-mole! What's taking you so long with the bananas?! :D

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