improve goto_if macros
This commit is contained in:
@@ -4,12 +4,11 @@ MauvilleCity_House2_MapScripts:: @ 8210C5C
|
||||
MauvilleCity_House2_EventScript_210C5D:: @ 8210C5D
|
||||
lock
|
||||
faceplayer
|
||||
checkflag FLAG_0x102
|
||||
goto_eq MauvilleCity_House2_EventScript_210CDA
|
||||
goto_if_set FLAG_0x102, MauvilleCity_House2_EventScript_210CDA
|
||||
msgbox MauvilleCity_House2_Text_210CEE, MSGBOX_DEFAULT
|
||||
checkitem ITEM_HARBOR_MAIL, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq MauvilleCity_House2_EventScript_210C82
|
||||
goto_if_eq MauvilleCity_House2_EventScript_210C82
|
||||
release
|
||||
end
|
||||
|
||||
@@ -21,9 +20,9 @@ MauvilleCity_House2_EventScript_210C82:: @ 8210C82
|
||||
waitmovement 0
|
||||
msgbox MauvilleCity_House2_Text_210D76, MSGBOX_YESNO
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq MauvilleCity_House2_EventScript_210CB8
|
||||
goto_if_eq MauvilleCity_House2_EventScript_210CB8
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq MauvilleCity_House2_EventScript_210CE4
|
||||
goto_if_eq MauvilleCity_House2_EventScript_210CE4
|
||||
end
|
||||
|
||||
MauvilleCity_House2_EventScript_210CB8:: @ 8210CB8
|
||||
|
||||
Reference in New Issue
Block a user