summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route118.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/maps/Route118.inc')
-rw-r--r--data/scripts/maps/Route118.inc95
1 files changed, 47 insertions, 48 deletions
diff --git a/data/scripts/maps/Route118.inc b/data/scripts/maps/Route118.inc
index 0b5b4748e..569a7103e 100644
--- a/data/scripts/maps/Route118.inc
+++ b/data/scripts/maps/Route118.inc
@@ -9,19 +9,18 @@ Route118_MapScript1_150F2E:: @ 8150F2E
Route118_EventScript_150F34:: @ 8150F34
lock
faceplayer
- checkflag 227
- jumpeq Route118_EventScript_150F89
- msgbox Route118_Text_170F12, 5
- compare RESULT, 1
- jumpeq Route118_EventScript_150F5E
- compare RESULT, 0
- jumpeq Route118_EventScript_150F7F
+ goto_if_set FLAG_RECEIVED_GOOD_ROD, Route118_EventScript_150F89
+ msgbox Route118_Text_170F12, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route118_EventScript_150F5E
+ compare RESULT, NO
+ goto_if_eq Route118_EventScript_150F7F
end
Route118_EventScript_150F5E:: @ 8150F5E
msgbox Route118_Text_170F46, 4
- giveitem ITEM_GOOD_ROD
- setflag 227
+ giveitem_std ITEM_GOOD_ROD
+ setflag FLAG_RECEIVED_GOOD_ROD
msgbox Route118_Text_170F7E, 4
release
end
@@ -50,63 +49,63 @@ Route118_EventScript_150FA5:: @ 8150FA5
Route118_EventScript_150FAE:: @ 8150FAE
lockall
- setvar 0x8008, 0
- move 255, Route118_Movement_1A0841
- waitmove 0
- move 19, Route118_Movement_151069
- waitmove 0
- jump Route118_EventScript_151004
+ setvar VAR_SPECIAL_8, 0
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ applymovement 19, Route118_Movement_151069
+ waitmovement 0
+ goto Route118_EventScript_151004
end
Route118_EventScript_150FCE:: @ 8150FCE
lockall
- setvar 0x8008, 1
- move 255, Route118_Movement_1A0841
- waitmove 0
- jump Route118_EventScript_151004
+ setvar VAR_SPECIAL_8, 1
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ goto Route118_EventScript_151004
end
Route118_EventScript_150FE4:: @ 8150FE4
lockall
- setvar 0x8008, 2
- move 255, Route118_Movement_1A0841
- waitmove 0
- move 19, Route118_Movement_15106B
- waitmove 0
- jump Route118_EventScript_151004
+ setvar VAR_SPECIAL_8, 2
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ applymovement 19, Route118_Movement_15106B
+ waitmovement 0
+ goto Route118_EventScript_151004
end
Route118_EventScript_151004:: @ 8151004
- playsfx 10
- move 19, Route118_Movement_15106D
- waitmove 0
- pause 30
+ playse SE_DANSA
+ applymovement 19, Route118_Movement_15106D
+ waitmovement 0
+ delay 30
msgbox Route118_Text_170D66, 4
- closebutton
- compare 0x8008, 0
- callif 1, Route118_EventScript_151048
- compare 0x8008, 1
- callif 1, Route118_EventScript_151053
- compare 0x8008, 2
- callif 1, Route118_EventScript_15105E
- setvar 0x4071, 1
- disappear 19
+ closemessage
+ compare VAR_SPECIAL_8, 0
+ call_if_eq Route118_EventScript_151048
+ compare VAR_SPECIAL_8, 1
+ call_if_eq Route118_EventScript_151053
+ compare VAR_SPECIAL_8, 2
+ call_if_eq Route118_EventScript_15105E
+ setvar VAR_ROUTE118_STATE, 1
+ removeobject 19
releaseall
end
Route118_EventScript_151048:: @ 8151048
- move 19, Route118_Movement_151071
- waitmove 0
+ applymovement 19, Route118_Movement_151071
+ waitmovement 0
return
Route118_EventScript_151053:: @ 8151053
- move 19, Route118_Movement_15107C
- waitmove 0
+ applymovement 19, Route118_Movement_15107C
+ waitmovement 0
return
Route118_EventScript_15105E:: @ 815105E
- move 19, Route118_Movement_151086
- waitmove 0
+ applymovement 19, Route118_Movement_151086
+ waitmovement 0
return
Route118_Movement_151069:: @ 8151069
@@ -161,9 +160,9 @@ Route118_Movement_151086:: @ 8151086
Route118_EventScript_15108F:: @ 815108F
trainerbattle 0, OPPONENT_ROSE_1, 0, Route118_Text_1BDFF4, Route118_Text_1BE03C
- specialval RESULT, sub_8082C68
+ specialvar RESULT, ShouldTryRematchBattle
compare RESULT, 1
- jumpeq Route118_EventScript_1510B6
+ goto_if_eq Route118_EventScript_1510B6
msgbox Route118_Text_1BE05E, 6
end
@@ -184,9 +183,9 @@ Route118_EventScript_1510E4:: @ 81510E4
Route118_EventScript_1510FB:: @ 81510FB
trainerbattle 0, OPPONENT_DALTON_1, 0, Route118_Text_1BE3E8, Route118_Text_1BE406
- specialval RESULT, sub_8082C68
+ specialvar RESULT, ShouldTryRematchBattle
compare RESULT, 1
- jumpeq Route118_EventScript_151122
+ goto_if_eq Route118_EventScript_151122
msgbox Route118_Text_1BE413, 6
end