Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:all-features:inventory [2019/05/21 20:01]
piyushpalawat99
gdevelop5:all-features:inventory [2021/11/22 23:06] (current)
Line 33: Line 33:
   - use the condition "Has an item" in order to check to see if an item is "owned"   - use the condition "Has an item" in order to check to see if an item is "owned"
   - display or hide the associated object on the screen    - display or hide the associated object on the screen 
-  - use the expression "Item count" (for example, `InventoryTools::Count("PlayerInventory", "Gold")`) to access to the count of a given item +  - use the expression "Item count" (for example, `InventoryTools::Count("PlayerInventory", "Gold")` **or now** `Inventory::Count("PlayerInventory", "Gold")`) to access the count of a given item 
   - use the "Item count" to set the text of a "Text" object that is displayed on the screen   - use the "Item count" to set the text of a "Text" object that is displayed on the screen