Scenes

Every scene a player can be in, with its number and name.

Every scene a player can be in, from the game's own scene table. Each has the number scene_entered hands a script (e.scene), its stable name (e.name) and a title in plain words. The full list is scenes.json.

  • e.scene is the number. e.name is the name in this list.
  • Several scenes can share one name. Every room size of your house is player_house. Test the name unless you need the exact room.
  • A scene that is not in this list has no name. e.name is nil there.
main.lua
on("scene_entered", function(e)
  if e.name == "player_house" then
    log("home, in scene", e.scene)
  end
end)
SceneNameWhat it is
7townThe town, outdoors
6villager_houseA villager's house
20player_houseYour house, the small room
21player_houseYour house, the medium room
22player_houseYour house, the large room
40player_houseYour house, the ground floor under an upstairs
41player_house_upstairsYour house, upstairs
42player_house_basementYour basement, under the small room
43player_house_basementYour basement, under the medium room
44player_house_basementYour basement, under the large room
45player_house_basementYour basement, under the two-floor house
9nook_shopNook's Cranny
23nook_shopNook 'n' Go
24nook_shopNookway
25nook_shopNookington's, first floor
29nook_shop_upstairsNookington's, second floor
46able_sistersThe Able Sisters' shop
14post_officeThe post office
17police_stationThe police station
35museumThe museum, the entrance hall
36museum_paintingsThe museum, the paintings
37museum_fossilsThe museum, the fossils
38museum_insectsThe museum, the insects
39museum_fishThe museum, the fish
50lighthouseThe lighthouse
12redd_tentCrazy Redd's tent
18katrina_tentKatrina's tent
31iglooThe igloo
51camper_tentThe summer camper's tent
47island_houseYour island cottage
48island_villager_houseThe islander's house
52cityThe City
53barber_shopThe barber shop
54flower_shopThe flower shop
55dream_suiteThe Dream Suite