Thread:FixSRwiki/@comment-46261745-20200727141438/@comment-26544499-20200731213158

Good progress!

The m_ or g_ stuff seems to be Alicesoft's idea of object-oriented programming. If you need to look in to one of them, then you probably need to right click and look at the code for the class that the object belong to. Because almost all of it seems to be graphics code, I don't think that I've ever needed to do this. 選択追加 looks like text-colouring code to me. g_sSelect.add is a method call on a tagSelect object.

To memory, there's something in Masamune's character clear that check if he's holding an item or not. That might be enough to help out.

IIRC, GM is global clear flags like those for remembering what second game bonuses you've unlocked.

I'm pretty sure that there's some dumb function like 0 that defines GF, but I remember toufu guy complaining about the risks of really messing with these arrays. Apparently you can really deeply break the game if you try to do something like add a new province.

tagGlobalData is actually a class. What you're refering to is the method on that class, tagGlobalData::clear. To my eyes, it's a save wipe function.