Posted 12 October 2013 - 03:52 PM
I'm working on making a potion shop with computercraft. Right now I'm doing the interface. I'm using this code:
http://pastebin.com/aPteuSAP
And my button API with it:
http://pastebin.com/TmCR7bWX
Everything is working fine except for the part where you chose which potion you want. I'm experiencing something extremely odd and I can't seem to find out what is causing it. If you click on any of the potions that have 3 variations( normal, increased potency and increased duration) then it will show the menu where you chose the variant and then it will immediately proceed to the Order Screen, saying that you've selected "Increased Potency". While this is strange in itself, it is also very random. It will sometimes happen and sometimes not. Selecting the potions and going back in certain orders seems to sometimes fix it. I've absolutely no idea what is going on and if someone could take a look at my code and try to figure out what's wrong, that'd be great.
Help is appreciated!
Thanks! :D/>
http://pastebin.com/aPteuSAP
And my button API with it:
http://pastebin.com/TmCR7bWX
Everything is working fine except for the part where you chose which potion you want. I'm experiencing something extremely odd and I can't seem to find out what is causing it. If you click on any of the potions that have 3 variations( normal, increased potency and increased duration) then it will show the menu where you chose the variant and then it will immediately proceed to the Order Screen, saying that you've selected "Increased Potency". While this is strange in itself, it is also very random. It will sometimes happen and sometimes not. Selecting the potions and going back in certain orders seems to sometimes fix it. I've absolutely no idea what is going on and if someone could take a look at my code and try to figure out what's wrong, that'd be great.
Help is appreciated!
Thanks! :D/>