20. Display the carried inventory
1. Add a List Box to Items Page, with ID carried_list.
2. Set Item Source to inventory.
3. Choose Current Active Player for Inventory Owner. For an NPC’s items, choose the specific-character mode and select that character definition.
4. Create a String variable selected_item, starting empty. Use it as Selected Item Variable.
5. Make sure the player actually owns at least one defined inventory item, then test the notebook in gameplay.
Figure 30. The inventory source uses the chosen owner’s carried items, rather than the Manual Items table.
Rows take their names and images from inventory definitions. Positive carried quantities appear in the list. Stack quantities greater than one are added to the display name, such as Bearing oil ×2.
The designer can show inventory definitions as sample rows. That does not mean a new player carries every item. Compare the preview with actual starting inventory and the items awarded during play.
