Sorry, I'm really struggling, I did a lot of Javascript for my first game a few years ago and haven't touched it since so I apologize that this is remedial. I'm having difficulty triggering Unpropro's casino slot to play a game, I've changed some lines of the JS file to reflect the cost of the slot game in UPP_CasinoSlot and also changed the message that appears when using the "chip shop" from UPP'sUPP_CasinoCore. Other than that I haven't really touched any of the js files. I go up to the slot machine, It correctly states that the cost of the game is 20 and gives a yes or no option, however, even after purchasing chips I get an error sound that does not allow me to continue. I'm under the impression it's not subtracting from the chip total even though in the same Slot UI it indicates correctly the amount of chips that I possess. The chips appear to be stored in console with $gameSystem.upp_data.chips = (chip amount) but I am unable to spend the chips to play a round of slots. Should I be tracking and subtracting a variable amount that is equal to $gameSystem.upp_data.chips every time I attempt to play a round of slots using conditional branches? And if so how and where do I include it in my event page to process that?
I've successfully added several other games to the casino area and I've been stuck on the slots issue for the better part of two days now.
Link to plugins:
I've successfully added several other games to the casino area and I've been stuck on the slots issue for the better part of two days now.
Link to plugins: