en:yaml:objets
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:yaml:objets [2026/05/03 18:29] – Add English wiki page using real engine keys cyrilfiesta | en:yaml:objets [2026/08/31 20:54] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | **Language: | + | **Language |
| ====== Objects and Inventory (YAML) ====== | ====== Objects and Inventory (YAML) ====== | ||
| Ligne 48: | Ligne 48: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| ===== Furniture, Object and Inventory ===== | ===== Furniture, Object and Inventory ===== | ||
| Ligne 55: | Ligne 58: | ||
| '' | '' | ||
| - | ===== Progressive Stock ===== | + | ===== Several copies of the same object |
| - | Declare | + | Declaring |
| <code yaml> | <code yaml> | ||
| Ligne 63: | Ligne 66: | ||
| - name: coin | - name: coin | ||
| location: chest | location: chest | ||
| - | | + | description: |
| - | | + | |
| - | pickup_text: | + | |
| - name: coin | - name: coin | ||
| - | location: | + | location: |
| - | furniture_description: | + | description: |
| - | description: | + | |
| - | pickup_text: | + | |
| </ | </ | ||
| + | |||
| + | The inventory groups them as '' | ||
| + | |||
| + | ===== How many copies can be held ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | objects: | ||
| + | - name: torch | ||
| + | location: wall | ||
| + | inventory-limit: | ||
| + | inventory-limit-message: | ||
| + | </ | ||
| + | |||
| + | Going over the limit is a normal narrative answer, not an error: the engine states how many copies are already held and what the limit is, then leaves the commands available. The two optional messages accept the usual text processing, including '' | ||
| ===== Object Conditions ===== | ===== Object Conditions ===== | ||
| Ligne 81: | Ligne 96: | ||
| if: " | if: " | ||
| </ | </ | ||
| + | |||
| + | ===== Quantity conditions ===== | ||
| + | |||
| + | A structured condition compares the number of copies held. | ||
| + | |||
| + | <code yaml> | ||
| + | events: | ||
| + | - if: | ||
| + | object: coin | ||
| + | quantity: 3 | ||
| + | operator: "> | ||
| + | text: "You have enough coins to pay the ferryman." | ||
| + | </ | ||
| + | |||
| + | The editor offers this setting in its condition builder. | ||
| ===== Add or Remove an Object with do: ===== | ===== Add or Remove an Object with do: ===== | ||
| Ligne 110: | Ligne 140: | ||
| '' | '' | ||
| + | |||
| + | Clicking an object in the inventory automatically runs '' | ||
| + | |||
| + | ===== See also ===== | ||
| + | |||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
en/yaml/objets.1777825785.txt.gz · Dernière modification : de cyrilfiesta
