User:Sanky/Scripting: Difference between revisions
Jump to navigation
Jump to search
(dump) |
(aa) |
||
Line 19: | Line 19: | ||
0e - *hop* Shigeki | 0e - *hop* Shigeki | ||
0f [direction] - *hop* Shigeki one space away | 0f [direction] - *hop* Shigeki one space away | ||
27 - *hop* this NPC | 23 [npc] [position]* - make an npc move, ends with 00 ? | ||
28 - *hop* this NPC | 27 [byte?] - *hop* this NPC | ||
28 [byte?] - *hop* this NPC | |||
2c [direction] - *hop* partner Denjuu one space away | 2c [direction] - *hop* partner Denjuu one space away | ||
31 [party id] [t-fanger class] [enemy type] - battle! enemy type can be 0 (wild denjuu), 1 (t-fanger) or 2 (solo denjuu)? | 31 [party id] [t-fanger class] [enemy type] - battle! enemy type can be 0 (wild denjuu), 1 (t-fanger) or 2 (solo denjuu)? | ||
Line 27: | Line 28: | ||
44 [id] - sound effect | 44 [id] - sound effect | ||
45 [id] - change music | 45 [id] - change music | ||
</pre> | |||
thus, the t-fanger script dissected: | |||
<pre> | |||
04 04 - sleep 4 frames | |||
45 26 - change music | |||
01 03 aa - print text (Phew, it's hot outside…) | |||
0d 03 | |||
04 0a | |||
0d 01 | |||
04 0a | |||
0d 03 | |||
04 0a | |||
0d 01 | |||
04 0a | |||
0d 02 - this is Shigeki's "turn body from side to side to display negation" | |||
04 28 - sleep | |||
01 03 ab - text - "Yeah, that's too bad…" | |||
04 32 - sleep | |||
33 00 27 01 - battle, t-fanger, class 27, party id 0 | |||
04 32 - sleep | |||
28 00 - *hop* | |||
04 32 - sleep | |||
01 03 ac - text "S-strong…" | |||
23 00 11 78 57 00 - move npc in those positions | |||
23 00 13 78 57 00 - I'm not sure why is this repeated | |||
23 00 03 78 57 00 - ??? | |||
25 00 help me I'm lost | |||
</pre> | </pre> |
Revision as of 23:46, 2 June 2012
Dumping the stuff I have figured out. The first T-Fanger script (inside the spring) begins at 0x150c38.
00 - end script (return to control to the player) 01 [bank] [id] - display text (not sure about bank mappings) 02 ? - also text 03 - nothing? 04 [frames] - sleep. this is used very often 05 - wait for A 06 - nothing? 07 [map?] [position?] - change map/warp 08 [map?] [position?] - warp antenna tree? (tries to open a small box with position) 09 ? - another warp 0a ? - another warp 0b ? - another warp 0c [direction] - turn Shigeki 0d [direction] - turn Shigeki (this one seems to be used) 0e - *hop* Shigeki 0f [direction] - *hop* Shigeki one space away 23 [npc] [position]* - make an npc move, ends with 00 ? 27 [byte?] - *hop* this NPC 28 [byte?] - *hop* this NPC 2c [direction] - *hop* partner Denjuu one space away 31 [party id] [t-fanger class] [enemy type] - battle! enemy type can be 0 (wild denjuu), 1 (t-fanger) or 2 (solo denjuu)? 32 same as above? 33 same as above? 44 [id] - sound effect 45 [id] - change music
thus, the t-fanger script dissected:
04 04 - sleep 4 frames 45 26 - change music 01 03 aa - print text (Phew, it's hot outside…) 0d 03 04 0a 0d 01 04 0a 0d 03 04 0a 0d 01 04 0a 0d 02 - this is Shigeki's "turn body from side to side to display negation" 04 28 - sleep 01 03 ab - text - "Yeah, that's too bad…" 04 32 - sleep 33 00 27 01 - battle, t-fanger, class 27, party id 0 04 32 - sleep 28 00 - *hop* 04 32 - sleep 01 03 ac - text "S-strong…" 23 00 11 78 57 00 - move npc in those positions 23 00 13 78 57 00 - I'm not sure why is this repeated 23 00 03 78 57 00 - ??? 25 00 help me I'm lost