Isotarge / ScriptHawk

A collection of Lua scripts and RAM watches for BizHawk.
MIT License
88 stars 15 forks source link

How is stock/lives stored in Super Smash Bros. 64? #11

Closed wulfebw closed 4 years ago

wulfebw commented 4 years ago

Do you know how stock/lives is stored in ssb64?

This file: https://github.com/Isotarge/ScriptHawk/blob/master/games/smash64.lua shows "stock" for the match, which I assume is the starting stock because it's stored next to time. I don't otherwise see any stock value. Do you know how to access the stock value on a per-character basis?

Another question: In that file there's this comment (line 171):

Only applies to the UI, real damage is stored in the player object

But then the health in the player_fields is commented out. Any idea why that's the case?

Any help would be appreciated.

wulfebw commented 4 years ago

Relative to player_base (in match_settings) it seems to be indexed by 0x8.