GUI, Inventory & Menu: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 19: Line 19:
''How can I add money into my game? You know, like the character carries around an inventory item that is a coin, and it keeps count of how much money he has...and...er...you know what I mean...! And what about having multiple inventory items! HUH!?''
''How can I add money into my game? You know, like the character carries around an inventory item that is a coin, and it keeps count of how much money he has...and...er...you know what I mean...! And what about having multiple inventory items! HUH!?''


Easy. The character's global inventory variables (such as '''player.inv[34]''', or '''cPlayer.InventoryQuantity[iMoney.ID]''' for V2.7 and newer) are integers and can be used to keep track of how many items (or, in this case, money) the character has.
Easy. The character's global inventory variables (such as '''player.inv[34]''', or '''player.InventoryQuantity[iMoney.ID]''' for V2.7 and newer) are integers and can be used to keep track of how many items (or, in this case, money) the character has.


==Adding score/hotspot info to the big grey status bar==
==Adding score/hotspot info to the big grey status bar==