improve goto_if macros
This commit is contained in:
@@ -133,10 +133,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
|
||||
compare VAR_TEMP_1, 2
|
||||
call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220313
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_22031A
|
||||
compare VAR_TEMP_1, 1
|
||||
@@ -154,10 +154,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
|
||||
msgbox gUnknown_08272A9A, MSGBOX_DEFAULT
|
||||
random 64
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
@@ -166,10 +166,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
|
||||
msgbox gUnknown_08272A9A, MSGBOX_DEFAULT
|
||||
random 64
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
|
||||
Reference in New Issue
Block a user