adds constants, cleans up callstd and msgbox code
* adds some constants for standard script names and messagebox types * replaces some callstd calls with msgbox calls where equivalent * replaces msgbox and callstd calls using raw digits with versions that use the constants
This commit is contained in:
@@ -11,16 +11,16 @@ Route123_EventScript_1F6151:: @ 81F6151
|
||||
faceplayer
|
||||
checkflag FLAG_0x0E8
|
||||
goto_eq Route123_EventScript_1F61A0
|
||||
msgbox Route123_Text_1F641E, 4
|
||||
msgbox Route123_Text_1F641E, MSGBOX_DEFAULT
|
||||
special IsGrassTypeInParty
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route123_EventScript_1F619E
|
||||
msgbox Route123_Text_1F645D, 4
|
||||
msgbox Route123_Text_1F645D, MSGBOX_DEFAULT
|
||||
giveitem_std ITEM_TM19
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq Route123_EventScript_272054
|
||||
setflag FLAG_0x0E8
|
||||
msgbox Route123_Text_1F64CF, 4
|
||||
msgbox Route123_Text_1F64CF, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
@@ -29,35 +29,35 @@ Route123_EventScript_1F619E:: @ 81F619E
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61A0:: @ 81F61A0
|
||||
msgbox Route123_Text_1F64CF, 4
|
||||
msgbox Route123_Text_1F64CF, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61AA:: @ 81F61AA
|
||||
msgbox Route123_Text_1F6511, 3
|
||||
msgbox Route123_Text_1F6511, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61B3:: @ 81F61B3
|
||||
msgbox Route123_Text_1F6529, 3
|
||||
msgbox Route123_Text_1F6529, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61BC:: @ 81F61BC
|
||||
msgbox Route123_Text_1F6557, 3
|
||||
msgbox Route123_Text_1F6557, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61C5:: @ 81F61C5
|
||||
trainerbattle 0, TRAINER_WENDY, 0, Route123_Text_29FBEB, Route123_Text_29FC23
|
||||
msgbox Route123_Text_29FC42, 6
|
||||
msgbox Route123_Text_29FC42, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61DC:: @ 81F61DC
|
||||
trainerbattle 0, TRAINER_BRAXTON, 0, Route123_Text_29FC6F, Route123_Text_29FCD6
|
||||
msgbox Route123_Text_29FCF4, 6
|
||||
msgbox Route123_Text_29FCF4, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F61F3:: @ 81F61F3
|
||||
trainerbattle 0, TRAINER_VIOLET, 0, Route123_Text_29FD1D, Route123_Text_29FD53
|
||||
msgbox Route123_Text_29FD7B, 6
|
||||
msgbox Route123_Text_29FD7B, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F620A:: @ 81F620A
|
||||
@@ -65,24 +65,24 @@ Route123_EventScript_1F620A:: @ 81F620A
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route123_EventScript_1F6255
|
||||
msgbox Route123_Text_29FE2A, 4
|
||||
msgbox Route123_Text_29FE2A, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6236:: @ 81F6236
|
||||
special sub_80B4808
|
||||
waitmovement 0
|
||||
msgbox Route123_Text_29FE70, 4
|
||||
msgbox Route123_Text_29FE70, MSGBOX_DEFAULT
|
||||
setvar VAR_0x8004, 238
|
||||
special SetMatchCallRegisteredFlag
|
||||
setorcopyvar VAR_0x8000, 238
|
||||
callstd 8
|
||||
callstd STD_REGISTER_MATCH_CALL
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6255:: @ 81F6255
|
||||
trainerbattle 5, TRAINER_CAMERON_1, 0, Route123_Text_29FED4, Route123_Text_29FF1B
|
||||
msgbox Route123_Text_29FF27, 6
|
||||
msgbox Route123_Text_29FF27, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F626C:: @ 81F626C
|
||||
@@ -90,74 +90,74 @@ Route123_EventScript_1F626C:: @ 81F626C
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route123_EventScript_1F62B7
|
||||
msgbox Route123_Text_29FFE5, 4
|
||||
msgbox Route123_Text_29FFE5, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6298:: @ 81F6298
|
||||
special sub_80B4808
|
||||
waitmovement 0
|
||||
msgbox Route123_Text_2A0027, 4
|
||||
msgbox Route123_Text_2A0027, MSGBOX_DEFAULT
|
||||
setvar VAR_0x8004, 249
|
||||
special SetMatchCallRegisteredFlag
|
||||
setorcopyvar VAR_0x8000, 249
|
||||
callstd 8
|
||||
callstd STD_REGISTER_MATCH_CALL
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F62B7:: @ 81F62B7
|
||||
trainerbattle 5, TRAINER_JACKI_1, 0, Route123_Text_2A005E, Route123_Text_2A008D
|
||||
msgbox Route123_Text_2A0099, 6
|
||||
msgbox Route123_Text_2A0099, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F62CE:: @ 81F62CE
|
||||
trainerbattle 4, TRAINER_MIU_AND_YUKI, 0, Route123_Text_2A00D6, Route123_Text_2A0119, Route123_Text_2A016D
|
||||
msgbox Route123_Text_2A012E, 6
|
||||
msgbox Route123_Text_2A012E, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F62E9:: @ 81F62E9
|
||||
trainerbattle 4, TRAINER_MIU_AND_YUKI, 0, Route123_Text_2A01A7, Route123_Text_2A01D8, Route123_Text_2A0224
|
||||
msgbox Route123_Text_2A01EE, 6
|
||||
msgbox Route123_Text_2A01EE, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6304:: @ 81F6304
|
||||
trainerbattle 0, TRAINER_KINDRA, 0, Route123_Text_2A025F, Route123_Text_2A02A6
|
||||
msgbox Route123_Text_2A02C1, 6
|
||||
msgbox Route123_Text_2A02C1, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F631B:: @ 81F631B
|
||||
trainerbattle 0, TRAINER_FREDRICK, 0, Route123_Text_2A060A, Route123_Text_2A0631
|
||||
msgbox Route123_Text_2A0672, 6
|
||||
msgbox Route123_Text_2A0672, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6332:: @ 81F6332
|
||||
trainerbattle 0, TRAINER_ALBERTO, 0, Route123_Text_2A06AF, Route123_Text_2A0704
|
||||
msgbox Route123_Text_2A072B, 6
|
||||
msgbox Route123_Text_2A072B, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6349:: @ 81F6349
|
||||
trainerbattle 0, TRAINER_ED, 0, Route123_Text_2A079B, Route123_Text_2A07F0
|
||||
msgbox Route123_Text_2A080D, 6
|
||||
msgbox Route123_Text_2A080D, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6360:: @ 81F6360
|
||||
trainerbattle 0, TRAINER_KAYLEY, 0, Route123_Text_2A0902, Route123_Text_2A0943
|
||||
msgbox Route123_Text_2A096E, 6
|
||||
msgbox Route123_Text_2A096E, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6377:: @ 81F6377
|
||||
trainerbattle 0, TRAINER_JONAS, 0, Route123_Text_2A0854, Route123_Text_2A088A
|
||||
msgbox Route123_Text_2A08CA, 6
|
||||
msgbox Route123_Text_2A08CA, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F638E:: @ 81F638E
|
||||
trainerbattle 0, TRAINER_JAZMYN, 0, Route123_Text_2A054E, Route123_Text_2A0592
|
||||
msgbox Route123_Text_2A05AC, 6
|
||||
msgbox Route123_Text_2A05AC, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F63A5:: @ 81F63A5
|
||||
trainerbattle 0, TRAINER_DAVIS, 0, Route123_Text_2A04C0, Route123_Text_2A04FE
|
||||
msgbox Route123_Text_2A0512, 6
|
||||
msgbox Route123_Text_2A0512, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_EventScript_1F63BC:: @ 81F63BC
|
||||
@@ -165,24 +165,24 @@ Route123_EventScript_1F63BC:: @ 81F63BC
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq Route123_EventScript_1F6407
|
||||
msgbox Route123_Text_2A0389, 4
|
||||
msgbox Route123_Text_2A0389, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F63E8:: @ 81F63E8
|
||||
special sub_80B4808
|
||||
waitmovement 0
|
||||
msgbox Route123_Text_2A03C1, 4
|
||||
msgbox Route123_Text_2A03C1, MSGBOX_DEFAULT
|
||||
setvar VAR_0x8004, 195
|
||||
special SetMatchCallRegisteredFlag
|
||||
setorcopyvar VAR_0x8000, 195
|
||||
callstd 8
|
||||
callstd STD_REGISTER_MATCH_CALL
|
||||
release
|
||||
end
|
||||
|
||||
Route123_EventScript_1F6407:: @ 81F6407
|
||||
trainerbattle 5, TRAINER_FERNANDO_1, 0, Route123_Text_2A03FB, Route123_Text_2A045A
|
||||
msgbox Route123_Text_2A0487, 6
|
||||
msgbox Route123_Text_2A0487, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
Route123_Text_1F641E: @ 81F641E
|
||||
|
||||
Reference in New Issue
Block a user