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.sceneis the number.e.nameis 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.nameisnilthere.
on("scene_entered", function(e)
if e.name == "player_house" then
log("home, in scene", e.scene)
end
end)| Scene | Name | What it is |
|---|---|---|
| 7 | town | The town, outdoors |
| 6 | villager_house | A villager's house |
| 20 | player_house | Your house, the small room |
| 21 | player_house | Your house, the medium room |
| 22 | player_house | Your house, the large room |
| 40 | player_house | Your house, the ground floor under an upstairs |
| 41 | player_house_upstairs | Your house, upstairs |
| 42 | player_house_basement | Your basement, under the small room |
| 43 | player_house_basement | Your basement, under the medium room |
| 44 | player_house_basement | Your basement, under the large room |
| 45 | player_house_basement | Your basement, under the two-floor house |
| 9 | nook_shop | Nook's Cranny |
| 23 | nook_shop | Nook 'n' Go |
| 24 | nook_shop | Nookway |
| 25 | nook_shop | Nookington's, first floor |
| 29 | nook_shop_upstairs | Nookington's, second floor |
| 46 | able_sisters | The Able Sisters' shop |
| 14 | post_office | The post office |
| 17 | police_station | The police station |
| 35 | museum | The museum, the entrance hall |
| 36 | museum_paintings | The museum, the paintings |
| 37 | museum_fossils | The museum, the fossils |
| 38 | museum_insects | The museum, the insects |
| 39 | museum_fish | The museum, the fish |
| 50 | lighthouse | The lighthouse |
| 12 | redd_tent | Crazy Redd's tent |
| 18 | katrina_tent | Katrina's tent |
| 31 | igloo | The igloo |
| 51 | camper_tent | The summer camper's tent |
| 47 | island_house | Your island cottage |
| 48 | island_villager_house | The islander's house |
| 52 | city | The City |
| 53 | barber_shop | The barber shop |
| 54 | flower_shop | The flower shop |
| 55 | dream_suite | The Dream Suite |