Golden Sun Hacking Community
04, August, 2020, 09:48:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: The last working version of the classic TLA Editor is Teawater's unofficial "mapeditor" draft.
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Some Questions about Formulas  (Read 3014 times)
0 Members and 1 Guest are viewing this topic.

New User


Coins: 20
Offline Offline

Posts: 5

« on: 23, March, 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
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: 4604

« Reply #1 on: 30, March, 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: 20
Offline Offline

Posts: 5

« Reply #2 on: 30, March, 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
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: 4604

« Reply #3 on: 31, March, 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
Daddy Poi's Oily Gorillas
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 1002
Offline Offline

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

« Reply #4 on: 31, March, 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: 31, March, 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...

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?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)
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: 4604

« Reply #5 on: 01, April, 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:  

Chatbox
01, August, 2020, 01:31:53 PM
KyleRunner: Hello, people!
08, July, 2020, 08:57:11 PM
Salanewt: That awkward feeling when almost a quarter of a year goes by without anyone posting a message in this chatbox.
27, April, 2020, 07:54:10 PM
Daddy Poi's Oily Gorillas: 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's Oily Gorillas: Tried to list those in order of importance, but anyway....
25, April, 2020, 10:37:59 PM
Daddy Poi's Oily Gorillas: 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's Oily Gorillas: (low as in <100)
25, April, 2020, 08:00:04 PM
Daddy Poi's Oily Gorillas: 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's Oily Gorillas: 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's Oily Gorillas: 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's Oily Gorillas: (The simplest being to not accept char IDs pass 255, I think.)
19, March, 2020, 05:33:15 AM
Daddy Poi's Oily Gorillas: 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's Oily Gorillas: So like. Replace the "e" with another "e"? Alright. Gotcha.
19, March, 2020, 05:04:41 AM
Daddy Poi's Oily Gorillas: 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's Oily Gorillas: 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's Oily Gorillas: Looks like ID Fraud. You're under arrest. :D  Oh wait.

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.061 seconds with 23 queries.