Port generic event script macros from pokeruby
This commit is contained in:
@@ -8,14 +8,14 @@ BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB: @ 825ADBB
|
||||
setvar VAR_0x8004, 5
|
||||
special sub_81A1780
|
||||
checkplayergender
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
call_if 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
call_if 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B
|
||||
setvar VAR_0x8004, 9
|
||||
special sub_81A1780
|
||||
copyvar VAR_0x400F, VAR_RESULT
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25ADF3
|
||||
end
|
||||
|
||||
@@ -31,7 +31,7 @@ BattleFrontier_BattleFactoryBattleRoom_MapScript2_25AE00: @ 825AE00
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE0A:: @ 825AE0A
|
||||
setvar VAR_0x4001, 1
|
||||
hideobjectat 255, BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
|
||||
compare_var_to_value VAR_0x400F, 0
|
||||
compare VAR_0x400F, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE24
|
||||
hideobjectat 2, BATTLE_FRONTIER_BATTLE_FACTORY_BATTLE_ROOM
|
||||
|
||||
@@ -62,7 +62,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B:: @ 825AE3B
|
||||
end
|
||||
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67:: @ 825AE67
|
||||
compare_var_to_value VAR_0x400F, 0
|
||||
compare VAR_0x400F, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE3B
|
||||
applymovement 8, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
|
||||
applymovement 255, BattleFrontier_BattleFactoryBattleRoom_Movement_25B17B
|
||||
@@ -77,7 +77,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE67:: @ 825AE67
|
||||
waitmovement 0
|
||||
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEA7:: @ 825AEA7
|
||||
compare_var_to_value VAR_0x400F, 0
|
||||
compare VAR_0x400F, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C
|
||||
setvar VAR_0x8004, 5
|
||||
special sub_8195960
|
||||
@@ -110,7 +110,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF0F:: @ 825AF0F
|
||||
setvar VAR_0x8004, 1
|
||||
setvar VAR_0x8005, 3
|
||||
special sub_81A5E74
|
||||
compare_var_to_value VAR_RESULT, 9999
|
||||
compare VAR_RESULT, 9999
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E
|
||||
addvar VAR_RESULT, 1
|
||||
setorcopyvar VAR_0x8006, VAR_RESULT
|
||||
@@ -151,7 +151,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C:: @ 825AF9C
|
||||
setvar VAR_0x8004, 1
|
||||
setvar VAR_0x8005, 7
|
||||
special sub_81A1780
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B1FB, 4
|
||||
setvar VAR_0x8004, 2
|
||||
@@ -161,14 +161,14 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF9C:: @ 825AF9C
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25AFEF:: @ 825AFEF
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B3F1, 4
|
||||
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C
|
||||
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8
|
||||
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B00C:: @ 825B00C
|
||||
setvar VAR_0x8004, 12
|
||||
special sub_81A1780
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B42D, 4
|
||||
closemessage
|
||||
@@ -187,7 +187,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051:: @ 825B051
|
||||
setvar VAR_0x8004, 1
|
||||
setvar VAR_0x8005, 7
|
||||
special sub_81A1780
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_if 5, BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B517, 4
|
||||
setvar VAR_0x8004, 2
|
||||
@@ -197,14 +197,14 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B051:: @ 825B051
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B07E:: @ 825B07E
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5CF, 4
|
||||
call BattleFrontier_BattleFactoryBattleRoom_EventScript_25B0E0
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B
|
||||
goto BattleFrontier_BattleFactoryBattleRoom_EventScript_25AEF8
|
||||
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B09B:: @ 825B09B
|
||||
setvar VAR_0x8004, 12
|
||||
special sub_81A1780
|
||||
compare_var_to_value VAR_RESULT, 2
|
||||
compare VAR_RESULT, 2
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105
|
||||
msgbox BattleFrontier_BattleFactoryBattleRoom_Text_25B5E7, 4
|
||||
waitmessage
|
||||
@@ -236,7 +236,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105:: @ 825B105
|
||||
setvar VAR_0x8004, 1
|
||||
setvar VAR_0x8005, 3
|
||||
special sub_81A5E74
|
||||
compare_var_to_value VAR_RESULT, 9999
|
||||
compare VAR_RESULT, 9999
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF3E
|
||||
addvar VAR_RESULT, 1
|
||||
setorcopyvar VAR_0x8006, VAR_RESULT
|
||||
@@ -246,7 +246,7 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_25B105:: @ 825B105
|
||||
setvar VAR_0x8004, 1
|
||||
setvar VAR_0x8005, 1
|
||||
special sub_81A5E74
|
||||
compare_var_to_value VAR_RESULT, 9999
|
||||
compare VAR_RESULT, 9999
|
||||
goto_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AF43
|
||||
addvar VAR_RESULT, 1
|
||||
setvar VAR_0x8004, 2
|
||||
@@ -292,7 +292,7 @@ BattleFrontier_BattleFactoryBattleRoom_Movement_25B18B: @ 825B18B
|
||||
BattleFrontier_BattleFactoryBattleRoom_EventScript_25B190:: @ 825B190
|
||||
BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B190:: @ 825B190
|
||||
copyvar VAR_RESULT, VAR_0x40CE
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq BattleFrontier_BattleFactoryPreBattleRoom_EventScript_25B1AA
|
||||
warp BATTLE_FRONTIER_BATTLE_FACTORY_LOBBY, 255, 4, 8
|
||||
waitstate
|
||||
|
||||
Reference in New Issue
Block a user