pokeemerald/data/maps/ContestHall/scripts.inc

451 lines
16 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
ContestHall_MapScripts::
2019-11-11 03:54:00 +01:00
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, ContestHall_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, ContestHall_OnFrame
map_script MAP_SCRIPT_ON_TRANSITION, ContestHall_OnTransition
map_script MAP_SCRIPT_ON_RESUME, ContestHall_OnResume
map_script MAP_SCRIPT_ON_RETURN_TO_FIELD, ContestHall_OnReturn
.byte 0
2021-07-20 21:18:31 +02:00
ContestHall_OnReturn:
2019-11-11 03:54:00 +01:00
special LoadLinkContestPlayerPalettes
end
2021-07-20 21:18:31 +02:00
ContestHall_OnTransition:
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_ReadyContestMusic
setvar VAR_TEMP_0, 1
call ContestHall_EventScript_AddRandomAudienceMembers
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_ReadyContestMusic::
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_TryWaitForLink
special GetContestMultiplayerId
call_if_eq VAR_RESULT, 0, ContestHall_EventScript_SaveContestMusicPlayer1
call_if_eq VAR_RESULT, 1, ContestHall_EventScript_SaveContestMusicPlayer2
call_if_eq VAR_RESULT, 2, ContestHall_EventScript_SaveContestMusicPlayer3
call_if_eq VAR_RESULT, 3, ContestHall_EventScript_SaveContestMusicPlayer4
call_if_eq VAR_RESULT, 4, ContestHall_EventScript_SaveContestMusic
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SaveContestMusicPlayer1::
2020-08-21 00:02:00 +02:00
savebgm MUS_LINK_CONTEST_P1
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SaveContestMusicPlayer2::
2020-08-21 00:02:00 +02:00
savebgm MUS_LINK_CONTEST_P2
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SaveContestMusicPlayer3::
2020-08-21 00:02:00 +02:00
savebgm MUS_LINK_CONTEST_P3
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SaveContestMusicPlayer4::
2020-08-21 00:02:00 +02:00
savebgm MUS_LINK_CONTEST_P4
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SaveContestMusic::
2020-08-21 00:02:00 +02:00
savebgm MUS_CONTEST
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_OnResume:
call_if_eq VAR_TEMP_9, 1, ContestHall_EventScript_ReShowAudience
2019-11-11 03:54:00 +01:00
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_ReShowAudience::
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_CreateAudience
return
2021-07-20 21:18:31 +02:00
ContestHall_OnFrame:
2019-11-11 03:54:00 +01:00
map_script_2 VAR_CONTEST_HALL_STATE, 1, ContestHall_EventScript_Contest
.2byte 0
2021-07-20 21:18:31 +02:00
ContestHall_OnWarp:
2019-11-11 03:54:00 +01:00
map_script_2 VAR_CONTEST_HALL_STATE, 1, ContestHall_EventScript_SetContestObjects
.2byte 0
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_Contest::
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_DoContest
call ContestHall_EventScript_SetExitWarp
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetContestObjects::
2019-11-11 03:54:00 +01:00
special LoadLinkContestPlayerPalettes
hideobjectat OBJ_EVENT_ID_PLAYER, MAP_LITTLEROOT_TOWN
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_CreateAudience
end
@ There are 8 audience member object events, 7 of which are given random gfx below (the 8th is the Artist)
2019-11-11 03:54:00 +01:00
@ The rest of the audience is created statically by ContestHall_EventScript_CreateAudience
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_AddRandomAudienceMembers::
2019-11-11 03:54:00 +01:00
call ContestHall_EventScript_GetRandomAudienceGfxId
call ContestHall_EventScript_SetRandomAudienceGfx
goto_if_lt VAR_TEMP_0, 8, ContestHall_EventScript_AddRandomAudienceMembers
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudienceGfx::
2019-11-11 03:54:00 +01:00
switch VAR_TEMP_0
case 1, ContestHall_EventScript_SetRandomAudience1
case 2, ContestHall_EventScript_SetRandomAudience2
case 3, ContestHall_EventScript_SetRandomAudience3
case 4, ContestHall_EventScript_SetRandomAudience4
case 5, ContestHall_EventScript_SetRandomAudience5
case 6, ContestHall_EventScript_SetRandomAudience6
case 7, ContestHall_EventScript_SetRandomAudience7
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience1::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_4, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience2::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_5, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience3::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_6, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience4::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_7, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience5::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_8, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience6::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_9, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetRandomAudience7::
2019-11-11 03:54:00 +01:00
copyvar VAR_OBJ_GFX_ID_A, VAR_TEMP_1
addvar VAR_TEMP_0, 1
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_GetRandomAudienceGfxId::
2019-11-11 03:54:00 +01:00
setvar VAR_RESULT, 32
special GenerateContestRand
2019-11-11 03:54:00 +01:00
addvar VAR_RESULT, 1
switch VAR_RESULT
case 1, ContestHall_EventScript_RandomAudienceNinjaBoy
case 2, ContestHall_EventScript_RandomAudienceTwin
case 3, ContestHall_EventScript_RandomAudienceBoy1
case 4, ContestHall_EventScript_RandomAudienceGirl1
case 5, ContestHall_EventScript_RandomAudienceGirl2
case 6, ContestHall_EventScript_RandomAudienceLittleBoy
case 7, ContestHall_EventScript_RandomAudienceGirl
case 8, ContestHall_EventScript_RandomAudienceBoy3
case 9, ContestHall_EventScript_RandomAudienceGirl3
case 10, ContestHall_EventScript_RandomAudienceRichBoy
case 11, ContestHall_EventScript_RandomAudienceFatMan
case 12, ContestHall_EventScript_RandomAudiencePokefanF
case 13, ContestHall_EventScript_RandomAudienceMan1
case 14, ContestHall_EventScript_RandomAudienceWoman2
case 15, ContestHall_EventScript_RandomAudienceExpertM
case 16, ContestHall_EventScript_RandomAudienceExpertF
case 17, ContestHall_EventScript_RandomAudiencePokefanM
case 18, ContestHall_EventScript_RandomAudienceWoman4
case 19, ContestHall_EventScript_RandomAudienceCook
case 20, ContestHall_EventScript_RandomAudienceLass
case 21, ContestHall_EventScript_RandomAudienceOldWoman
case 22, ContestHall_EventScript_RandomAudienceCamper
case 23, ContestHall_EventScript_RandomAudiencePicnicker
case 24, ContestHall_EventScript_RandomAudienceMan3
case 25, ContestHall_EventScript_RandomAudienceWoman5
case 26, ContestHall_EventScript_RandomAudienceYoungster
case 27, ContestHall_EventScript_RandomAudienceBugCatcher
case 28, ContestHall_EventScript_RandomAudiencePsychicM
case 29, ContestHall_EventScript_RandomAudienceSchoolKidM
case 30, ContestHall_EventScript_RandomAudienceBlackBelt
case 31, ContestHall_EventScript_RandomAudienceBeauty
case 32, ContestHall_EventScript_RandomAudienceScientist1
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceNinjaBoy::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_NINJA_BOY
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceTwin::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_TWIN
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceBoy1::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_BOY_1
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceGirl1::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_GIRL_1
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceGirl2::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_GIRL_2
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceLittleBoy::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_LITTLE_BOY
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceGirl::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_LITTLE_GIRL
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceBoy3::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_BOY_3
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceGirl3::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_GIRL_3
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceRichBoy::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_RICH_BOY
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceFatMan::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_FAT_MAN
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudiencePokefanF::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_POKEFAN_F
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceMan1::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_MAN_1
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceWoman2::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_WOMAN_2
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceExpertM::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_EXPERT_M
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceExpertF::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_EXPERT_F
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudiencePokefanM::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_POKEFAN_M
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceWoman4::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_WOMAN_4
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceCook::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_COOK
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceLass::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_LASS
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceOldWoman::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_OLD_WOMAN
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceCamper::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_CAMPER
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudiencePicnicker::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_PICNICKER
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceMan3::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_MAN_3
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceWoman5::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_WOMAN_5
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceYoungster::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_YOUNGSTER
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceBugCatcher::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_BUG_CATCHER
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudiencePsychicM::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_PSYCHIC_M
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceSchoolKidM::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_SCHOOL_KID_M
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceBlackBelt::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_BLACK_BELT
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceBeauty::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_BEAUTY
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_RandomAudienceScientist1::
setvar VAR_TEMP_1, OBJ_EVENT_GFX_SCIENTIST_1
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateAudience::
2019-11-11 03:54:00 +01:00
specialvar VAR_RESULT, IsWirelessContest
goto_if_eq VAR_RESULT, TRUE, ContestHall_EventScript_CreateWirelessContestAudience
2019-11-11 03:54:00 +01:00
switch VAR_CONTEST_TYPE
case CONTEST_TYPE_NPC_NORMAL, ContestHall_EventScript_CreateNormalContestAudience
case CONTEST_TYPE_NPC_SUPER, ContestHall_EventScript_CreateSuperContestAudience
case CONTEST_TYPE_NPC_HYPER, ContestHall_EventScript_CreateHyperContestAudience
case CONTEST_TYPE_NPC_MASTER, ContestHall_EventScript_CreateMasterContestAudience
case CONTEST_TYPE_LINK, ContestHall_EventScript_CreateMasterContestAudience
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateNormalContestAudience::
createvobject OBJ_EVENT_GFX_NINJA_BOY, 20, 3, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 24, 11, 2, 3, DIR_SOUTH
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateSuperContestAudience::
createvobject OBJ_EVENT_GFX_BEAUTY, 0, 2, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MAN_5, 1, 2, 4, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_HIKER, 2, 2, 7, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 3, 2, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_NINJA_BOY, 10, 12, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_2, 11, 12, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_3, 12, 12, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 13, 12, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_LASS, 20, 3, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 24, 11, 2, 3, DIR_SOUTH
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateHyperContestAudience::
createvobject OBJ_EVENT_GFX_BEAUTY, 0, 2, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MAN_5, 1, 2, 4, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_HIKER, 2, 2, 7, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_GENTLEMAN, 3, 2, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_NINJA_BOY, 10, 12, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_2, 11, 12, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_3, 12, 12, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_BEAUTY, 13, 12, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_EXPERT_F, 20, 3, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_MAN_2, 20, 6, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_WOMAN_5, 20, 7, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 24, 8, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_GENTLEMAN, 24, 11, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_LITTLE_BOY, 25, 3, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_YOUNGSTER, 26, 4, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_FAT_MAN, 27, 5, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_HEX_MANIAC, 28, 9, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_SCHOOL_KID_M, 29, 10, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 30, 11, 9, 3, DIR_NORTH
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateMasterContestAudience::
createvobject OBJ_EVENT_GFX_BEAUTY, 0, 2, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MAN_5, 1, 2, 4, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_HIKER, 2, 2, 7, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 3, 2, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MANIAC, 4, 1, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_WOMAN_5, 6, 1, 5, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_WOMAN_4, 7, 1, 6, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_GENTLEMAN, 9, 1, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_NINJA_BOY, 10, 12, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_2, 11, 12, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_3, 12, 12, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_BEAUTY, 13, 12, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_FISHERMAN, 14, 13, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_RUNNING_TRIATHLETE_F, 15, 13, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_MAN_4, 17, 13, 6, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 18, 13, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_DEVON_EMPLOYEE, 19, 13, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_POKEFAN_M, 20, 3, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_CAMPER, 21, 6, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_MAN_3, 22, 7, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 24, 11, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SAILOR, 25, 3, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_YOUNGSTER, 26, 4, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_GENTLEMAN, 27, 5, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_HEX_MANIAC, 28, 9, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_SCHOOL_KID_M, 29, 10, 9, 3, DIR_NORTH
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 30, 11, 9, 3, DIR_NORTH
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_CreateWirelessContestAudience::
createvobject OBJ_EVENT_GFX_BEAUTY, 0, 2, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MAN_5, 1, 2, 4, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_HIKER, 2, 2, 7, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_LITTLE_GIRL, 3, 2, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_MANIAC, 4, 1, 3, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_WOMAN_5, 6, 1, 5, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_WOMAN_4, 7, 1, 6, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_GENTLEMAN, 9, 1, 8, 3, DIR_EAST
createvobject OBJ_EVENT_GFX_NINJA_BOY, 10, 12, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_2, 11, 12, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_WOMAN_3, 12, 12, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_BEAUTY, 13, 12, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_FISHERMAN, 14, 13, 3, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_RUNNING_TRIATHLETE_F, 15, 13, 4, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_MAN_4, 17, 13, 6, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_MART_EMPLOYEE, 18, 13, 7, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_DEVON_EMPLOYEE, 19, 13, 8, 3, DIR_WEST
createvobject OBJ_EVENT_GFX_POKEFAN_M, 20, 3, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_CAMPER, 21, 6, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_MAN_3, 22, 7, 2, 3, DIR_SOUTH
createvobject OBJ_EVENT_GFX_SCIENTIST_1, 24, 11, 2, 3, DIR_SOUTH
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarp::
2019-11-11 03:54:00 +01:00
special ClearLinkContestFlags
switch VAR_CONTEST_TYPE
case CONTEST_TYPE_NPC_NORMAL, ContestHall_EventScript_SetExitWarpNormalContest
case CONTEST_TYPE_NPC_SUPER, ContestHall_EventScript_SetExitWarpSuperContest
case CONTEST_TYPE_NPC_HYPER, ContestHall_EventScript_SetExitWarpHyperContest
case CONTEST_TYPE_NPC_MASTER, ContestHall_EventScript_SetExitWarpMasterContest
case CONTEST_TYPE_LINK, ContestHall_EventScript_SetExitWarpLinkContest
return
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarpNormalContest::
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 14, 4
2019-11-11 03:54:00 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarpSuperContest::
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 14, 4
2019-11-11 03:54:00 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarpHyperContest::
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 14, 4
2019-11-11 03:54:00 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarpMasterContest::
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 14, 4
2019-11-11 03:54:00 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
ContestHall_EventScript_SetExitWarpLinkContest::
warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 15, 4
2019-11-11 03:54:00 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
LilycoveCity_ContestLobby_EventScript_SetPlayerGfx::
2019-11-11 03:54:00 +01:00
checkplayergender
goto_if_eq VAR_RESULT, MALE, LilycoveCity_ContestLobby_EventScript_SetPlayerGfxBrendan
goto_if_eq VAR_RESULT, FEMALE, LilycoveCity_ContestLobby_EventScript_SetPlayerGfxMay
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_ContestLobby_EventScript_SetPlayerGfxBrendan::
setvar VAR_OBJ_GFX_ID_3, OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL
2019-11-11 03:54:00 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_ContestLobby_EventScript_SetPlayerGfxMay::
setvar VAR_OBJ_GFX_ID_3, OBJ_EVENT_GFX_RIVAL_MAY_NORMAL
2019-11-11 03:54:00 +01:00
return