Context:
There's an NPC at the end of the game that you can dump all your leftover items onto, and he'll do a cheap conversion for money in exchange for all of the remaining items. (Money in this game is also an item, but he won't count those of course).
The conversion is this:
+1 (Money) for every item, no matter how valuable it was to other game outlets.
So basically, the way I did it was that the NPC would count (and increment) every single possible item through the variable in the screenshot called "How many items?". After which, you can choose deal or no deal.
If you choose deal, what I want to happen is for him to give you the (Money-item) that's equivalent to the variable he added from totaling up all the items in your inventory...I'm just not sure how to tell the game to that.
Any suggestions?
There's an NPC at the end of the game that you can dump all your leftover items onto, and he'll do a cheap conversion for money in exchange for all of the remaining items. (Money in this game is also an item, but he won't count those of course).
The conversion is this:
+1 (Money) for every item, no matter how valuable it was to other game outlets.
So basically, the way I did it was that the NPC would count (and increment) every single possible item through the variable in the screenshot called "How many items?". After which, you can choose deal or no deal.
If you choose deal, what I want to happen is for him to give you the (Money-item) that's equivalent to the variable he added from totaling up all the items in your inventory...I'm just not sure how to tell the game to that.
Any suggestions?