|
286
|
__loadedroom = scr_get_room_by_idscr_get_room_by_id
function scr_get_room_ids()
{
if (!variable_global_exists("room_id_list"))
global.room_id_list = scr_get_room_list();
return global.room_id_list;
}
function scr_get_room_by_id(arg0)
{
var room_id = arg0;
var rooms = scr_get_room_ids();
if (room_id < 10000)
room_id += (global.chapter * 10000);
var room_index = 0;
for (var i = 0; i < array_length(rooms); i++)
{
if (rooms[i].room_id == room_id)
{
room_index = rooms[i].room_index;
break;
}
}
if (room_index == 0)
show_debug_message("*** ERROR: could not find room with id " + string(room_id));
return room_index;
}
function scr_get_id_by_room_index(arg0)
{
var room_index = arg0;
var rooms = scr_get_room_ids();
var room_id = room_gms_debug_failsafe;
for (var i = 0; i < array_length(rooms); i++)
{
if (rooms[i].room_index == room_index)
{
room_id = rooms[i].room_id;
break;
}
}
if (room_id == room_gms_debug_failsafe)
show_debug_message("*** ERROR: could not find room with index " + string(room_index));
return room_id;
}
function scr_room(arg0, arg1) constructor
{
room_index = arg0;
room_id = arg1;
if (room_index == 141)
show_debug_message(string(141) + " " + string(room_id));
}
function scr_get_room_list()
{
var idsarr = [new scr_room(room_krisroom, 50013), new scr_room(room_town_south, 50024), new scr_room(room_dw_castle_town, 50054), new scr_room(PLACE_MENU, 50075), new scr_room(room_dw_castle_tv, 50114), new scr_room(room_dw_garden_intro, 50122), new scr_room(room_dw_garden_floradinnencounter, 50124), new scr_room(room_dw_garden_hospital, 50125), new scr_room(room_dw_garden_enemyrush, 50131), new scr_room(room_dw_garden_diner, 50135), new scr_room(room_dw_garden_aqua, 50138), new scr_room(room_dw_garden_aquahole, 50143), new scr_room(room_dw_garden_aquaplatforming, 50145), new scr_room(room_dw_garden_cliffexit, 50146), new scr_room(room_dw_garden_aquadash, 50152), new scr_room(room_dw_cliff_dash_runner, 50161), new scr_room(room_dw_cliff_seth_miniboss, 50162), new scr_room(room_dw_cliff_shop, 50163), new scr_room(room_dw_cliff_sethaqua_battle, 50169), new scr_room(room_dw_cliff_verticalwind_post, 50170), new scr_room(room_dw_fcastle_cafe, 50181), new scr_room(room_dw_fcastle_foyer, 50182), new scr_room(room_dw_fcastle_post_party_jail, 50183), new scr_room(room_dw_fcastle_left_twodoors, 50187), new scr_room(room_dw_fcastle_dangerous_platforming, 50190), new scr_room(room_dw_fcastle_blueroom, 50191), new scr_room(room_dw_fcastle_onsen, 50193), new scr_room(room_dw_fcastle_second_diner, 50207), new scr_room(room_dw_fcastle_obscured_bullets, 50208), new scr_room(room_dw_fcastle_right_penultimate, 50210), new scr_room(room_dw_fcastle_right_endingscene, 50212), new scr_room(room_dw_fcastle_orange_gauntlet, 50217), new scr_room(room_dw_fcastle_top_staircase_1, 50225), new scr_room(room_dw_fcastle_top_entrance, 50228), new scr_room(room_dw_fcastle_green_checkpoint, 50230), new scr_room(room_dw_fcastle_final_save, 50231), new scr_room(room_dw_fcastle_pinkroom, 50236), new scr_room(room_dw_fcastle_top_ascent, 50248)];
if (scr_debug())
{
idsarr = [new scr_room(PLACE_CONTACT, 50012), new scr_room(room_krisroom, 50013), new scr_room(room_krishallway, 50014), new scr_room(room_torroom, 50015), new scr_room(room_torhouse, 50016), new scr_room(room_torbathroom, 50017), new scr_room(room_town_krisyard, 50018), new scr_room(room_town_northwest, 50019), new scr_room(room_town_north, 50020), new scr_room(room_beach, 50021), new scr_room(room_town_mid, 50022), new scr_room(room_town_apartments, 50023), new scr_room(room_town_south, 50024), new scr_room(room_town_school, 50025), new scr_room(room_town_church, 50026), new scr_room(room_graveyard, 50027), new scr_room(room_town_shelter, 50028), new scr_room(room_hospital_lobby, 50029), new scr_room(room_hospital_hallway, 50030), new scr_room(room_hospital_rudy, 50031), new scr_room(room_hospital_room2, 50032), new scr_room(room_diner, 50033), new scr_room(room_townhall, 50034), new scr_room(room_flowershop_1f, 50035), new scr_room(room_flowershop_2f, 50036), new scr_room(room_library, 50037), new scr_room(room_alphysalley, 50038), new scr_room(room_lw_computer_lab, 50039), new scr_room(room_lw_library_upstairs, 50040), new scr_room(room_lw_police, 50041), new scr_room(room_lw_conbini, 50042), new scr_room(room_lw_icee_pizza, 50043), new scr_room(room_torielclass, 50044), new scr_room(room_schoollobby, 50045), new scr_room(room_alphysclass, 50046), new scr_room(room_schooldoor, 50047), new scr_room(room_insidecloset, 50048), new scr_room(room_school_unusedroom, 50049), new scr_room(room_castle_tutorial, 50050), new scr_room(room_dw_castle_east_door, 50051), new scr_room(room_dw_castle_west_cliff, 50052), new scr_room(room_dw_castle_area_1, 50053), new scr_room(room_dw_castle_town, 50054), new scr_room(room_dw_ralsei_castle_front, 50055), new scr_room(room_dw_castle_restaurant, 50056), new scr_room(room_dw_castle_cafe, 50057), new scr_room(room_dw_castle_dojo, 50058), new scr_room(room_dw_ralsei_castle_1f, 50059), new scr_room(room_dw_ralsei_castle_2f, 50060), new scr_room(room_dw_ralsei_castle_3f, 50061), new scr_room(room_dw_castle_dungeon, 50062), new scr_room(room_dw_castle_rooms_kris, 50063), new scr_room(room_dw_castle_rooms_susie, 50064), new scr_room(room_dw_castle_rooms_ralsei, 50065), new scr_room(PLACE_DOG, 50066), new scr_room(room_legend, 50067), new scr_room(room_legend_neo, 50068), new scr_room(room_shop1, 50069), new scr_room(room_shop_music, 50070), new scr_room(room_gameover, 50071), new scr_room(PLACE_LOGO, 50072), new scr_room(PLACE_FAILURE, 50073), new scr_room(PLACE_NAMING_JIKKEN, 50074), new scr_room(PLACE_MENU, 50075), new scr_room(room_ed, 50076), new scr_room(room_empty, 50077), new scr_room(room_DARKempty, 50078), new scr_room(room_DARKbase_GMS2, 50079), new scr_room(room_cc_lancer, 50080), new scr_room(room_cc_clover, 50081), new scr_room(room_cc_fountain, 50082), new scr_room(PLACE_DOGCHECK2, 50083), new scr_room(room_debug_smallface_dark, 50084), new scr_room(room_debug_smallface, 50085), new scr_room(room_debug_choicer_dark, 50086), new scr_room(room_debug_choicer_light, 50087), new scr_room(room_debug_battleBalloon, 50088), new scr_room(room_overworldBulletEnemyTest, 50089), new scr_room(room_lerptest, 50090), new scr_room(room_bullettest, 50091), new scr_room(room_bullettest_new, 50092), new scr_room(room_animexampletest, 50093), new scr_room(rm_blank, 50094), new scr_room(room_climbtest, 50095), new scr_room(room_chapter_continue, 50096), new scr_room(room_towery_tester, 50098), new scr_room(room_animtest, 50099), new scr_room(PLACE_DOGCHECK_CH5, 50100), new scr_room(room_darkbulbTest, 50101), new scr_room(room_dw_fcastle_shadowplatformTest, 50102), new scr_room(room_plat_lab, 50103), new scr_room(room_lw_church_choir, 50104), new scr_room(room_lw_church_entrance, 50105), new scr_room(room_lw_church_main, 50106), new scr_room(room_lw_church_office, 50107), new scr_room(room_lw_noellehouse_dess, 50108), new scr_room(room_town_noellehouse, 50109), new scr_room(room_dw_rhythm, 50110), new scr_room(room_dw_rhythm_countdown, 50111), new scr_room(room_dw_rhythm_empty, 50112), new scr_room(room_rhythmgame_editor, 50113), new scr_room(room_dw_castle_tv, 50114), new scr_room(room_dw_castle_tv_rhythm, 50115), new scr_room(room_dw_castle_church_entrance, 50116), new scr_room(room_dw_castle_church_climb, 50117), new scr_room(room_dw_ralsei_castle_basketball, 50118), new scr_room(room_shop_ch5, 50119), new scr_room(room_dw_garden_meetflowery, 50120), new scr_room(room_dw_garden_video, 50121), new scr_room(room_dw_garden_intro, 50122), new scr_room(room_dw_garden_ralseicupboard, 50123), new scr_room(room_dw_garden_floradinnencounter, 50124), new scr_room(room_dw_garden_hospital, 50125), new scr_room(room_dw_garden_fishingspot, 50126), new scr_room(room_dw_garden_shearydodge, 50127), new scr_room(room_dw_garden_hopschef, 50128), new scr_room(room_dw_garden_platshortcut, 50129), new scr_room(room_dw_garden_riverchest, 50130), new scr_room(room_dw_garden_enemyrush, 50131), new scr_room(room_dw_garden_pedestal, 50132), new scr_room(room_dw_garden_mushrooms, 50133), new scr_room(room_dw_garden_flowerygardening, 50134), new scr_room(room_dw_garden_diner, 50135), new scr_room(room_dw_garden_starwalkerdash, 50136), new scr_room(room_dw_garden_hardpressureplates, 50137), new scr_room(room_dw_garden_aqua, 50138), new scr_room(room_dw_garden_finalplatforming, 50139), new scr_room(room_dw_garden_finalplatforming_right, 50140), new scr_room(room_dw_garden_wateringcan_aqua, 50141), new scr_room(room_dw_garden_aquadarkness, 50142), new scr_room(room_dw_garden_aquahole, 50143), new scr_room(room_dw_garden_aquashrine, 50144), new scr_room(room_dw_garden_aquaplatforming, 50145), new scr_room(room_dw_garden_cliffexit, 50146), new scr_room(room_dw_garden_susiechase, 50147), new scr_room(room_dw_garden_newdash, 50148), new scr_room(room_dw_garden_shearyguide, 50149), new scr_room(room_dw_pink_encounter, 50150), new scr_room(room_dw_garden_aquatransition, 50151), new scr_room(room_dw_garden_aquadash, 50152), new scr_room(room_dw_garden_aquahole_left, 50153), new scr_room(room_dw_garden_firstdash, 50154), new scr_room(room_dw_garden_aquadash_plat, 50155), new scr_room(room_dw_cliff_gardentransition_new, 50156), new scr_room(room_dw_cliff_climbrefresher, 50157), new scr_room(room_dw_cliff_cutdown_tutorial, 50158), new scr_room(room_dw_cliff_bunnyfarm, 50159), new scr_room(room_dw_cliff_silver_hammer, 50160), new scr_room(room_dw_cliff_dash_runner, 50161), new scr_room(room_dw_cliff_seth_miniboss, 50162), new scr_room(room_dw_cliff_shop, 50163), new scr_room(room_dw_cliff_netskieclimb, 50164), new scr_room(room_dw_cliff_finaldash, 50165), new scr_room(room_dw_cliff_yellowcave, 50166), new scr_room(room_dw_cliff_shicave, 50167), new scr_room(room_dw_cliff_verticalwind, 50168), new scr_room(room_dw_cliff_sethaqua_battle, 50169), new scr_room(room_dw_cliff_verticalwind_post, 50170), new scr_room(room_dw_cliff_netskieclimb_behind, 50171), new scr_room(room_dw_cliff_eastcliff, 50172), new scr_room(room_dw_cliff_bonuscombat, 50173), new scr_room(room_dw_cliff_twirlflowerplatforming, 50174), new scr_room(room_dw_cliff_kawkawdash, 50175), new scr_room(room_dw_cliff_precipice, 50176), new scr_room(room_dw_cliff_twirlflowerwind, 50177), new scr_room(room_dogplatforming, 50179), new scr_room(room_dw_fcastle_entrance, 50180), new scr_room(room_dw_fcastle_cafe, 50181), new scr_room(room_dw_fcastle_foyer, 50182), new scr_room(room_dw_fcastle_post_party_jail, 50183), new scr_room(room_dw_fcastle_shinobeetle_encounter, 50184), new scr_room(room_dw_fcastle_left_wing_floweryscene, 50185), new scr_room(room_dw_fcastle_bounce_1, 50186), new scr_room(room_dw_fcastle_left_twodoors, 50187), new scr_room(room_dw_fcastle_yellow_miniboss, 50188), new scr_room(room_dw_fcastle_sandtrap, 50189), new scr_room(room_dw_fcastle_dangerous_platforming, 50190), new scr_room(room_dw_fcastle_blueroom, 50191), new scr_room(room_dw_fcastle_yellowjail, 50192), new scr_room(room_dw_fcastle_onsen, 50193), new scr_room(room_dw_fcastle_left_penultimate, 50194), new scr_room(room_dw_flowery_tree, 50195), new scr_room(room_dw_fcastle_bounce_3, 50196), new scr_room(room_dw_fcastle_shinobeetle_3d, 50197), new scr_room(room_dw_fcastle_heldmushrooms, 50198), new scr_room(room_dw_fcastle_flowerydash, 50199), new scr_room(room_dw_fcastle_partyjail, 50200), new scr_room(room_dw_fcastle_terracotta_encounter, 50201), new scr_room(room_dw_fcastle_terracotta_bonus, 50202), new scr_room(room_dw_fcastle_fusumadodge, 50203), new scr_room(room_dw_fcastle_right_wing_floweryscene, 50204), new scr_room(room_dw_fcastle_orange_puppet_introduction, 50205), new scr_room(room_dw_fcastle_gloves_tower, 50206), new scr_room(room_dw_fcastle_second_diner, 50207), new scr_room(room_dw_fcastle_obscured_bullets, 50208), new scr_room(room_dw_fcastle_foxhunt, 50209), new scr_room(room_dw_fcastle_right_penultimate, 50210), new scr_room(room_dw_fcastle_green_orange_battle, 50211), new scr_room(room_dw_fcastle_right_endingscene, 50212), new scr_room(room_dw_fcastle_right_puzzle, 50213), new scr_room(room_dw_castle_music, 50214), new scr_room(room_man, 50215), new scr_room(room_dw_dogballoon, 50216), new scr_room(room_dw_fcastle_orange_gauntlet, 50217), new scr_room(room_dw_fcastle_sidepuzzle, 50218), new scr_room(room_dw_castle_tv_mike, 50219), new scr_room(room_dw_fcastle_zenlooker, 50220), new scr_room(room_dw_fcastle_trainroom, 50221), new scr_room(room_dw_post_flowery_battle, 50222), new scr_room(room_dw_fcastle_flowerclimb, 50223), new scr_room(room_dw_fcastle_top_intro, 50224), new scr_room(room_dw_fcastle_top_staircase_1, 50225), new scr_room(room_dw_fcastle_ultradash, 50226), new scr_room(room_dw_fcastle_yellowblue, 50227), new scr_room(room_dw_fcastle_top_entrance, 50228), new scr_room(room_dw_fcastle_top_staircase_2, 50229), new scr_room(room_dw_fcastle_green_checkpoint, 50230), new scr_room(room_dw_fcastle_final_save, 50231), new scr_room(room_dw_fcastle_flowery, 50232), new scr_room(room_dw_fcastle_seth_encounter, 50233), new scr_room(room_dw_fcastle_top_descent, 50234), new scr_room(room_dw_fcastle_top_pinkdoor, 50235), new scr_room(room_dw_fcastle_pinkroom, 50236), new scr_room(room_dw_fcastle_top_fountain, 50237), new scr_room(room_dw_post_fountain_close, 50238), new scr_room(room_dw_fcastle_pinkshop, 50239), new scr_room(room_dw_fcastle_foxhunt_terakota, 50240), new scr_room(room_dw_fcastle_foxhunt_socks, 50241), new scr_room(room_dw_fcastle_foxhunt_chaos, 50242), new scr_room(room_dw_fcastle_foxhunt_secret, 50243), new scr_room(room_dw_castle_tv_kikky, 50244), new scr_room(room_dw_fcastle_terracotta_puzzle, 50246), new scr_room(room_dw_fcastle_bromides, 50247), new scr_room(room_dw_fcastle_top_ascent, 50248), new scr_room(room_dw_fcastle_top_challenge, 50249)];
array_push(idsarr, new scr_room(room_animexampletest, 100002), new scr_room(room_darkbulbTest, 100004), new scr_room(room_dw_fcastle_shadowplatformTest, 100005));
}
return idsarr;
} (global.currentroom);
|