diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-08-12 17:26:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 17:26:01 -0700 |
commit | d9883945954a30e4b753ecbd5d807f4b6cd2a38a (patch) | |
tree | 093c45ab4de91a75d546f58a6672dfc72136677c /data/scripts/health_safety.inc | |
parent | e005410884803f1ec8f5942bd0c8d2da5c2e29c8 (diff) |
More data dumping and some code cleaning (#46)
* more data dumping and some code cleaning
* split out cutscene scripts
* initial start at script conversion
* more script work
* use correct type
* clearer up struct field names
* split known scripts into seperate files
* no need to preproc pure ascii strings in debug
* more cutscene work
* split out personality test scripts
* solidify text macros and doc some dungeon fields
* more scripting work
Diffstat (limited to 'data/scripts/health_safety.inc')
-rw-r--r-- | data/scripts/health_safety.inc | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/data/scripts/health_safety.inc b/data/scripts/health_safety.inc new file mode 100644 index 0000000..77a794b --- /dev/null +++ b/data/scripts/health_safety.inc @@ -0,0 +1,79 @@ + @ Health and Safety Screen + HealthAndSafetyMainThread: + .byte 0xf6, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS05StationFile_Text + changeTileset 0xE3 + pushR14 + MsgEnd 0x163 + + .global GroundDataS05StationFile_Text @ 0x826F5F4 + GroundDataS05StationFile_Text: + .string "../data/ground/ground_data_s05_station.c\0" + .align 2,0 + + HealthAndSafetyMainThreadHeader: + .byte 0x94, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte HealthAndSafetyMainThread + + HealthAndSafety2MainThread: + .byte 0xf6, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS05StationFile_Text + pushR14 + changeTileset 0xE3 + StartSceneRunCall 0 + .byte 0x22, 0x01, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0xB4 + setFlag 4 + .byte 0x3b, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0xe10 + fadeOut 1 0x1E 0 + endFuncAndScript + + HealthAndSafety2MainThreadHeader: + .byte 0x90, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte HealthAndSafety2MainThread + + HealthAndSafetyCameraThread: @ 826F6E8 + @ Thread init + .byte 0xf6, 0x00, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS05StationFile_Text + @ Camera stuff + .byte 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + waitFlag 4 + label 0 + warpToLoc 1 @ Health and Safety w/ Press Button to Continue + pause 0x14 + warpToLoc 0 @ Health and Safety w/o message + pause 0x14 + loopLabel 0 + + .byte 0x00, 0x00, 0x01, 0x01 + .byte 15, 11, 0x00, 0x02 @ Initial Camera coordinates + .4byte HealthAndSafetyCameraThread + .4byte HealthAndSafetyMainThreadHeader + .4byte HealthAndSafety2MainThreadHeader + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 + .byte 0x84, 0xf7, 0x26, 0x08 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 + .byte 0x78, 0xf7, 0x26, 0x08 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 + .byte 0x88, 0xf7, 0x26, 0x08 + + @ Scenes? + HealthSafetyScenes: @ 826F7DC + .byte 0x01, 0x00, 0x00, 0x00 + .byte 0x8c, 0xf7, 0x26, 0x08 + .byte 0x01, 0x00, 0x00, 0x00 + .byte 0xb4, 0xf7, 0x26, 0x08 + + HealthSafetyWaypoints: @ 826F7EC + .byte 15, 11, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01 + .byte 15, 31, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01 + + .byte 0x02, 0x00, 0x00, 0x00 + .4byte HealthSafetyScenes + .4byte HealthSafetyWaypoints + |