# Saving and Loading a Map

***

1. Load the schematics you want to be part of this map<br>
2. Run the command `tme save "Map Name"`
   * The positions of these schematics will be local to the room you are standing in.<br>
3. In the plugin config:
   * Edit either `waiting_for_players`, `round_started`, `decontamination_started`, `warhead_started`, or `warhead_detonated`.
   * Load maps with the argument `Load::MAPNAME`.
   * Unload maps with the argument `Unload::MAPNAME`.
   * You can also use `LoadIf::MAPNAME::IsLoaded/IsNotLoaded::MAPNAME2`. This loads `MAPNAME` if `MAPNAME2` is loaded or not loaded, depending on the condition.

Examples:

```yml
waiting_for_players:
- Load::pen
- Unload::pen
- LoadIf::pen::IsNotLoaded::nuke # if nuke isn't loaded, load pen
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thaumiel.gitbook.io/tme-docs/documentation/tutorials/plugin/saving-and-loading-a-map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
