en:yaml:objets
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| en:yaml:objets [2026/10/20 22:11] – Mod?les sur_place, port?e des encadr?s et objets 4.17 cyrilfiesta | en:yaml:objets [2026/11/04 21:34] (Version actuelle) – Documentation 4.17 : objets, evenements et mise en page verifies cyrilfiesta | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| ====== Objects and Inventory (YAML) ====== | ====== Objects and Inventory (YAML) ====== | ||
| - | Objects declared | + | Declarations |
| Important: YAML objects do not support '' | Important: YAML objects do not support '' | ||
| Ligne 38: | Ligne 38: | ||
| ^ Field ^ Effect ^ | ^ Field ^ Effect ^ | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| | '' | | '' | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | | '' | ||
| | '' | | '' | ||
| | '' | | '' | ||
| Ligne 50: | Ligne 51: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| | '' | | '' | ||
| Ligne 78: | Ligne 79: | ||
| ===== How many copies can be held ===== | ===== How many copies can be held ===== | ||
| - | '' | + | '' |
| <code yaml> | <code yaml> | ||
| Ligne 194: | Ligne 195: | ||
| The effect changes the display name without changing the identifier or quantities. Saves retain it. Setting '' | The effect changes the display name without changing the identifier or quantities. Saves retain it. Setting '' | ||
| - | ===== Secret scenery | + | ===== Scenery |
| - | '' | + | '' |
| <code yaml> | <code yaml> | ||
| Ligne 206: | Ligne 207: | ||
| description: | description: | ||
| - name: empty_table | - name: empty_table | ||
| - | | + | |
| location: table | location: table | ||
| furniture_description: | furniture_description: | ||
| - name: statue_scenery | - name: statue_scenery | ||
| - | | + | |
| location: statue | location: statue | ||
| furniture_description: | furniture_description: | ||
| Ligne 218: | Ligne 219: | ||
| Place an empty-furniture entry **after** the ordinary objects on that furniture. The first object still present supplies its description; | Place an empty-furniture entry **after** the ordinary objects on that furniture. The first object still present supplies its description; | ||
| - | '' | + | '' |
| + | |||
| + | ===== Reversible items and commands (4.17) ===== | ||
| + | |||
| + | Taking an item deactivates one declared instance in its furniture. '' | ||
| + | |||
| + | Different items can share furniture. Inspecting furniture uses the first declaration with an item still present. Items are taken in declaration order; deposits fill free slots in reverse order. | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: stacks' | ||
| + | vars: | ||
| + | capacite: 2 | ||
| + | rooms: | ||
| + | - id: atelier | ||
| + | text: A chest and a table. | ||
| + | objects: | ||
| + | - name: piece | ||
| + | location: coffre | ||
| + | description: | ||
| + | inventory_limit: | ||
| + | - name: piece | ||
| + | location: coffre | ||
| + | description: | ||
| + | - name: cle | ||
| + | location: coffre | ||
| + | description: | ||
| + | - empty-furniture: | ||
| + | location: coffre | ||
| + | furniture_description: | ||
| + | choices: | ||
| + | - command: rester | ||
| + | button: Stay | ||
| + | to: atelier | ||
| + | </ | ||
| + | |||
| + | Here, '' | ||
| + | |||
| + | ===== Absent declarations, | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: activation' | ||
| + | rooms: | ||
| + | - id: atelier | ||
| + | text: A table, a chest and a box. | ||
| + | objects: | ||
| + | - name: cle | ||
| + | location: table | ||
| + | - name: cle | ||
| + | location: coffre | ||
| + | absent: true | ||
| + | - name: bille | ||
| + | location: boite | ||
| + | absent: true | ||
| + | actions: | ||
| + | - verb: ranger | ||
| + | target: all | ||
| + | button: Store the key | ||
| + | do: | ||
| + | object: cle | ||
| + | to: coffre | ||
| + | - verb: apparition | ||
| + | target: all | ||
| + | button: Reveal the marble | ||
| + | do: | ||
| + | object: bille | ||
| + | activate: boite | ||
| + | choices: | ||
| + | - command: rester | ||
| + | button: Stay | ||
| + | to: atelier | ||
| + | </ | ||
| + | |||
| + | After '' | ||
| + | |||
| + | ===== Inventory limit selection ===== | ||
| + | |||
| + | The first active declaration specifying a limit is used in the current room. If none specifies it, the last encountered limit is retained; otherwise the default is 1. A reference such as '' | ||
en/yaml/objets.1792527111.txt.gz · Dernière modification : de cyrilfiesta
