Port generic event script macros from pokeruby
This commit is contained in:
@@ -31,7 +31,7 @@ Route104_EventScript_1ECC74:: @ 81ECC74
|
||||
return
|
||||
|
||||
Route104_EventScript_1ECC78:: @ 81ECC78
|
||||
compare_var_to_value VAR_0x408E, 1
|
||||
compare VAR_0x408E, 1
|
||||
goto_if 4, Route104_EventScript_1ECC9D
|
||||
checkflag FLAG_0x120
|
||||
goto_eq Route104_EventScript_1ECC9D
|
||||
@@ -76,9 +76,9 @@ Route104_EventScript_1ECCB3:: @ 81ECCB3
|
||||
|
||||
Route104_EventScript_1ECD11:: @ 81ECD11
|
||||
checkplayergender
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_1ECD29
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECD2E
|
||||
return
|
||||
|
||||
@@ -92,9 +92,9 @@ Route104_EventScript_1ECD2E:: @ 81ECD2E
|
||||
|
||||
Route104_EventScript_1ECD33:: @ 81ECD33
|
||||
checkplayergender
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_1ECD4B
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECE6F
|
||||
end
|
||||
|
||||
@@ -122,7 +122,7 @@ Route104_EventScript_1ECD4B:: @ 81ECD4B
|
||||
waitmovement 0
|
||||
moveobjectoffscreen 34
|
||||
msgbox Route104_Text_1EDCED, 5
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECDED
|
||||
msgbox Route104_Text_1EDD2A, 4
|
||||
call Route104_EventScript_1ECE31
|
||||
@@ -145,7 +145,7 @@ Route104_Movement_1ECDCD: @ 81ECDCD
|
||||
|
||||
Route104_EventScript_1ECDD0:: @ 81ECDD0
|
||||
msgbox Route104_Text_1EDD9F, 5
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECDED
|
||||
msgbox Route104_Text_1EDD2A, 4
|
||||
releaseall
|
||||
@@ -161,7 +161,7 @@ Route104_EventScript_1ECDED:: @ 81ECDED
|
||||
|
||||
Route104_EventScript_1ECE1C:: @ 81ECE1C
|
||||
msgbox Route104_Text_1EDE3E, 4
|
||||
compare_var_to_value VAR_0x8008, 0
|
||||
compare VAR_0x8008, 0
|
||||
call_if 1, Route104_EventScript_1ECE31
|
||||
releaseall
|
||||
end
|
||||
@@ -213,7 +213,7 @@ Route104_EventScript_1ECE6F:: @ 81ECE6F
|
||||
waitmovement 0
|
||||
moveobjectoffscreen 34
|
||||
msgbox Route104_Text_1EE009, 5
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECF09
|
||||
msgbox Route104_Text_1EE04D, 4
|
||||
call Route104_EventScript_1ECE31
|
||||
@@ -222,7 +222,7 @@ Route104_EventScript_1ECE6F:: @ 81ECE6F
|
||||
|
||||
Route104_EventScript_1ECEEC:: @ 81ECEEC
|
||||
msgbox Route104_Text_1EE094, 5
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ECF09
|
||||
msgbox Route104_Text_1EE04D, 4
|
||||
releaseall
|
||||
@@ -238,7 +238,7 @@ Route104_EventScript_1ECF09:: @ 81ECF09
|
||||
|
||||
Route104_EventScript_1ECF38:: @ 81ECF38
|
||||
msgbox Route104_Text_1EE120, 4
|
||||
compare_var_to_value VAR_0x8008, 0
|
||||
compare VAR_0x8008, 0
|
||||
call_if 1, Route104_EventScript_1ECE31
|
||||
releaseall
|
||||
end
|
||||
@@ -278,7 +278,7 @@ Route104_EventScript_1ECF8C:: @ 81ECF8C
|
||||
goto_eq Route104_EventScript_1ECFC3
|
||||
msgbox Route104_Text_2A6D86, 4
|
||||
giveitem_std ITEM_CHESTO_BERRY
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_272054
|
||||
setflag FLAG_0x0F6
|
||||
msgbox Route104_Text_2A6E32, 4
|
||||
@@ -297,7 +297,7 @@ Route104_EventScript_1ECFCD:: @ 81ECFCD
|
||||
goto_eq Route104_EventScript_1ECFFC
|
||||
msgbox Route104_Text_1ED96A, 4
|
||||
giveitem_std ITEM_WHITE_HERB
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_272054
|
||||
setflag FLAG_0x117
|
||||
release
|
||||
@@ -351,7 +351,7 @@ Route104_EventScript_1ED057:: @ 81ED057
|
||||
goto_eq Route104_EventScript_1ED086
|
||||
msgbox Route104_Text_1ED838, 4
|
||||
giveitem_std ITEM_TM09
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_272054
|
||||
setflag FLAG_0x106
|
||||
release
|
||||
@@ -402,8 +402,8 @@ Route104_EventScript_1ED0EF:: @ 81ED0EF
|
||||
delay 30
|
||||
setflag FLAG_0x132
|
||||
applymovement 255, Route104_Movement_1ED22A
|
||||
applymovementat 7, Route104_Movement_1ED22A, ROUTE_104
|
||||
waitmovementat 7, ROUTE_104
|
||||
applymovement 7, Route104_Movement_1ED22A, ROUTE_104
|
||||
waitmovement 7, ROUTE_104
|
||||
waitmovement 0
|
||||
goto Route104_EventScript_1ED139
|
||||
|
||||
@@ -883,11 +883,11 @@ Route104_EventScript_1ED376:: @ 81ED376
|
||||
Route104_EventScript_1ED38D:: @ 81ED38D
|
||||
trainerbattle 2, TRAINER_HALEY_1, 0, Route104_Text_29563A, Route104_Text_29566F, Route104_EventScript_1ED3CE
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ED424
|
||||
setvar VAR_0x8004, 604
|
||||
specialvar VAR_RESULT, sub_813B4E0
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_1ED3F8
|
||||
msgbox Route104_Text_295689, 4
|
||||
release
|
||||
@@ -934,11 +934,11 @@ Route104_EventScript_1ED424:: @ 81ED424
|
||||
Route104_EventScript_1ED43B:: @ 81ED43B
|
||||
trainerbattle 2, TRAINER_WINSTON_1, 0, Route104_Text_295870, Route104_Text_2958AD, Route104_EventScript_1ED47C
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ED4D2
|
||||
setvar VAR_0x8004, 136
|
||||
specialvar VAR_RESULT, sub_813B4E0
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_1ED4A6
|
||||
msgbox Route104_Text_2958C1, 4
|
||||
release
|
||||
@@ -985,11 +985,11 @@ Route104_EventScript_1ED4D2:: @ 81ED4D2
|
||||
Route104_EventScript_1ED4E9:: @ 81ED4E9
|
||||
trainerbattle 2, TRAINER_CINDY_1, 0, Route104_Text_295A7E, Route104_Text_295ABB, Route104_EventScript_1ED52A
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route104_EventScript_1ED580
|
||||
setvar VAR_0x8004, 114
|
||||
specialvar VAR_RESULT, sub_813B4E0
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route104_EventScript_1ED554
|
||||
msgbox Route104_Text_295AC3, 4
|
||||
release
|
||||
|
||||
Reference in New Issue
Block a user