Port generic event script macros from pokeruby
This commit is contained in:
@@ -5,18 +5,18 @@ Route114_MapScripts:: @ 81F252F
|
||||
.byte 0
|
||||
|
||||
Route114_MapScript1_1F253F: @ 81F253F
|
||||
compare_var_to_value VAR_0x4039, 1
|
||||
compare VAR_0x4039, 1
|
||||
call_if 1, Route114_EventScript_273D13
|
||||
compare_var_to_value VAR_0x4037, 1
|
||||
compare VAR_0x4037, 1
|
||||
call_if 1, Route114_EventScript_273D1B
|
||||
compare_var_to_value VAR_0x4037, 2
|
||||
compare VAR_0x4037, 2
|
||||
call_if 1, Route114_EventScript_273D1B
|
||||
end
|
||||
|
||||
Route114_MapScript1_1F2561: @ 81F2561
|
||||
compare_var_to_value VAR_0x4037, 1
|
||||
compare VAR_0x4037, 1
|
||||
call_if 1, Route114_EventScript_273913
|
||||
compare_var_to_value VAR_0x4037, 2
|
||||
compare VAR_0x4037, 2
|
||||
call_if 1, Route114_EventScript_273926
|
||||
end
|
||||
|
||||
@@ -35,7 +35,7 @@ Route114_EventScript_1F2582:: @ 81F2582
|
||||
addvar VAR_RESULT, 15
|
||||
addvar VAR_RESULT, 133
|
||||
giveitem_std VAR_RESULT
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route114_EventScript_272054
|
||||
setflag FLAG_0x92B
|
||||
msgbox Route114_Text_2A7034, 4
|
||||
@@ -54,7 +54,7 @@ Route114_EventScript_1F25D1:: @ 81F25D1
|
||||
goto_eq Route114_EventScript_1F2608
|
||||
msgbox Route114_Text_1F2809, 4
|
||||
giveitem_std ITEM_TM05
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route114_EventScript_272054
|
||||
setflag FLAG_0x0E7
|
||||
msgbox Route114_Text_1F2872, 4
|
||||
@@ -111,7 +111,7 @@ Route114_EventScript_1F2685:: @ 81F2685
|
||||
Route114_EventScript_1F269C:: @ 81F269C
|
||||
trainerbattle 2, TRAINER_STEVE_1, 0, Route114_Text_29A943, Route114_Text_29A973, Route114_EventScript_1F26C8
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route114_EventScript_1F26E7
|
||||
msgbox Route114_Text_29A981, 4
|
||||
release
|
||||
@@ -136,7 +136,7 @@ Route114_EventScript_1F26E7:: @ 81F26E7
|
||||
Route114_EventScript_1F26FE:: @ 81F26FE
|
||||
trainerbattle 2, TRAINER_BERNIE_1, 0, Route114_Text_29AADB, Route114_Text_29AB1A, Route114_EventScript_1F272A
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare_var_to_value VAR_RESULT, 1
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route114_EventScript_1F2749
|
||||
msgbox Route114_Text_29AB36, 4
|
||||
release
|
||||
|
||||
Reference in New Issue
Block a user