What Game Mechanics would you like to know?

Any information you would like to share or ask in regards to the hacking of Legend of Legaia
Post Reply
User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: What Game Mechanics would you like to know?

Post by meth962 » Mon Jan 19, 2015 7:19 pm

I found both but...
I ran home quick after work and looked at it for 30 mins before I had to run.

The map encounter list might be extractable. It's going to take more time because they store it in a really stupid manner on the CD.

The way surprise/back attacks work in Legaia is by summing the party's speed and the enemy party's speed and adding a little randomization to their totals. Here's the cool part, compasses STACK (on different characters only though). So Noa and Vahn can both wear silver compass or both wear golden compass.

With one silver compass, the party's summed speed is boosted 50%
With one golden compass, the enemy party's summed speed is lowered 50%

This comes into play later when more RNG is rolled to determine surprise/back attack. Quick guess here after seeing a little of the assembly code, golden compass might add 50% chance to surprise the enemy. Might be home later tonight to confirm.

-- Tue Jan 20, 2015 12:56 am --

Okay figured it out and I was a little hasty :P but they sure programmed it weird. So the speed thing was right, but I forgot to add in that it's the average speed (not sum) of each party. And I was wrong, compasses do NOT stack. I reread the assembly code and they are overwriting the values, not adding them for each character : /

Silver Compass boosts the speed average by 50% and the Golden Compass decreases enemy average speed by 50% (kinda weird they both do that in a way).

So, the base surprise / back-attack chance is 1 out of 16 (6.25%) of the time.
Silver Compass lowers the back attack chance to 1 out of 64 (1.56%).
Golden Compass raises surprise chances to 1 out of 2 (50%)!
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: What Game Mechanics would you like to know?

Post by Nightshade » Thu Jan 29, 2015 1:19 am

This isn't a mechanics question per se, but for speedrunning purposes, I'm curious to know...

What exactly triggers the game to have a Noa Dream Sequence when you stay at a given inn? These are huge timewasters for speedrunning purposes, so I'd really love to know when I can stay at an inn without triggering one.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: What Game Mechanics would you like to know?

Post by meth962 » Fri Jan 30, 2015 9:34 am

As far as I've seen, at given points in the story they become available. Then it is a random chance every time you stay at an inn.
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: What Game Mechanics would you like to know?

Post by Nightshade » Thu Feb 19, 2015 11:35 am

Can you by any chance get at the amount of EXP needed for each character to reach each level? I only need through level 30 for this, but I wanted to make sure that I get enough EXP to be at the correct level I need for the final boss, which is 27 or 28, depending on the amount of EXP needed.

Another thing would be if you knew or could get at the amount of MP that enemies consume when they use their special attacks. This is particularly relevant for Songi 2, but it's also worth knowing for some of the other bosses so I know when I don't have to worry about said bosses using their super moves any more during the fight.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: What Game Mechanics would you like to know?

Post by meth962 » Fri Feb 20, 2015 9:29 am

I can easily get the level experience. I can find that table pretty quick I bet.

As for the boss MP, it was on my to-do list but I already added it to my walkthrough. For example...

<i>Hyper Lightning 120MP, Hyper Crush 180MP</i>

And he has 800MP. Just remember, Jette cheats and restores his MP. I haven't seen other bosses do that but just look out for it :)

*Edit: forgot to mention, I'm actually home tonight so I'll be able to check that out for you late at night.
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: What Game Mechanics would you like to know?

Post by Nightshade » Fri Feb 20, 2015 2:17 pm

Sounds good; I was wanting to really know how much EXP is required for L26, 27, and 28 so I know how much grinding I would need beyond forced encounters for what level I wanted to be for the final boss.

Also, something really interesting would be some sort of information about Dohati and his "size" mechanic. I think we all know by now that Dohati gets really small after using Chaos Breath, puffs up over time or as he is dealt damage, and uses Chaos Breath again when he gets to max size. But I don't think the exact formulae have been figured out yet.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: What Game Mechanics would you like to know?

Post by meth962 » Fri Feb 20, 2015 9:24 pm

Turns out, there is only one experience table. Vahn's. The other two characters derive theirs from Vahn's with the help of another offset table to differentiate their numbers from Vahn's. I ran out of time to delve into it but I was following the assembly code through Noa's. I'll finish it sometime if someone wants.

But for now, this is Vahn's experience table:

1 - 121
2 - 365
3 - 730
4 - 1,338
5 - 2,190
6 - 3,407
7 - 4,989
8 - 7,058
9 - 9,613
10 - 12,777
11 - 16,550
12 - 21,052
13 - 26,285
14 - 32,370
15 - 39,306
16 - 47,216
17 - 55,781
18 - 65,703
19 - 76,714
20 - 88,935
21 - 102,366
22 - 117,128
23 - 133,221
24 - 150,766
25 - 169,763
26 - 190,333
27 - 212,476
28 - 236,313
29 - 261,844
30 - 289,190
31 - 318,351
32 - 349,448
33 - 382,481
34 - 417,571
35 - 454,718
36 - 494,043
37 - 535,546
38 - 579,348
39 - 625,449
40 - 673,970
41 - 724,911
42 - 778,393
43 - 834,416
44 - 893,101
45 - 954,448
46 - 1,018,578
47 - 1,085,491
48 - 1,155,308
49 - 1,228,029
50 - 1,303,775
51 - 1,382,546
52 - 1,464,463
53 - 1,549,526
54 - 1,637,856
55 - 1,729,453
56 - 1,824,438
57 - 1,922,811
58 - 2,024,693
59 - 2,130,084
60 - 2,239,105
61 - 2,351,756
62 - 2,468,158
63 - 2,588,311
64 - 2,712,336
65 - 2,840,233
66 - 2,972,123
67 - 3,108,006
68 - 3,248,003
69 - 3,392,114
70 - 3,540,460
71 - 3,693,041
72 - 3,849,978
73 - 4,011,271
74 - 4,177,041
75 - 4,347,288
76 - 4,522,133
77 - 4,701,576
78 - 4,885,738
79 - 5,074,619
80 - 5,268,340
81 - 5,466,901
82 - 5,670,423
83 - 5,878,906
84 - 6,092,471
85 - 6,311,118
86 - 6,534,968
87 - 6,764,021
88 - 6,998,398
89 - 7,238,099
90 - 7,483,245
91 - 7,733,836
92 - 7,989,993
93 - 8,251,716
94 - 8,519,126
95 - 8,792,223
96 - 9,071,128
98 - 9,355,841
99 - 9,646,483

I've only verified Level 31 and 32, and I remember seeing 121 for level 1 so I think it is correct unless there is some code later on that formulates upper levels differently. Which is entirely possible since I already saw how they formulate it differently when you are less than level 17.

-- Sat Feb 21, 2015 5:30 pm --

Okay, what a pain. Gala and Noa had what I call a "stunt growth" table that the game looks up. It basically takes the Exp Vahn needs and subtracts about 0.5% for Noa and adds ~0.5% for Gala. All tables shown below:

Noa
1...102...-15.70%
2...336...-7.95%
3...692...-5.21%
4...1,285...-3.96%
5...2,120...-3.20%
6...3,317...-2.64%
7...4,875...-2.29%
8...6,917...-2.00%
9...9,441...-1.79%
10...12,571...-1.61%
11...16,306...-1.47%
12...20,767...-1.35%
13...25,955...-1.26%
14...31,991...-1.17%
15...38,874...-1.10%
16...46,727...-1.04%
17...55,235...-0.98%
18...65,092...-0.93%
19...76,034...-0.89%
20...88,181...-0.85%
21...101,534...-0.81%
22...116,213...-0.78%
23...132,218...-0.75%
24...149,670...-0.73%
25...168,569...-0.70%
26...189,035...-0.68%
27...211,068...-0.66%
28...234,789...-0.64%
29...260,199...-0.63%
30...287,416...-0.61%
31...316,442...-0.60%
32...347,396...-0.59%
33...380,279...-0.58%
34...415,211...-0.57%
35...452,192...-0.56%
36...491,342...-0.55%
37...532,662...-0.54%
38...576,270...-0.53%
39...622,168...-0.52%
40...670,475...-0.52%
41...721,191...-0.51%
42...774,435...-0.51%
43...830,210...-0.50%
44...888,632...-0.50%
45...949,702...-0.50%
46...1,013,540...-0.49%
47...1,080,147...-0.49%
48...1,149,640...-0.49%
49...1,222,019...-0.49%
50...1,297,405...-0.49%
51...1,375,794...-0.49%
52...1,457,309...-0.49%
53...1,541,948...-0.49%
54...1,629,828...-0.49%
55...1,720,951...-0.49%
56...1,815,431...-0.49%
57...1,913,271...-0.50%
58...2,014,588...-0.50%
59...2,119,378...-0.50%
60...2,227,760...-0.51%
61...2,339,733...-0.51%
62...2,455,413...-0.52%
63...2,574,796...-0.52%
64...2,698,001...-0.53%
65...2,825,021...-0.54%
66...2,955,971...-0.54%
67...3,090,854...-0.55%
68...3,229,772...-0.56%
69...3,372,731...-0.57%
70...3,519,834...-0.58%
71...3,671,079...-0.59%
72...3,826,567...-0.61%
73...3,986,302...-0.62%
74...4,150,385...-0.64%
75...4,318,791...-0.66%
76...4,491,640...-0.67%
77...4,668,904...-0.69%
78...4,850,678...-0.72%
79...5,036,946...-0.74%
80...5,227,784...-0.77%
81...5,423,166...-0.80%
82...5,623,150...-0.83%
83...5,827,697...-0.87%
84...6,036,858...-0.91%
85...6,250,551...-0.96%
86...6,468,792...-1.01%
87...6,691,446...-1.07%
88...6,918,462...-1.14%
89...7,149,614...-1.22%
90...7,384,782...-1.32%
91...7,623,589...-1.43%
92...7,865,539...-1.56%
93...8,109,934...-1.72%
94...8,355,768...-1.92%
95...8,601,296...-2.17%
96...8,844,066...-2.50%
97...9,078,631...-2.96%
98...9,296,339...-3.63%
99
Total: 239,746,027...-1.19%

Gala
1...140...15.70%
2...394...7.95%
3...768...5.21%
4...1,391...3.96%
5...2,260...3.20%
6...3,497...2.64%
7...5,103...2.29%
8...7,199...2.00%
9...9,785...1.79%
10...12,983...1.61%
11...16,794...1.47%
12...21,337...1.35%
13...26,615...1.26%
14...32,749...1.17%
15...39,738...1.10%
16...47,705...1.04%
17...56,327...0.98%
18...66,314...0.93%
19...77,394...0.89%
20...89,689...0.85%
21...103,198...0.81%
22...118,043...0.78%
23...134,224...0.75%
24...151,862...0.73%
25...170,957...0.70%
26...191,631...0.68%
27...213,884...0.66%
28...237,837...0.64%
29...263,489...0.63%
30...290,964...0.61%
31...320,260...0.60%
32...351,500...0.59%
33...384,683...0.58%
34...419,931...0.57%
35...457,244...0.56%
36...496,744...0.55%
37...538,430...0.54%
38...582,426...0.53%
39...628,730...0.52%
40...677,465...0.52%
41...728,631...0.51%
42...782,351...0.51%
43...838,622...0.50%
44...897,570...0.50%
45...959,194...0.50%
46...1,023,616...0.49%
47...1,090,835...0.49%
48...1,160,976...0.49%
49...1,234,039...0.49%
50...1,310,145...0.49%
51...1,389,298...0.49%
52...1,471,617...0.49%
53...1,557,104...0.49%
54...1,645,884...0.49%
55...1,737,955...0.49%
56...1,833,445...0.49%
57...1,932,351...0.50%
58...2,034,798...0.50%
59...2,140,790...0.50%
60...2,250,450...0.51%
61...2,363,779...0.51%
62...2,480,903...0.52%
63...2,601,826...0.52%
64...2,726,671...0.53%
65...2,855,445...0.54%
66...2,988,275...0.54%
67...3,125,158...0.55%
68...3,266,234...0.56%
69...3,411,497...0.57%
70...3,561,086...0.58%
71...3,715,003...0.59%
72...3,873,389...0.61%
73...4,036,240...0.62%
74...4,203,697...0.64%
75...4,375,785...0.66%
76...4,552,626...0.67%
77...4,734,248...0.69%
78...4,920,798...0.72%
79...5,112,292...0.74%
80...5,308,896...0.77%
81...5,510,636...0.80%
82...5,717,696...0.83%
83...5,930,115...0.87%
84...6,148,084...0.91%
85...6,371,685...0.96%
86...6,601,144...1.01%
87...6,836,596...1.07%
88...7,078,334...1.14%
89...7,326,584...1.22%
90...7,581,708...1.32%
91...7,844,083...1.43%
92...8,114,447...1.56%
93...8,393,498...1.72%
94...8,682,484...1.92%
95...8,983,150...2.17%
96...9,298,190...2.50%
97...9,633,051...2.96%
98...9,996,627...3.63%
99...
Total: 245,533,315...+1.19%

Edit: tidy'd up the columns since excel doesn't paste well in this forum with tab characters.
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: What Game Mechanics would you like to know?

Post by Nightshade » Tue Feb 24, 2015 11:21 pm

What are the "total" rows supposed to mean? I think the values you give are the cumulative EXP needed to reach that level.

Also, do you have any idea about AI scripts? In particular, I'd like to know if there's any trigger condition on when Final Cort uses Doomsday, because that attack is usually a total party wipe in a speedrun, and I'd prefer to avoid getting party wiped if at all possible, for obvious reasons.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: What Game Mechanics would you like to know?

Post by meth962 » Wed Feb 25, 2015 10:27 am

They mean.....nothing!

I was just trying to get an accumulative average of all the increases. Doesn't matter though.

AI script would be interesting to look into. If I ever got into it, it would explain some stuff like Dohati's size/breath and such. Although from what I've seen, most bosses use complete random scripts.
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: What Game Mechanics would you like to know?

Post by Nightshade » Mon Mar 02, 2015 7:14 pm

I wanted to take a moment to say thanks for all that you've done regarding this game. Calculating all the boss stats, EXP gains, and all the countless other work you've done has been a huge boon for making my speedrun this past weekend a successful attempt. (Can I do that?)
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

Post Reply