improve goto_if macros
This commit is contained in:
@@ -12,7 +12,7 @@ DesertRuins_MapScript1_22D96B: @ 822D96B
|
||||
DesertRuins_EventScript_22D975:: @ 822D975
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, 7
|
||||
goto_if 5, DesertRuins_EventScript_27374E
|
||||
goto_if_ne DesertRuins_EventScript_27374E
|
||||
removeobject VAR_LAST_TALKED
|
||||
return
|
||||
|
||||
@@ -42,8 +42,7 @@ DesertRuins_EventScript_22D9D7:: @ 822D9D7
|
||||
|
||||
DesertRuins_EventScript_22D9DB:: @ 822D9DB
|
||||
lockall
|
||||
checkflag FLAG_SYS_BRAILLE_STRENGTH
|
||||
goto_eq DesertRuins_EventScript_22D9EE
|
||||
goto_if_set FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_22D9EE
|
||||
braillemessage DesertRuins_Braille_2A6CA0
|
||||
waitbuttonpress
|
||||
hidebox2
|
||||
@@ -77,11 +76,11 @@ DesertRuins_EventScript_22DA02:: @ 822DA02
|
||||
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq DesertRuins_EventScript_22DA49
|
||||
goto_if_eq DesertRuins_EventScript_22DA49
|
||||
compare VAR_RESULT, 4
|
||||
goto_eq DesertRuins_EventScript_22DA52
|
||||
goto_if_eq DesertRuins_EventScript_22DA52
|
||||
compare VAR_RESULT, 5
|
||||
goto_eq DesertRuins_EventScript_22DA52
|
||||
goto_if_eq DesertRuins_EventScript_22DA52
|
||||
setflag FLAG_0x1BB
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user