Port generic event script macros from pokeruby
This commit is contained in:
@@ -7,7 +7,7 @@ BattleFrontier_Lounge3_EventScript_261D83:: @ 8261D83
|
||||
checkflag FLAG_0x157
|
||||
goto_eq BattleFrontier_Lounge3_EventScript_261EF9
|
||||
call BattleFrontier_Lounge3_EventScript_261EA0
|
||||
compare_var_to_value VAR_0x8004, 2
|
||||
compare VAR_0x8004, 2
|
||||
goto_if 3, BattleFrontier_Lounge3_EventScript_261EEB
|
||||
setflag FLAG_0x157
|
||||
msgbox BattleFrontier_Lounge3_Text_262061, 4
|
||||
@@ -19,10 +19,10 @@ BattleFrontier_Lounge3_EventScript_261DAF:: @ 8261DAF
|
||||
waitmessage
|
||||
waitbuttonpress
|
||||
msgbox BattleFrontier_Lounge3_Text_262A60, 5
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq BattleFrontier_Lounge3_EventScript_261FA5
|
||||
msgbox BattleFrontier_Lounge3_Text_262ABD, 5
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq BattleFrontier_Lounge3_EventScript_261FA5
|
||||
message BattleFrontier_Lounge3_Text_262B42
|
||||
waitmessage
|
||||
@@ -58,7 +58,7 @@ BattleFrontier_Lounge3_EventScript_261E46:: @ 8261E46
|
||||
|
||||
BattleFrontier_Lounge3_EventScript_261E51:: @ 8261E51
|
||||
specialvar VAR_0x4001, sub_813AA04
|
||||
compare_var_to_var VAR_0x4001, VAR_0x8008
|
||||
compare VAR_0x4001, VAR_0x8008
|
||||
goto_if 4, BattleFrontier_Lounge3_EventScript_261E75
|
||||
msgbox BattleFrontier_Lounge3_Text_262B6E, 4
|
||||
message BattleFrontier_Lounge3_Text_262B42
|
||||
@@ -113,26 +113,26 @@ BattleFrontier_Lounge3_EventScript_261EEB:: @ 8261EEB
|
||||
|
||||
BattleFrontier_Lounge3_EventScript_261EF9:: @ 8261EF9
|
||||
msgbox BattleFrontier_Lounge3_Text_26346B, 4
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_PLACED_BET_F, 1
|
||||
compare VAR_FRONTIER_GAMBLER_PLACED_BET_F, 1
|
||||
goto_if 4, BattleFrontier_Lounge3_EventScript_261F12
|
||||
goto BattleFrontier_Lounge3_EventScript_261DAF
|
||||
end
|
||||
|
||||
BattleFrontier_Lounge3_EventScript_261F12:: @ 8261F12
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_PLACED_BET_F, 1
|
||||
compare VAR_FRONTIER_GAMBLER_PLACED_BET_F, 1
|
||||
goto_eq BattleFrontier_Lounge3_EventScript_261F9E
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_PLACED_BET_F, 2
|
||||
compare VAR_FRONTIER_GAMBLER_PLACED_BET_F, 2
|
||||
goto_eq BattleFrontier_Lounge3_EventScript_261F2E
|
||||
goto BattleFrontier_Lounge3_EventScript_261F71
|
||||
end
|
||||
|
||||
BattleFrontier_Lounge3_EventScript_261F2E:: @ 8261F2E
|
||||
msgbox BattleFrontier_Lounge3_Text_263334, 4
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_AMOUNT_BET, 0
|
||||
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, 0
|
||||
call_if 1, BattleFrontier_Lounge3_EventScript_261F80
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_AMOUNT_BET, 1
|
||||
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, 1
|
||||
call_if 1, BattleFrontier_Lounge3_EventScript_261F8A
|
||||
compare_var_to_value VAR_FRONTIER_GAMBLER_AMOUNT_BET, 2
|
||||
compare VAR_FRONTIER_GAMBLER_AMOUNT_BET, 2
|
||||
call_if 1, BattleFrontier_Lounge3_EventScript_261F94
|
||||
msgbox BattleFrontier_Lounge3_Text_2633D4, 9
|
||||
special sub_813A9D0
|
||||
|
||||
Reference in New Issue
Block a user