07.02.2016, 23:16
Hi. I'm working on a dynamic dialog inventory system with a friend and we got stuck with something I'm not being able to solve.
When you type /inventory, you're supposed to get a list with the current items you're holding. It changes depending on the items. That's working fine.
However, if I have:
1. Cocaine
2. Hiking Bag
3. Marijuana
Number 1 and 2 work fine upon selection, but if I select item number 3, I'll get the option menu for Item 2, Hiking Bag.
I know what's wrong and why that's happening, but I have been breaking my back this weekend trying to go around it, but I haven't found a solution. Could anyone give me a hand with this?
http://pastebin.com/CXqwH58j
The problem starts at Line 74. I'm sure there is a better way to do what I'm trying to, but I wouldn't be posting here if I knew how to do it
Thanks for the attention and any help.
When you type /inventory, you're supposed to get a list with the current items you're holding. It changes depending on the items. That's working fine.
However, if I have:
1. Cocaine
2. Hiking Bag
3. Marijuana
Number 1 and 2 work fine upon selection, but if I select item number 3, I'll get the option menu for Item 2, Hiking Bag.
I know what's wrong and why that's happening, but I have been breaking my back this weekend trying to go around it, but I haven't found a solution. Could anyone give me a hand with this?
http://pastebin.com/CXqwH58j
The problem starts at Line 74. I'm sure there is a better way to do what I'm trying to, but I wouldn't be posting here if I knew how to do it
Thanks for the attention and any help.