Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions data/games/frlg/maps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Overlays today:
| `VermilionCity_Gym` | `tile` (4..6, 6..7) to `.`: the electric beams are off | `story_state` | `FLAG_FOUND_BOTH_VERMILION_GYM_SWITCHES`, after checkpoint 00.23 |
| `PokemonMansion_1F`, `_2F`, `_3F`, `_B1F` | `gate` open or closed: one operation per barrier (13 in all). The base and runtime tiles show each barrier as `G` (the base is the blockdata, the switch-off state); the effective map has it as the new game leaves it until the switch flag is set | `story_state` | `FLAG_POKEMON_MANSION_SWITCH_STATE`, set when a statue switch is pressed (a second press clears it) |
| `VictoryRoad_1F`, `_2F`, `_3F` | `gate` open: one operation per barrier half (2 per barrier, 8 in all). The base and runtime tiles show the barrier as `G` (the base is the blockdata, the open state); the effective map has it closed (the OnLoad script's new-game state) until a boulder has been pushed onto the switch's button. | `story_state` | `VAR_MAP_SCENE_VICTORY_ROAD_*` (a VAR, set to 100 by the switch) |
| `CinnabarIsland_Gym` | `gate` open: one operation per quiz door (6). The blockdata has each door shut, so the base and runtime tiles show its barrier row as `G` and the map's `gates` table names it (`opens_by: quiz_answer`); the effective map has it closed until its flag is set. | `story_state` | `FLAG_CINNABAR_GYM_QUIZ_<n>`, set by the right answer at quiz machine <n> |
| `SilphCo_2F` to `SilphCo_11F` | `gate` open: one operation per Card Key door (20 in all). The base and runtime tiles show the door as `G` and the map's `gates` table names it; the effective map has it closed (the OnLoad script's new-game state) until the flag is set. Evidence lists the opening script | `story_state` | `FLAG_SILPH_<n>F_DOOR[_<m>]`, set when the door is opened with the Card Key |

## Gates and story state
Expand All @@ -49,6 +50,8 @@ infers the gate states itself from the story state it records:
| Gate kind | Table entry | Story state a consumer records | Open when |
|---|---|---|---|
| Silph Co. Card Key door | `{"opens_by": "card_key_face_a", "flag": "FLAG_SILPH_5F_DOOR_1", "new_game": "closed"}` | the set of `FLAG_SILPH_<n>F_DOOR[_<m>]` flags: each is set the moment that door is opened with the Card Key | its flag is set |
| Cinnabar Gym quiz door | `{"opens_by": "quiz_answer", "flag": "FLAG_CINNABAR_GYM_QUIZ_1", "new_game": "closed"}` | the set of `FLAG_CINNABAR_GYM_QUIZ_<n>` flags: each is set by the right answer at quiz machine <n> (or beating its trainer); the gym's OnLoad keeps the door open while it is set | its flag is set |
| Cut tree | `{"opens_by": "cut", "flag": "FLAG_TEMP_13", "new_game": "closed"}`, id `cut_tree_<x>_<y>`, one tile; the tree object stays in `npcs` | the tree cut: Cut sets its hide flag, a temporary flag that every warp clears, so the tree grows back once the player leaves the map (a save keeps it cut) | it was cut since the last warp |

The Mansion's gates belong to one **switch**, `mansion` (the `switches` table:
the flag, `toggle`, the four `floors` that share it, and each statue's tile and
Expand Down
20 changes: 18 additions & 2 deletions data/games/frlg/maps/base/CeladonCity.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"####........###........#......###########...################",
"####........###........#......#########D#...##########..####",
"####...................#wwwwww####D####.#...##########..####",
".......................#wwwwww#.........................####",
".......................#wwwwww#.....................G...####",
".......................#wwwwww###S####S##...#S########..####",
"....................................................##..####",
"########............................................##..####",
Expand All @@ -54,7 +54,7 @@
"####................####................................####",
"####vvvvvv..vvvvvvvv####................................####",
"####................####################.##########.....####",
"####....................################.##########.....####",
"####....................################G##########.....####",
"####......................................##..........######",
"####......................................##################",
"############################################################",
Expand Down Expand Up @@ -135,6 +135,22 @@
{"side": "west", "to_map": "Route16", "offset": 10},
{"side": "east", "to_map": "Route7", "offset": 10}
],
"gates": {
"cut_tree_52_22": {
"tiles": [[52, 22]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_14"
},
"cut_tree_40_35": {
"tiles": [[40, 35]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
}
},
"hidden_items": [
{
"coord": [55, 20],
Expand Down
29 changes: 26 additions & 3 deletions data/games/frlg/maps/base/CeladonCity_Gym.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"#...........#",
"#..#######..#",
"##.##....#.##",
"#........#..#",
"#..#........#",
"#..G.....#..#",
"#..#.....G..#",
"#..#.....#..#",
"#..###.###..#",
"#..###G###..#",
"#..##...##..#",
"#..........##",
"##..........#",
Expand All @@ -38,6 +38,29 @@
],
"flag_sets": {},
"connections": [],
"gates": {
"cut_tree_6_8": {
"tiles": [[6, 8]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_12"
},
"cut_tree_3_5": {
"tiles": [[3, 5]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
},
"cut_tree_9_6": {
"tiles": [[9, 6]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_14"
}
},
"npcs": [
{
"name": "lass",
Expand Down
11 changes: 10 additions & 1 deletion data/games/frlg/maps/base/CeruleanCity.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"#######...............................#..#######",
"#######...............................#..#######",
"#######...............................#..#######",
"###################S######.############..#######",
"###################S######G############..#######",
"#######..................................#######",
"#######..................................#######",
"###############....#........#....###############",
Expand Down Expand Up @@ -129,6 +129,15 @@
{"side": "west", "to_map": "Route4", "offset": 10},
{"side": "east", "to_map": "Route9", "offset": 10}
],
"gates": {
"cut_tree_26_32": {
"tiles": [[26, 32]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
}
},
"hidden_items": [
{
"coord": [18, 7],
Expand Down
54 changes: 49 additions & 5 deletions data/games/frlg/maps/base/CinnabarIsland_Gym.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
"#.........###........#.......#",
"#.........###........#.......#",
"#####..##########..#######..##",
"##############################",
"#####GG##########GG#######GG##",
"###.......#####......###.....#",
"#.........###........#.......#",
"#.........###........#.......#",
"#.........###........#.......#",
"#.........###........#####...#",
"#.........#######..#######...#",
"#####..###############.......#",
"###############......#.......#",
"#####..##########GG###.......#",
"#####GG########......#.......#",
"###.......###........#.......#",
"#.........###........#.......#",
"#.........###........#.S...S.#",
"#.........###........#.......#",
"#..........#.........#.......#",
"#..........#.........#.......#",
"#..........G.........#.......#",
"#..........G.........#.......#",
"##############################"
],
"points": {"warp_1": [25, 23]},
Expand All @@ -43,6 +43,50 @@
],
"flag_sets": {},
"connections": [],
"gates": {
"door_1": {
"tiles": [[26, 9], [27, 9]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_1"
},
"door_2": {
"tiles": [[17, 9], [18, 9]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_2"
},
"door_3": {
"tiles": [[17, 16], [18, 16]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_3"
},
"door_4": {
"tiles": [[11, 22], [11, 23]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_4"
},
"door_5": {
"tiles": [[5, 17], [6, 17]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_5"
},
"door_6": {
"tiles": [[5, 9], [6, 9]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "quiz_answer",
"flag": "FLAG_CINNABAR_GYM_QUIZ_6"
}
},
"npcs": [
{
"name": "poke_maniac",
Expand Down
38 changes: 34 additions & 4 deletions data/games/frlg/maps/base/FuchsiaCity.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
"##...##############..#S...###..#############..##",
"##...#wwwww##.....#............#....##.....#..##",
"##...#wwwww##.....#............#....##.....#..##",
"##...##############....#######.#############..##",
"##...##############....#######G#############..##",
"##....................#.......................##",
"##....................#.......................##",
"##.......############.#...######.#########....##",
"##.......############G#...######.#########....##",
"##.......####.............######.#.......#....##",
"##.......SSD#............#######.#.......#....##",
"##.......................###D###.#########....##",
"##.......................###D###G#########....##",
"########.................#....................##",
".......###########.......#S...#S..............##",
".......##wwwwwww#........#......################",
".......##wwwwwww#........#......................",
"##.....##########........#......................",
"##.....#################.#......................",
"##.....#################G#......................",
"##.............................############.....",
"##.............................#...wwwwwww#...##",
"##.............................#...wwwwwww#..###",
Expand Down Expand Up @@ -121,6 +121,36 @@
{"side": "west", "to_map": "Route18", "offset": 10},
{"side": "east", "to_map": "Route15", "offset": 10}
],
"gates": {
"cut_tree_30_10": {
"tiles": [[30, 10]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_12"
},
"cut_tree_21_13": {
"tiles": [[21, 13]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
},
"cut_tree_32_16": {
"tiles": [[32, 16]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_14"
},
"cut_tree_24_22": {
"tiles": [[24, 22]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_15"
}
},
"hidden_items": [
{
"coord": [33, 26],
Expand Down
11 changes: 10 additions & 1 deletion data/games/frlg/maps/base/PewterCity.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"####........#################.........##########",
"####........#################.........##########",
"####........#############D######......##########",
"####........###########...............##########",
"####........###########.......G.......##########",
"#######.....#####.#####..#######........########",
"####vvv..vvvvvvv...Svvvvvvvvvvvvvvvvv...########",
"####....................................########",
Expand Down Expand Up @@ -73,6 +73,15 @@
{"side": "south", "to_map": "Route2", "offset": 12},
{"side": "east", "to_map": "Route3", "offset": 10}
],
"gates": {
"cut_tree_30_5": {
"tiles": [[30, 5]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_12"
}
},
"hidden_items": [
{
"coord": [6, 3],
Expand Down
38 changes: 34 additions & 4 deletions data/games/frlg/maps/base/Route10.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"################..#www##",
"################..#www##",
"########.#######..#www##",
"##.........SSD##..#www##",
"##........GSSD##..#www##",
"##..###S##........#www##",
"##................#www##",
"##........G.......#www##",
"##........#.......#www##",
"##................#www##",
"##........G.......#www##",
"##........#.......#www##",
"##................#www##",
"##........G.......#www##",
"##........#.......#www##",
"##................#www##",
"##................#www##",
Expand Down Expand Up @@ -183,6 +183,36 @@
{"side": "south", "to_map": "LavenderTown", "offset": 0},
{"side": "west", "to_map": "Route9", "offset": 0}
],
"gates": {
"cut_tree_10_20": {
"tiles": [[10, 20]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_12"
},
"cut_tree_10_22": {
"tiles": [[10, 22]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
},
"cut_tree_10_24": {
"tiles": [[10, 24]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_14"
},
"cut_tree_10_26": {
"tiles": [[10, 26]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_15"
}
},
"hidden_items": [
{
"coord": [10, 19],
Expand Down
20 changes: 18 additions & 2 deletions data/games/frlg/maps/base/Route12.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"########wwwwww..www##www",
"############ww..wwww##ww",
"########...#ww..wwww##ww",
"########........wwww##ww",
"########...G....wwww##ww",
"########..#.....wwww##ww",
"##########..ww......ww##",
"########....ww......ww##",
Expand All @@ -130,7 +130,7 @@
"########wwwwwwwwww..ww##",
"########wwwwwwwwww..ww##",
"##############......ww##",
"########............ww##",
"########....G.......ww##",
"########~~~~##ww..wwww##",
"########~~~~##ww..wwww##",
"########~~~~##ww..www##w",
Expand Down Expand Up @@ -275,6 +275,22 @@
{"side": "south", "to_map": "Route13", "offset": -48},
{"side": "west", "to_map": "Route11", "offset": 60}
],
"gates": {
"cut_tree_11_100": {
"tiles": [[11, 100]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_12"
},
"cut_tree_12_111": {
"tiles": [[12, 111]],
"open_glyph": ".",
"new_game": "closed",
"opens_by": "cut",
"flag": "FLAG_TEMP_13"
}
},
"hidden_items": [
{
"coord": [18, 57],
Expand Down
Loading
Loading