improve checkplayergender calls
clean up constant definitions make tweaks from review
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/gba_constants.inc"
|
||||
.include "constants/misc_constants.inc"
|
||||
.include "constants/global.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
@@ -2399,7 +2399,7 @@ _08078726:
|
||||
bne _08078766
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x2
|
||||
ldr r2, =gSpeciesNames + 303 * POKEMON_NAME_LENGTH @ SPECIES_SHEDINJA
|
||||
ldr r2, =gSpeciesNames + 303 * 11 @ SPECIES_SHEDINJA * POKEMON_NAME_LENGTH + 1
|
||||
bl SetMonData
|
||||
_08078766:
|
||||
adds r4, 0x64
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.include "constants/gba_constants.inc"
|
||||
.include "constants/misc_constants.inc"
|
||||
.include "constants/global.inc"
|
||||
.include "constants/contest_constants.inc"
|
||||
.include "constants/pokemon_data_constants.inc"
|
||||
.include "constants/berry_constants.inc"
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
|
||||
.set NULL, 0
|
||||
|
||||
.set POKEMON_NAME_LENGTH, 11
|
||||
.set MOVE_NAME_LENGTH, 13
|
||||
|
||||
.set SPRITE_SIZE_8x8, (OAM_SIZE_0 >> 28) | (OAM_SQUARE >> 14)
|
||||
.set SPRITE_SIZE_16x16, (OAM_SIZE_1 >> 28) | (OAM_SQUARE >> 14)
|
||||
.set SPRITE_SIZE_32x32, (OAM_SIZE_2 >> 28) | (OAM_SQUARE >> 14)
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "constants/global.h"
|
||||
#include "constants/battle_frontier.h"
|
||||
#include "constants/battle_setup.h"
|
||||
#include "constants/event_objects.h"
|
||||
@@ -1792,9 +1793,9 @@ Route110_EventScript_271ED7:: @ 8271ED7
|
||||
Route119_EventScript_271ED7:: @ 8271ED7
|
||||
RustboroCity_EventScript_271ED7:: @ 8271ED7
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq RustboroCity_EventScript_271EEF
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq RustboroCity_EventScript_271EF5
|
||||
end
|
||||
|
||||
@@ -1810,9 +1811,9 @@ LavaridgeTown_EventScript_271EFB:: @ 8271EFB
|
||||
Route110_EventScript_271EFB:: @ 8271EFB
|
||||
Route119_EventScript_271EFB:: @ 8271EFB
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LavaridgeTown_EventScript_271F13
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LavaridgeTown_EventScript_271F19
|
||||
end
|
||||
|
||||
@@ -1826,9 +1827,9 @@ LavaridgeTown_EventScript_271F19:: @ 8271F19
|
||||
|
||||
EventScript_271F1F:: @ 8271F1F
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq EventScript_271F37
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq EventScript_271F3D
|
||||
end
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ BattleFrontier_BattleArenaBattleRoom_MapScript1_2574A0: @ 82574A0
|
||||
|
||||
BattleFrontier_BattleArenaBattleRoom_EventScript_2574AE:: @ 82574AE
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_2574C6
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq BattleFrontier_BattleArenaBattleRoom_EventScript_2574CC
|
||||
return
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ BattleFrontier_BattleDomeBattleRoom_MapScript1_24BCB1: @ 824BCB1
|
||||
BattleFrontier_BattleArenaBattleRoom_EventScript_24BCDC:: @ 824BCDC
|
||||
BattleFrontier_BattleDomeBattleRoom_EventScript_24BCDC:: @ 824BCDC
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_24BCF4
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq BattleFrontier_BattleDomeBattleRoom_EventScript_24BCFA
|
||||
return
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ BattleFrontier_BattleFactoryBattleRoom_MapScript1_25ADBB: @ 825ADBB
|
||||
setvar VAR_0x8004, 5
|
||||
special CallFrontierUtilFunc
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE25
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq BattleFrontier_BattleFactoryBattleRoom_EventScript_25AE2B
|
||||
setvar VAR_0x8004, 9
|
||||
special CallFrontierUtilFunc
|
||||
|
||||
@@ -12,9 +12,9 @@ BattleFrontier_BattlePalaceBattleRoom_MapScript1_24F825: @ 824F825
|
||||
|
||||
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F833:: @ 824F833
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24F84B
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24F856
|
||||
return
|
||||
|
||||
|
||||
@@ -53,16 +53,16 @@ EverGrandeCity_ChampionsRoom_EventScript_228A61:: @ 8228A61
|
||||
closemessage
|
||||
playse SE_DOOR
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228ABC
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AC1
|
||||
addobject 2
|
||||
call EverGrandeCity_ChampionsRoom_EventScript_228BFD
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AC6
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_228AFB
|
||||
end
|
||||
|
||||
@@ -128,9 +128,9 @@ EverGrandeCity_ChampionsRoom_EventScript_228B30:: @ 8228B30
|
||||
waitmovement 0
|
||||
msgbox EverGrandeCity_ChampionsRoom_Text_2293EB, MSGBOX_DEFAULT
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228BEB
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq EverGrandeCity_ChampionsRoom_EventScript_228BF4
|
||||
closemessage
|
||||
applymovement 1, EverGrandeCity_ChampionsRoom_Movement_228C3F
|
||||
|
||||
@@ -44,9 +44,9 @@ EverGrandeCity_HallOfFame_EventScript_229850:: @ 8229850
|
||||
setvar VAR_TEMP_1, 1
|
||||
call EverGrandeCity_HallOfFame_EventScript_2717C1
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq EverGrandeCity_HallOfFame_EventScript_2298E9
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq EverGrandeCity_HallOfFame_EventScript_2298F5
|
||||
end
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ FallarborTown_BattleTentBattleRoom_MapScript1_2008A9: @ 82008A9
|
||||
|
||||
FallarborTown_BattleTentBattleRoom_EventScript_2008AF:: @ 82008AF
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq FallarborTown_BattleTentBattleRoom_EventScript_2008C7
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq FallarborTown_BattleTentBattleRoom_EventScript_2008D2
|
||||
return
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ InsideOfTruck_EventScript_23BF04:: @ 823BF04
|
||||
lockall
|
||||
setflag FLAG_SPECIAL_FLAG_0x4000
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq InsideOfTruck_EventScript_23BF20
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq InsideOfTruck_EventScript_23BF46
|
||||
end
|
||||
|
||||
|
||||
@@ -53,18 +53,18 @@ LavaridgeTown_EventScript_1EA551:: @ 81EA551
|
||||
call_if_ne LavaridgeTown_EventScript_1EA65C
|
||||
delay 20
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LavaridgeTown_EventScript_1EA630
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LavaridgeTown_EventScript_1EA635
|
||||
compare VAR_0x8008, 9
|
||||
call_if_eq LavaridgeTown_EventScript_1EA6A1
|
||||
compare VAR_0x8008, 9
|
||||
call_if_ne LavaridgeTown_EventScript_1EA6AC
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LavaridgeTown_EventScript_1EA5B5
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LavaridgeTown_EventScript_1EA5DA
|
||||
end
|
||||
|
||||
|
||||
@@ -231,9 +231,9 @@ LilycoveCity_EventScript_1E2DDE:: @ 81E2DDE
|
||||
lock
|
||||
faceplayer
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LilycoveCity_EventScript_1E2DF8
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LilycoveCity_EventScript_1E2E6B
|
||||
end
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ LittlerootTown_EventScript_1E7E92:: @ 81E7E92
|
||||
clearflag FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE
|
||||
setobjectmovementtype 4, 8
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E7EB1
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E7EB9
|
||||
return
|
||||
|
||||
@@ -381,9 +381,9 @@ LittlerootTown_EventScript_1E815A:: @ 81E815A
|
||||
LittlerootTown_EventScript_1E8163:: @ 81E8163
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E817D
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8186
|
||||
releaseall
|
||||
end
|
||||
@@ -399,9 +399,9 @@ LittlerootTown_EventScript_1E8186:: @ 81E8186
|
||||
LittlerootTown_EventScript_1E818F:: @ 81E818F
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E81A9
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E81B2
|
||||
releaseall
|
||||
end
|
||||
@@ -454,27 +454,27 @@ LittlerootTown_EventScript_1E8205:: @ 81E8205
|
||||
|
||||
LittlerootTown_EventScript_1E8211:: @ 81E8211
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8297
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E82A2
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8281
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E828C
|
||||
msgbox LittlerootTown_Text_1E87E1, MSGBOX_DEFAULT
|
||||
closemessage
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E82AD
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E82F0
|
||||
call LittlerootTown_EventScript_1E8693
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8405
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8448
|
||||
goto LittlerootTown_EventScript_1E8686
|
||||
end
|
||||
@@ -889,9 +889,9 @@ LittlerootTown_EventScript_1E863D:: @ 81E863D
|
||||
lock
|
||||
faceplayer
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_EventScript_1E8281
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_EventScript_1E828C
|
||||
call LittlerootTown_EventScript_1E8693
|
||||
applymovement 4, LittlerootTown_Movement_2725A6
|
||||
|
||||
@@ -247,9 +247,9 @@ LittlerootTown_BrendansHouse_2F_Movement_1F8609: @ 81F8609
|
||||
EventScript_PlayerPCMale:: @ 81F860D
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F8626
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F864C
|
||||
end
|
||||
|
||||
|
||||
@@ -251,9 +251,9 @@ LittlerootTown_MaysHouse_2F_EventScript_1F94C1:: @ 81F94C1
|
||||
lockall
|
||||
goto_if_set FLAG_0x124, LittlerootTown_BrendansHouse_2F_EventScript_1F94F7
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F94E3
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F94ED
|
||||
end
|
||||
|
||||
@@ -271,9 +271,9 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F94F7:: @ 81F94F7
|
||||
applymovement VAR_LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_27259E
|
||||
waitmovement 0
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F951D
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1F952F
|
||||
setflag FLAG_0x125
|
||||
releaseall
|
||||
@@ -300,9 +300,9 @@ LittlerootTown_BrendansHouse_2F_EventScript_1F954A:: @ 81F954A
|
||||
EventScript_PlayerPCFemale:: @ 81F9553
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F956C
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_1F9576
|
||||
end
|
||||
|
||||
|
||||
@@ -171,9 +171,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1F9E80:: @ 81F9E80
|
||||
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_ProfessorBirchsLab_Movement_2725A4
|
||||
waitmovement 0
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1F9F32
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1F9F3C
|
||||
playse SE_PC_ON
|
||||
waitse
|
||||
@@ -533,9 +533,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA2F8:: @ 81FA2F8
|
||||
applymovement EVENT_OBJ_ID_PLAYER, LittlerootTown_ProfessorBirchsLab_Movement_2725A8
|
||||
waitmovement 0
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA352
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA37F
|
||||
setvar VAR_0x4084, 5
|
||||
setflag FLAG_0x074
|
||||
@@ -605,9 +605,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA3EC:: @ 81FA3EC
|
||||
compare VAR_0x40D3, 2
|
||||
goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_1FA490
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA428
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA431
|
||||
release
|
||||
end
|
||||
@@ -622,9 +622,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA431:: @ 81FA431
|
||||
|
||||
LittlerootTown_ProfessorBirchsLab_EventScript_1FA43A:: @ 81FA43A
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA453
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA45C
|
||||
release
|
||||
end
|
||||
@@ -639,9 +639,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA45C:: @ 81FA45C
|
||||
|
||||
LittlerootTown_ProfessorBirchsLab_EventScript_1FA465:: @ 81FA465
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA47E
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA487
|
||||
release
|
||||
end
|
||||
@@ -656,9 +656,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1FA487:: @ 81FA487
|
||||
|
||||
LittlerootTown_ProfessorBirchsLab_EventScript_1FA490:: @ 81FA490
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA4A9
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_1FA4B2
|
||||
release
|
||||
end
|
||||
|
||||
@@ -349,9 +349,9 @@ MossdeepCity_SpaceCenter_2F_EventScript_224166:: @ 8224166
|
||||
MossdeepCity_SpaceCenter_2F_EventScript_224175:: @ 8224175
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq MossdeepCity_SpaceCenter_2F_EventScript_224193
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq MossdeepCity_SpaceCenter_2F_EventScript_22419A
|
||||
closemessage
|
||||
clearflag FLAG_0x075
|
||||
|
||||
@@ -255,9 +255,9 @@ OldaleTown_EventScript_1E90C6:: @ 81E90C6
|
||||
|
||||
OldaleTown_EventScript_1E90E6:: @ 81E90E6
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq OldaleTown_EventScript_1E90FE
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq OldaleTown_EventScript_1E910C
|
||||
end
|
||||
|
||||
|
||||
@@ -238,9 +238,9 @@ Route101_EventScript_1EBE16:: @ 81EBE16
|
||||
setvar VAR_0x4060, 3
|
||||
clearflag FLAG_SPECIAL_FLAG_0x4000
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq Route101_EventScript_1EBE85
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq Route101_EventScript_1EBE89
|
||||
warp MAP_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB, 255, 6, 5
|
||||
waitstate
|
||||
|
||||
@@ -20,9 +20,9 @@ Route103_EventScript_1EC3AE:: @ 81EC3AE
|
||||
Route103_EventScript_1EC3C1:: @ 81EC3C1
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route103_EventScript_1EC3DA
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route103_EventScript_1EC434
|
||||
end
|
||||
|
||||
|
||||
@@ -72,9 +72,9 @@ Route104_EventScript_1ECCB3:: @ 81ECCB3
|
||||
|
||||
Route104_EventScript_1ECD11:: @ 81ECD11
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route104_EventScript_1ECD29
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route104_EventScript_1ECD2E
|
||||
return
|
||||
|
||||
@@ -88,9 +88,9 @@ Route104_EventScript_1ECD2E:: @ 81ECD2E
|
||||
|
||||
Route104_EventScript_1ECD33:: @ 81ECD33
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route104_EventScript_1ECD4B
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route104_EventScript_1ECE6F
|
||||
end
|
||||
|
||||
|
||||
@@ -379,9 +379,9 @@ Route110_EventScript_1EF763:: @ 81EF763
|
||||
Route110_EventScript_1EF76E:: @ 81EF76E
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq Route110_EventScript_1EF7E1
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq Route110_EventScript_1EF7E6
|
||||
applymovement 28, Route110_Movement_2725AA
|
||||
waitmovement 0
|
||||
@@ -397,9 +397,9 @@ Route110_EventScript_1EF76E:: @ 81EF76E
|
||||
compare VAR_0x8008, 3
|
||||
call_if_eq Route110_EventScript_1EF964
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route110_EventScript_1EF7EB
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route110_EventScript_1EF865
|
||||
releaseall
|
||||
end
|
||||
|
||||
@@ -53,9 +53,9 @@ Route111_MapScript1_1F0D87: @ 81F0D87
|
||||
|
||||
Route111_EventScript_1F0DC2:: @ 81F0DC2
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route111_EventScript_1F0DDA
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route111_EventScript_1F0DE0
|
||||
return
|
||||
|
||||
|
||||
@@ -42,9 +42,9 @@ Route119_EventScript_1F4488:: @ 81F4488
|
||||
lockall
|
||||
addobject 25
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq Route119_EventScript_1F4501
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq Route119_EventScript_1F4506
|
||||
delay 65
|
||||
compare VAR_TEMP_1, 1
|
||||
@@ -62,9 +62,9 @@ Route119_EventScript_1F4488:: @ 81F4488
|
||||
addobject 16
|
||||
delay 30
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq Route119_EventScript_1F450B
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq Route119_EventScript_1F4585
|
||||
releaseall
|
||||
end
|
||||
|
||||
@@ -677,9 +677,9 @@ RustboroCity_EventScript_1E0DB8:: @ 81E0DB8
|
||||
Route104_EventScript_1E0DD1:: @ 81E0DD1
|
||||
RustboroCity_EventScript_1E0DD1:: @ 81E0DD1
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq RustboroCity_EventScript_1E0DE9
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq RustboroCity_EventScript_1E0DEE
|
||||
return
|
||||
|
||||
@@ -821,9 +821,9 @@ RustboroCity_EventScript_1E0FB3:: @ 81E0FB3
|
||||
|
||||
RustboroCity_EventScript_1E0FF3:: @ 81E0FF3
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq RustboroCity_EventScript_1E100B
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq RustboroCity_EventScript_1E1114
|
||||
end
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ SlateportCity_BattleTentBattleRoom_MapScript1_209970: @ 8209970
|
||||
|
||||
SlateportCity_BattleTentBattleRoom_EventScript_209976:: @ 8209976
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_20998E
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq SlateportCity_BattleTentBattleRoom_EventScript_209994
|
||||
return
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ SouthernIsland_Interior_EventScript_242A95:: @ 8242A95
|
||||
|
||||
SouthernIsland_Interior_EventScript_242AA0:: @ 8242AA0
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq SouthernIsland_Interior_EventScript_242AB8
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq SouthernIsland_Interior_EventScript_242ABE
|
||||
end
|
||||
|
||||
|
||||
@@ -442,9 +442,9 @@ LinkContestRoom1_EventScript_23BEAC:: @ 823BEAC
|
||||
|
||||
LilycoveCity_ContestLobby_EventScript_23BEB6:: @ 823BEB6
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_23BECE
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_23BED4
|
||||
return
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ VerdanturfTown_BattleTentBattleRoom_MapScript1_20230A: @ 820230A
|
||||
|
||||
VerdanturfTown_BattleTentBattleRoom_EventScript_202310:: @ 8202310
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
goto_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202328
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
goto_if_eq VerdanturfTown_BattleTentBattleRoom_EventScript_202333
|
||||
return
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ LittlerootTown_MaysHouse_2F_EventScript_292799:: @ 8292799
|
||||
setflag FLAG_HIDE_LITTLEROOT_TOWN_PLAYERS_HOUSE_VIGOROTH_1
|
||||
setflag FLAG_HIDE_LITTLEROOT_TOWN_PLAYERS_HOUSE_VIGOROTH_2
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_2927DF
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_29280F
|
||||
playse SE_KAIDAN
|
||||
removeobject VAR_0x8008
|
||||
@@ -438,9 +438,9 @@ LittlerootTown_BrendansHouse_1F_EventScript_292AF2:: @ 8292AF2
|
||||
LittlerootTown_MaysHouse_1F_EventScript_292AF2:: @ 8292AF2
|
||||
lockall
|
||||
checkplayergender
|
||||
compare VAR_RESULT, 0
|
||||
compare VAR_RESULT, MALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292C76
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, FEMALE
|
||||
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292C86
|
||||
compare VAR_0x8008, 0
|
||||
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_292D08
|
||||
|
||||
77
include/constants/global.h
Normal file
77
include/constants/global.h
Normal file
@@ -0,0 +1,77 @@
|
||||
#ifndef GUARD_CONSTANTS_GLOBAL_H
|
||||
#define GUARD_CONSTANTS_GLOBAL_H
|
||||
// Invalid Versions show as "----------" in Gen 4 and Gen 5's summary screen.
|
||||
// In Gens 6 and 7, invalid versions instead show "a distant land" in the summary screen.
|
||||
// In Gen 4 only, migrated Pokemon with Diamond, Pearl, or Platinum's ID show as "----------".
|
||||
// Gen 5 and up read Diamond, Pearl, or Platinum's ID as "Sinnoh".
|
||||
// In Gen 4 and up, migrated Pokemon with HeartGold or SoulSilver's ID show the otherwise unused "Johto" string.
|
||||
#define VERSION_SAPPHIRE 1
|
||||
#define VERSION_RUBY 2
|
||||
#define VERSION_EMERALD 3
|
||||
#define VERSION_FIRE_RED 4
|
||||
#define VERSION_LEAF_GREEN 5
|
||||
#define VERSION_HEART_GOLD 7
|
||||
#define VERSION_SOUL_SILVER 8
|
||||
#define VERSION_DIAMOND 10
|
||||
#define VERSION_PEARL 11
|
||||
#define VERSION_PLATINUM 12
|
||||
#define VERSION_GAMECUBE 15
|
||||
|
||||
#define LANGUAGE_JAPANESE 1
|
||||
#define LANGUAGE_ENGLISH 2
|
||||
#define LANGUAGE_FRENCH 3
|
||||
#define LANGUAGE_ITALIAN 4
|
||||
#define LANGUAGE_GERMAN 5
|
||||
#define LANGUAGE_KOREAN 6 // 6 goes unused but the theory is it was meant to be Korean
|
||||
#define LANGUAGE_SPANISH 7
|
||||
|
||||
#define GAME_VERSION (VERSION_EMERALD)
|
||||
#define GAME_LANGUAGE (LANGUAGE_ENGLISH)
|
||||
|
||||
// capacities of various saveblock objects
|
||||
#define DAYCARE_MON_COUNT 2
|
||||
#define POKEBLOCKS_COUNT 40
|
||||
#define EVENT_OBJECTS_COUNT 16
|
||||
#define BERRY_TREES_COUNT 128
|
||||
#define FLAGS_COUNT 300
|
||||
#define VARS_COUNT 256
|
||||
#define MAIL_COUNT 16
|
||||
#define SECRET_BASES_COUNT 20
|
||||
#define TV_SHOWS_COUNT 25
|
||||
#define POKE_NEWS_COUNT 16
|
||||
#define PC_ITEMS_COUNT 50
|
||||
#define BAG_ITEMS_COUNT 30
|
||||
#define BAG_KEYITEMS_COUNT 30
|
||||
#define BAG_POKEBALLS_COUNT 16
|
||||
#define BAG_TMHM_COUNT 64
|
||||
#define BAG_BERRIES_COUNT 46
|
||||
#define EVENT_OBJECT_TEMPLATES_COUNT 64
|
||||
|
||||
#define PYRAMID_BAG_ITEMS_COUNT 10
|
||||
#define HALL_FACILITIES_COUNT 9 // 7 facilities for single mode + tower double mode + tower multi mode.
|
||||
|
||||
// string lengths
|
||||
#define ITEM_NAME_LENGTH 14
|
||||
#define POKEMON_NAME_LENGTH 10
|
||||
#define PLAYER_NAME_LENGTH 7
|
||||
#define MAIL_WORDS_COUNT 9
|
||||
#define MOVE_NAME_LENGTH 12
|
||||
|
||||
#define MALE 0
|
||||
#define FEMALE 1
|
||||
|
||||
#define OPTIONS_BUTTON_MODE_NORMAL 0
|
||||
#define OPTIONS_BUTTON_MODE_LR 1
|
||||
#define OPTIONS_BUTTON_MODE_L_EQUALS_A 2
|
||||
|
||||
#define OPTIONS_TEXT_SPEED_SLOW 0
|
||||
#define OPTIONS_TEXT_SPEED_MID 1
|
||||
#define OPTIONS_TEXT_SPEED_FAST 2
|
||||
|
||||
#define OPTIONS_SOUND_MONO 0
|
||||
#define OPTIONS_SOUND_STEREO 1
|
||||
|
||||
#define OPTIONS_BATTLE_STYLE_SHIFT 0
|
||||
#define OPTIONS_BATTLE_STYLE_SET 1
|
||||
|
||||
#endif // GUARD_CONSTANTS_GLOBAL_H
|
||||
@@ -1,8 +1,6 @@
|
||||
#ifndef GUARD_DATA2_H
|
||||
#define GUARD_DATA2_H
|
||||
|
||||
#define MOVE_NAME_LENGTH 12
|
||||
|
||||
struct MonCoords
|
||||
{
|
||||
// This would use a bitfield, but some function
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <string.h>
|
||||
#include "config.h" // we need to define config before gba headers as print stuff needs the functions nulled before defines.
|
||||
#include "gba/gba.h"
|
||||
#include "constants/global.h"
|
||||
|
||||
// Prevent cross-jump optimization.
|
||||
#define BLOCK_CROSS_JUMP asm("");
|
||||
@@ -93,100 +94,6 @@
|
||||
f; \
|
||||
})
|
||||
|
||||
// Invalid Versions show as "----------" in Gen 4 and Gen 5's summary screen.
|
||||
// In Gens 6 and 7, invalid versions instead show "a distant land" in the summary screen.
|
||||
// In Gen 4 only, migrated Pokemon with Diamond, Pearl, or Platinum's ID show as "----------".
|
||||
// Gen 5 and up read Diamond, Pearl, or Platinum's ID as "Sinnoh".
|
||||
// In Gen 4 and up, migrated Pokemon with HeartGold or SoulSilver's ID show the otherwise unused "Johto" string.
|
||||
enum
|
||||
{
|
||||
VERSION_SAPPHIRE = 1,
|
||||
VERSION_RUBY = 2,
|
||||
VERSION_EMERALD = 3,
|
||||
VERSION_FIRE_RED = 4,
|
||||
VERSION_LEAF_GREEN = 5,
|
||||
VERSION_HEART_GOLD = 7,
|
||||
VERSION_SOUL_SILVER = 8,
|
||||
VERSION_DIAMOND = 10,
|
||||
VERSION_PEARL = 11,
|
||||
VERSION_PLATINUM = 12,
|
||||
VERSION_GAMECUBE = 15,
|
||||
};
|
||||
|
||||
enum LanguageId
|
||||
{
|
||||
LANGUAGE_JAPANESE = 1,
|
||||
LANGUAGE_ENGLISH = 2,
|
||||
LANGUAGE_FRENCH = 3,
|
||||
LANGUAGE_ITALIAN = 4,
|
||||
LANGUAGE_GERMAN = 5,
|
||||
// 6 goes unused but the theory is it was meant to be Korean
|
||||
LANGUAGE_SPANISH = 7,
|
||||
};
|
||||
|
||||
#define GAME_VERSION (VERSION_EMERALD)
|
||||
#define GAME_LANGUAGE (LANGUAGE_ENGLISH)
|
||||
|
||||
// capacities of various saveblock objects
|
||||
#define DAYCARE_MON_COUNT 2
|
||||
#define POKEBLOCKS_COUNT 40
|
||||
#define EVENT_OBJECTS_COUNT 16
|
||||
#define BERRY_TREES_COUNT 128
|
||||
#define FLAGS_COUNT 300
|
||||
#define VARS_COUNT 256
|
||||
#define MAIL_COUNT 16
|
||||
#define SECRET_BASES_COUNT 20
|
||||
#define TV_SHOWS_COUNT 25
|
||||
#define POKE_NEWS_COUNT 16
|
||||
#define PC_ITEMS_COUNT 50
|
||||
#define BAG_ITEMS_COUNT 30
|
||||
#define BAG_KEYITEMS_COUNT 30
|
||||
#define BAG_POKEBALLS_COUNT 16
|
||||
#define BAG_TMHM_COUNT 64
|
||||
#define BAG_BERRIES_COUNT 46
|
||||
#define EVENT_OBJECT_TEMPLATES_COUNT 64
|
||||
|
||||
#define PYRAMID_BAG_ITEMS_COUNT 10
|
||||
#define HALL_FACILITIES_COUNT 9 // 7 facilities for single mode + tower double mode + tower multi mode.
|
||||
|
||||
// string lengths
|
||||
#define ITEM_NAME_LENGTH 14
|
||||
#define POKEMON_NAME_LENGTH 10
|
||||
#define PLAYER_NAME_LENGTH 7
|
||||
#define MAIL_WORDS_COUNT 9
|
||||
|
||||
enum
|
||||
{
|
||||
MALE,
|
||||
FEMALE
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
OPTIONS_BUTTON_MODE_NORMAL,
|
||||
OPTIONS_BUTTON_MODE_LR,
|
||||
OPTIONS_BUTTON_MODE_L_EQUALS_A
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
OPTIONS_TEXT_SPEED_SLOW,
|
||||
OPTIONS_TEXT_SPEED_MID,
|
||||
OPTIONS_TEXT_SPEED_FAST
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
OPTIONS_SOUND_MONO,
|
||||
OPTIONS_SOUND_STEREO
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
OPTIONS_BATTLE_STYLE_SHIFT,
|
||||
OPTIONS_BATTLE_STYLE_SET
|
||||
};
|
||||
|
||||
struct Coords8
|
||||
{
|
||||
s8 x;
|
||||
|
||||
Reference in New Issue
Block a user