Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -233,12 +233,10 @@ MossdeepCity_EventScript_KingsRockBoy::
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_KINGS_ROCK, MossdeepCity_EventScript_ReceivedKingsRock
|
||||
msgbox MossdeepCity_Text_WantKingsRockStevenGaveMe, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq MossdeepCity_EventScript_DeclineKingsRock
|
||||
goto_if_eq VAR_RESULT, NO, MossdeepCity_EventScript_DeclineKingsRock
|
||||
msgbox MossdeepCity_Text_YouCanKeepIt, MSGBOX_DEFAULT
|
||||
giveitem ITEM_KINGS_ROCK
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_KINGS_ROCK
|
||||
release
|
||||
end
|
||||
@@ -262,10 +260,8 @@ MossdeepCity_EventScript_Scott::
|
||||
faceplayer
|
||||
msgbox MossdeepCity_Text_ScottSomethingWrongWithTown, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
compare VAR_FACING, DIR_NORTH
|
||||
call_if_eq MossdeepCity_EventScript_ScottExitNorth
|
||||
compare VAR_FACING, DIR_EAST
|
||||
call_if_eq MossdeepCity_EventScript_ScottExitEast
|
||||
call_if_eq VAR_FACING, DIR_NORTH, MossdeepCity_EventScript_ScottExitNorth
|
||||
call_if_eq VAR_FACING, DIR_EAST, MossdeepCity_EventScript_ScottExitEast
|
||||
addvar VAR_SCOTT_STATE, 1
|
||||
removeobject LOCALID_SCOTT
|
||||
release
|
||||
|
||||
Reference in New Issue
Block a user