-
Notifications
You must be signed in to change notification settings - Fork 0
/
Units.txt
79 lines (73 loc) · 2.21 KB
/
Units.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FE9U/FE10E
NOTE:
A "PID" is a character identifier (person? id)
A "JID" is a class identifier (job id)
A "SID" is a skill identifier (skill id)
A "FID" is a face (portrait) identifier (face id)
FE9 Unit struct:
+000 | short | ?
+002 | byte | ?
+003 | byte | ?
+004 | float | ?
+008 | float | ?
+00C | float | ?
+010 | float | ?
+014 | float | ?
+018 | float | ?
+01C | some struct
... (this is all probably display stuff I don't understand)
+180 | word | address of prev unit in faction's linked list (0 if first?)
+184 | word | address of next unit in faction's linked list (0 if end)
+188 | word | address of CharacterInfo
+18C | word | address of ClassInfo
+190 | word | address of Faction
+194 | word | address of resuce Unit (probably)
+198 | byte | index in Unit Array
+199 | byte | ?
+19A | byte | level
+19B | byte | exp
...
+19E | byte | map x (probably)
+19F | byte | map y (probably)
+1A0 | word | state bits
+1A4 | short | ?
+1A6 | short | ?
+1A8 | byte | health (current)
+1A9 | byte | ?
+1AA | byte | ?
+1AB | byte | health gained (max)
+1AC | byte | strength gained
+1AD | byte | magic gained
+1AE | byte | skill gained
+1AF | byte | speed gained
+1B0 | byte | luck gained
+1B1 | byte | defense gained
+1B2 | byte | resistance gained
...
+1BC | 128bits | skillset (think of it as one big bitfield)
+1CC | Item[4] | weapons
+1EC | Item[4] | items
FE9 Unit state bits:
bit 0 : force deployed?
bit 1 : cannot be moved in prep screen?
bit 3? : is dead?
Faction struct:
+00 | word | first unit in linked list
+04 | word | leader unit?
+08 | byte | id?
FE9 Faction id:
0 : blue?
5 : non-deployed blue?
FE10 Unit struct:
+000 | short | ?
...
+0E4 | word | address of prev unit
+0E8 | word | address of next unit
+0EC | word | address of char info
+0F0 | word | address of class info
+0F4 | word | address of faction (struct)
+0F8 | word | address of rescuing unit (unsure, assuming same as FE9)
+0FC | byte | index (unsure, assuming same as FE9)
...
+108 | 64bits | unit state bits (unsure, seems to also be used for some skills, but this may be like "is using this skill" (like gamble) and not "has this skill")
hi 20 : parity? nihil?