User:Sanky/Scripting: Difference between revisions
Jump to navigation
Jump to search
(aa) |
(welp) |
||
Line 19: | Line 19: | ||
0e - *hop* Shigeki | 0e - *hop* Shigeki | ||
0f [direction] - *hop* Shigeki one space away | 0f [direction] - *hop* Shigeki one space away | ||
23 [npc] [ | 23 [npc] [xy] [speed] - make an npc move | ||
27 [ | 25 [npc] - hide sprite | ||
28 [ | 27 [npc] - *hop* this NPC | ||
28 [npc] - *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 52: | Line 53: | ||
04 32 - sleep | 04 32 - sleep | ||
01 03 ac - text "S-strong…" | 01 03 ac - text "S-strong…" | ||
23 00 11 78 | 23 00 11 78 - move npc 0 in 1, 1 speed 78 | ||
23 00 13 78 57 00 - | 57 00 - I don't know | ||
23 00 03 78 57 00 - ??? | 23 00 13 78 - move | ||
25 00 | 57 00 - ? | ||
23 00 03 78 - move | |||
57 00 - ??? | |||
25 00 - hide npc sprite | |||
14 06 0d - this might be setting a flag so the npc doesn't appear any more | |||
00 - end script | |||
</pre> | </pre> |
Revision as of 23:57, 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] [xy] [speed] - make an npc move 25 [npc] - hide sprite 27 [npc] - *hop* this NPC 28 [npc] - *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 - move npc 0 in 1, 1 speed 78 57 00 - I don't know 23 00 13 78 - move 57 00 - ? 23 00 03 78 - move 57 00 - ??? 25 00 - hide npc sprite 14 06 0d - this might be setting a flag so the npc doesn't appear any more 00 - end script