HOSTED_ITEMS =
{
  "acro_bike",
  "aurora_ticket",
  "balance_badge",
  "basement_key",
  "devon_goods",
  "devon_scope",
  "dynamo_badge",
  "eon_ticket",
  "feather_badge",
  "go_goggles",
  "good_rod",
  "harbor_mail",
  "heat_badge",
  "hm01_cut",
  "hm02_fly",
  "hm03_surf",
  "hm04_strength",
  "hm05_flash",
  "hm06_rock_smash",
  "hm07_waterfall",
  "hm08_dive",
  "itemfinder",
  "knuckle_badge",
  "letter",
  "mach_bike",
  "magma_emblem",
  "meteorite",
  "mind_badge",
  "mystic_ticket",
  "old_rod",
  "old_sea_map",
  "pokeblock_case",
  "rain_badge",
  "room_1_key",
  "room_2_key",
  "room_4_key",
  "room_6_key",
  "ss_ticket",
  "scanner",
  "stone_badge",
  "storage_key",
  "super_rod",
  "wailmer_pail",
  "meet_flower_shop_owner",
  "defeat_roxanne",
  "recover_devon_goods",
  "return_devon_goods",
  "talk_mr_stone",
  "defeat_brawly",
  "deliver_letter",
  "talk_to_dock",
  "rescue_stern",
  "defeat_wattson",
  "magma_steals_meteorite",
  "defeat_maxie_mt_chimney",
  "defeat_flannery",
  "defeat_norman",
  "defeat_shelly",
  "wingull_quest_1",
  "defeat_winona",
  "release_groudon",
  "aqua_steals_submarine",
  "defeat_matt",
  "wingull_quest_2",
  "defeat_tate_and_liza",
  "defeat_maxie_space_center",
  "steven_gives_dive",
  "release_kyogre",
  "defeat_juan",
  "undo_regi_seal",
  "defeat_champion",
  "defeat_steven"
}

function initialize_watch_items()
  for _, code in pairs(HOSTED_ITEMS) do
    ScriptHost:AddWatchForCode(code, code, toggle_item)
    ScriptHost:AddWatchForCode(code.."_hosted", code.."_hosted", toggle_hosted_item)
  end
  ScriptHost:AddWatchForCode("split_map", "split_map", toggle_split_map)
end