Know which ID the carousel returns
Figure 23. After browsing to Map Room, Read current reports its caption, entry ID and image asset.
| Entry field | Normal Image Carousel | Inventory Image Carousel |
|---|---|---|
| id | The image asset ID. | The inventory item ID. |
| assetId | The image asset ID used for the card. | The item’s icon image asset ID. |
| caption | The asset’s assigned name. | The inventory item’s assigned name. |
For an inventory confirmation script, change the target GUI and carousel IDs to inventory_lab and carried_carousel. Use the returned id when looking up or acting on the inventory item; assetId identifies its picture.
Always handle an empty entries Array and an out-of-range index. After removing pictures or changing the inventory filter, the currently available entries can be different from the ones shown a moment earlier.
Do not store selected_index as a permanent story identity. Index 1 means the second current entry, and a changed source order can put another picture there. Store a stable entry ID when that identity matters.
