MV How to get Unpropro's Casino Slot to trigger its gameplay

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:
Once again, figured it out and it was something small and embarassing. The issue was that I included the word "cost" in the plugin command rather than the amount subtracted from the total number of chips. However, if anyone knows how to convert chips into gold automatically upon exiting the slots, that would be much appreciated.

EDIT: Nevermind, I figured out how to have an NPC exchange the chips for gold/cash and reset the stored chip value to zero. I'm going to try to have more faith in myself from now on.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-unpropros-casino-slot-to-trigger-its-gameplay.181244/