GUI, Inventory & Menu: Difference between revisions

Jump to navigation Jump to search
*>Monkey 05 06
No edit summary
(One intermediate revision by the same user not shown)
Line 95: Line 95:
''How would I go about creating my own custom inventory GUI? I don't much like the default AGS one. OR, I have a problem creating my own inventory GUI. HELP!''
''How would I go about creating my own custom inventory GUI? I don't much like the default AGS one. OR, I have a problem creating my own inventory GUI. HELP!''


Everything you need to know about custom inventory GUIs can be found in [http://www.bigbluecup.com/yabb/index.php?topic=10946.0 this thread].
Everything you need to know about custom inventory GUIs can be found in [http://www.adventuregamestudio.co.uk/forums/index.php?topic=10946.0 this thread].


==Inventory items don't show up==
==Inventory items don't show up==
Line 182: Line 182:
''I want an interaction to happen only when the player has an Inventory Item (like a key to open a door) OR something not to happen when the player has an Item. How do I do that?''
''I want an interaction to happen only when the player has an Inventory Item (like a key to open a door) OR something not to happen when the player has an Item. How do I do that?''


Simply use the [http://www.bigbluecup.com/manual/Character.InventoryQuantity.htm InventoryQuantity] property, e.g.:
Simply use the [http://www.adventuregamestudio.co.uk/manual/ags49.htm#character.inventoryquantity InventoryQuantity] property, e.g.:


   if (player.InventoryQuantity[iKey.ID] == 0)  
   if (player.InventoryQuantity[iKey.ID] == 0)  
64

edits

Navigation menu