diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-22 09:48:28 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-22 09:48:28 -0400 |
commit | 0ef3ebcd141148c5c30879c57677c0971f48a9fe (patch) | |
tree | 29c98088d3ebcd64b079ce9bcd2a8bf21e5773a5 /event | |
parent | 60bd94e78434bd97bb7ee1391b50c4df85adc9c5 (diff) |
Finish event/overworld.asm
Diffstat (limited to 'event')
-rwxr-xr-x | event/overworld.asm | 56 |
1 files changed, 50 insertions, 6 deletions
diff --git a/event/overworld.asm b/event/overworld.asm index 04f3514e..aea4619d 100755 --- a/event/overworld.asm +++ b/event/overworld.asm @@ -1705,10 +1705,54 @@ Text_GotOffTheBike: text_jump Text_GotOffTheBike_ db "@" + TryCutOW: ; d193 -IF DEF(GOLD) - dr $d193, $d1e2 -ENDC -IF DEF(SILVER) - dr $d191, $d1e0 -ENDC + ld d, CUT + call FieldMovePartyCheck + jr c, .asm_d1ac + ld de, ENGINE_HIVEBADGE + call FieldMoveEngineFlagCheck + jr c, .asm_d1ac + ld a, BANK(AskCutScript) + ld hl, AskCutScript + call CallScript + scf + ret + +.asm_d1ac + ld a, BANK(CantCutScript) + ld hl, CantCutScript + call CallScript + scf + ret + +AskCutScript: ; d1b6 + opentext + writetext Text_AskCut + yesorno + iffalse .declined + callasm CheckMapForSomethingToCut_ + iftrue Script_Cut +.declined: + closetext + end + +CheckMapForSomethingToCut_: ; d1c7 + xor a + ld [wScriptVar], a + call CheckMapForSomethingToCut + ret c + ld a, $1 + ld [wScriptVar], a + ret + +Text_AskCut: + text_jump Text_AskCut_ + db "@" + +CantCutScript: ; d1da + jumptext Text_MonCanCutThis + +Text_MonCanCutThis: + text_jump Text_MonCanCutThis_ + db "@" |