Using the method you described for money:
For money, go to the Inventory Manager and create an Inventory item called Money. Check Can carry multiple?, and if you've also got Carry on start? checked, you can specify how many units of currency you're carrying. To deduct currency, use the Inventory: Add or remove Action - when you set it up to remove Money, you'll be able to decide how much money to remove. And to check if you have enough money, use the Inventory: Check Action - when you select Money, you'll be able to query how much exactly the Player is carrying, and act accordingly.
Is it possible to set different icons based on the amount of a certain item a player is carrying? For instance, in MI2, there are these different sprites:
It would be handy if here:
If
Can carry multiple? is chosen, you could set a different icon for each range of amounts.
For instance, 1 could use that graphic, 2 could use the second and 3 the third, once you hit 4-8 you could use the forth graphic, then 8-19 could use the pen-ultimate graphic, and finally anything over and including 20 could use the last graphic.
This is really just a casual suggestion, for now though I expect the solution to having a different image for different amounts would be to either change the icon when some money is received by checking the amount and swapping the image, or using a money variable that is checked? I'm not sure using different items would work since the amount of money needs to remain consistent whenever and wherever it is collected?
Comments
But I can't get the item's image to change, the amount to say anything other than "1 coin" nor does the debug return anything except 1 if I keep picking the same hotspot up. If I change the "add or remove" action to "set amount?" and "Increase amount by:" the debug will always give that amount, for instance if I set it to increase amount by 2, the debug will always say 2 whenever I pick the same item up repeatedly. The images reflect this amount, however, so the script is working, and so is the labelling part.
As a test I tried "Place in separate slots" and the first item added is labelled "1 coin" but every subsequent slot is labelled "money" which is the default label. Is there any way I'm missing of increasing the objects count?
Hi Chris and zebbi - any chance one of you could refresh that pasteall link? It would be really handy for me right now ;-)
I believe this was it: