summaryrefslogtreecommitdiff
path: root/data/scripts/berry_tree.inc
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-02 03:37:46 -0500
committerMelody <melody@pallet.town>2018-12-02 03:37:46 -0500
commitc557ac61aef788f1630d3960dd2366bf000db8e0 (patch)
tree305dfa97c9dbceaa197cc3de648d69962a14c26d /data/scripts/berry_tree.inc
parent145047d4389c68052ed8a5f4c1760238112004f3 (diff)
adds constants, cleans up callstd and msgbox code
* adds some constants for standard script names and messagebox types * replaces some callstd calls with msgbox calls where equivalent * replaces msgbox and callstd calls using raw digits with versions that use the constants
Diffstat (limited to 'data/scripts/berry_tree.inc')
-rw-r--r--data/scripts/berry_tree.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/scripts/berry_tree.inc b/data/scripts/berry_tree.inc
index 1fda1133f..21ab4256c 100644
--- a/data/scripts/berry_tree.inc
+++ b/data/scripts/berry_tree.inc
@@ -31,7 +31,7 @@ Route102_EventScript_274359:: @ 8274359
end
Route102_EventScript_274374:: @ 8274374
- msgbox Route102_Text_274507, 5
+ msgbox Route102_Text_274507, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_eq Route102_EventScript_274393
compare VAR_RESULT, 0
@@ -106,7 +106,7 @@ Route102_EventScript_274421:: @ 8274421
lock
faceplayer
special EventObjectInteractionGetBerryCountString
- msgbox Route102_Text_2745EE, 5
+ msgbox Route102_Text_2745EE, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_eq Route102_EventScript_274448
compare VAR_RESULT, 0
@@ -155,7 +155,7 @@ Route102_EventScript_27448D:: @ 827448D
compare VAR_RESULT, 0
goto_eq Route102_EventScript_2744BE
special EventObjectInteractionGetBerryName
- msgbox Route102_Text_2746E4, 5
+ msgbox Route102_Text_2746E4, MSGBOX_YESNO
compare VAR_RESULT, 1
goto_eq Route102_EventScript_2744C4
compare VAR_RESULT, 0