Hello, sorry if this is the wrong place to ask this!!!!
I am trying to come up with an item trading system in my game in which items are worth 1,2 or 3. For example to get a an item worth 2 you can trade it for another item worth 2 or two items worth 1.
What I was trying to do until now was: the player selects the item they want from the npc from dialogue choices, a Select Item option pops up and the player chooses an item from their inventory, they choose the quantity they want to trade from an Input number message and then conditional checks if trade is possible and how much player will recieve in return based on variables.
It....kinda works?? but is also very bare-bones and I ran into some problems that I didn´t know how to solve, so I figured I should ask for help. Here is what bugs me:
1- How could I combine the Select Item and Input number together? Something like the Sell option from the shop, where you choose both the item and the quantity on the same window instead of both windows appearing and closing one after the other.
2-How can I limit the Number Input so it only allows players to choose the item quantity they have in their inventory? (Again, like the Sell option from the shop.)
3-How could I make it so the player is able to choose more than one item? (Ex: for an item worth 3 they choose one worth 1 and other worth 2) I know it´s impossible to choose it on the same Select Item so it should involve the Loop function but couldn´t figure out how to do it because I am dumb.
If anyone could help me I would be very grateful. (Also, if there are any plugins or script calls that come to mind that could help me with this please tell me)
I am trying to come up with an item trading system in my game in which items are worth 1,2 or 3. For example to get a an item worth 2 you can trade it for another item worth 2 or two items worth 1.
What I was trying to do until now was: the player selects the item they want from the npc from dialogue choices, a Select Item option pops up and the player chooses an item from their inventory, they choose the quantity they want to trade from an Input number message and then conditional checks if trade is possible and how much player will recieve in return based on variables.
It....kinda works?? but is also very bare-bones and I ran into some problems that I didn´t know how to solve, so I figured I should ask for help. Here is what bugs me:
1- How could I combine the Select Item and Input number together? Something like the Sell option from the shop, where you choose both the item and the quantity on the same window instead of both windows appearing and closing one after the other.
2-How can I limit the Number Input so it only allows players to choose the item quantity they have in their inventory? (Again, like the Sell option from the shop.)
3-How could I make it so the player is able to choose more than one item? (Ex: for an item worth 3 they choose one worth 1 and other worth 2) I know it´s impossible to choose it on the same Select Item so it should involve the Loop function but couldn´t figure out how to do it because I am dumb.
If anyone could help me I would be very grateful. (Also, if there are any plugins or script calls that come to mind that could help me with this please tell me)