Show last authors
1 (% class="wikigeneratedid" id="HFlags2CItems2CandSpells" %)
2 This page is intended to be a space to document the important bits in memory that we've mapped. These can be used to create Gameshark codes and patches to fix bugs and help progress through the game, or just for recreational use.
3
4 {{toc start="2"/}}
5
6 {{groovy}}
7 def data = [
8 flags: [
9 ],
10 items: [
11 [
12 address: "0x5C4D65",
13 bits: [
14 (7): "Gate Key [Northern Waste]"
15 ]
16 ],
17 [
18 address: "0x5C4D67",
19 bits: [
20 (1): "Mine Key [Northern Waste]",
21 (2): "Mine Key Used [Northern Waste]"
22 ]
23 ],
24 [
25 address: "0x5C4D67",
26 bits: [
27 (1): "Alpine Roots [Northern Waste]",
28 (2): "Alpine Roots [Northern Waste]",
29 (3): "Alpine Roots [Northern Waste]"
30 ]
31 ],
32 [
33 address: "0x5C5D6C",
34 bits: [
35 (3): "DarkIce Mines SpellStone (unactivated)",
36 (4): "DarkIce Mines SpellStone (activated)",
37 (5): "Horn of Truth"
38 ]
39 ],
40 [
41 address: "0x5C4D80",
42 bits: [
43 (2): "Silver Tooth (Heel Command?)",
44 (3): "Gold Tooth (Heel Command?)",
45 (6): "Sun Stone",
46 (7): "Moon Stone"
47 ]
48 ],
49 [
50 address: "0x5C4DBB",
51 bits: [
52 (6): "Bay Diamond",
53 (7): "PointBack Egg"
54 ]
55 ],
56 [
57 address: "0x5C4DBF",
58 bits: [
59 (5): "Small Food Bag",
60 (6): "Medium Food Bag",
61 (7): "Large Food Bag"
62 ]
63 ]
64 ],
65 spells: [
66 ]
67 ]
68
69 def printBitTable(list) {
70 list.each { item ->
71 println "**$item.address**"
72 println ""
73 println "|(% style=\"width:35px\" %)**Bit**|(% style=\"width:463px\" %)**Purpose**"
74 for (int i = 0; i < 8; i++) {
75 if (item.bits[i]) {
76 println "|(% style=\"width:35px\" %)$i|(% style=\"width:463px\" %)${item.bits[i]}"
77 } else {
78 println "|(% style=\"width:35px\" %)$i|(% style=\"width:463px\" %)?"
79 }
80 }
81 println ""
82 }
83 }
84
85 println "== Progression Flags =="
86 printBitTable(data.flags)
87
88 println "== Items =="
89 printBitTable(data.items)
90
91 println "== Spells =="
92 printBitTable(data.spells)
93 {{/groovy}}