Port generic event script macros from pokeruby

This commit is contained in:
Marcus Huderle
2017-12-21 13:47:52 -06:00
parent 4307292f55
commit 173761a5a1
266 changed files with 3054 additions and 3041 deletions
+9 -9
View File
@@ -78,11 +78,11 @@ MauvilleCity_Gym_EventScript_20DEE7:: @ 820DEE7
MauvilleCity_Gym_EventScript_20DEEB:: @ 820DEEB
trainerbattle 1, TRAINER_WATTSON_1, 0, MauvilleCity_Gym_Text_20E602, MauvilleCity_Gym_Text_20E734, MauvilleCity_Gym_EventScript_20DF2B
specialvar VAR_RESULT, ShouldTryRematchBattle
compare_var_to_value VAR_RESULT, 1
compare VAR_RESULT, 1
goto_eq MauvilleCity_Gym_EventScript_20DFDE
checkflag FLAG_0x0A7
goto_if 0, MauvilleCity_Gym_EventScript_20DF8D
compare_var_to_value VAR_0x40BA, 2
compare VAR_0x40BA, 2
goto_eq MauvilleCity_Gym_EventScript_20DFD4
msgbox MauvilleCity_Gym_Text_20E8E3, 4
release
@@ -98,7 +98,7 @@ MauvilleCity_Gym_EventScript_20DF2B:: @ 820DF2B
setflag FLAG_0x4F2
setflag FLAG_BADGE03_GET
addvar VAR_0x4085, 1
compare_var_to_value VAR_0x4085, 6
compare VAR_0x4085, 6
call_if 1, MauvilleCity_Gym_EventScript_271E84
setvar VAR_0x8008, 3
call MauvilleCity_Gym_EventScript_271F43
@@ -119,7 +119,7 @@ MauvilleCity_Gym_EventScript_20DF2B:: @ 820DF2B
MauvilleCity_Gym_EventScript_20DF8D:: @ 820DF8D
giveitem_std ITEM_TM34
compare_var_to_value VAR_RESULT, 0
compare VAR_RESULT, 0
goto_eq MauvilleCity_Gym_EventScript_272054
msgbox MauvilleCity_Gym_Text_20E844, 4
setflag FLAG_0x0A7
@@ -128,7 +128,7 @@ MauvilleCity_Gym_EventScript_20DF8D:: @ 820DF8D
MauvilleCity_Gym_EventScript_20DFB1:: @ 820DFB1
giveitem_std ITEM_TM34
compare_var_to_value VAR_RESULT, 0
compare VAR_RESULT, 0
goto_eq MauvilleCity_Gym_EventScript_27205E
msgbox MauvilleCity_Gym_Text_20E844, 4
setflag FLAG_0x0A7
@@ -148,7 +148,7 @@ MauvilleCity_Gym_EventScript_20DFF9:: @ 820DFF9
lockall
checkflag FLAG_0x4F2
goto_eq MauvilleCity_Gym_EventScript_20E0AD
compare_var_to_value VAR_0x4093, 1
compare VAR_0x4093, 1
goto_eq MauvilleCity_Gym_EventScript_20E0AD
setvar VAR_0x4093, 1
setvar VAR_0x8004, 0
@@ -159,7 +159,7 @@ MauvilleCity_Gym_EventScript_20E01E:: @ 820E01E
lockall
checkflag FLAG_0x4F2
goto_eq MauvilleCity_Gym_EventScript_20E0AD
compare_var_to_value VAR_0x4093, 2
compare VAR_0x4093, 2
goto_eq MauvilleCity_Gym_EventScript_20E0AD
setvar VAR_0x4093, 2
setvar VAR_0x8004, 1
@@ -170,7 +170,7 @@ MauvilleCity_Gym_EventScript_20E043:: @ 820E043
lockall
checkflag FLAG_0x4F2
goto_eq MauvilleCity_Gym_EventScript_20E0AD
compare_var_to_value VAR_0x4093, 3
compare VAR_0x4093, 3
goto_eq MauvilleCity_Gym_EventScript_20E0AD
setvar VAR_0x4093, 3
setvar VAR_0x8004, 2
@@ -181,7 +181,7 @@ MauvilleCity_Gym_EventScript_20E068:: @ 820E068
lockall
checkflag FLAG_0x4F2
goto_eq MauvilleCity_Gym_EventScript_20E0AD
compare_var_to_value VAR_0x4093, 4
compare VAR_0x4093, 4
goto_eq MauvilleCity_Gym_EventScript_20E0AD
setvar VAR_0x4093, 4
setvar VAR_0x8004, 3