MV How Can I get the Kadokawa Slot Machine to use player's money and giveout money to the player?

I'm new to RPG Maker as a whole, started working on my game and I wanted to use the Kadokawa Slot Machine plugin as a alternative way to make money in the game.
I was able to get the plugin itself to function but I cannot figure out how to tweak the plugin to use the player's money for the betting and then the player either losing or receiving money, depending on if they won or lost.

I am new to this so please be patient, I also do not know any Japaneese so I had a hard enough time translating the initial install instructions for the plugin.

Thanks 🙂
I think it uses an in-game variable for it's currency, right? You could use the variable's value and then increase the player's gold by the variable's amount, but I haven't used the plugin so I'm unsure if the value resets to zero before leaving the scene.

If that's the case, it'd have to have a script call added to the plugin wherever the winnings are paid out.

You'd use $gameParty.gainGold($gameVariables.value(variableId)); wherever it fits your needs best within the plugin's code. Change the variableID to whatever the ID is of the variable used by the plugin.
I think it uses an in-game variable for it's currency, right? You could use the variable's value and then increase the player's gold by the variable's amount, but I haven't used the plugin so I'm unsure if the value resets to zero before leaving the scene.

If that's the case, it'd have to have a script call added to the plugin wherever the winnings are paid out.

You'd use $gameParty.gainGold($gameVariables.value(variableId)); wherever it fits your needs best within the plugin's code. Change the variableID to whatever the ID is of the variable used by the plugin.
Thanks, I'll try that out as soon as I get some spare time and let you know how it goes.
Just want to point out that if the plugin itself doesn't reset the winnings you hold, you'd have to do that manually by setting that variable back to zero after paying out to the player.

You can do that either with events in the editor, or by using the script call $gameVariables.value(variableId) = 0; where the variableId is changed to the plugin's variable, as before.
Thanks, I'll try that out as soon as I get some spare time and let you know how it goes.
This seems to work for me. give it a shot.
This seems to work for me. give it a shot.
I don't see why a script call is necessary at all, using a variable is built right into the Change Gold event command.

1719593020772.png


Also, this thread is two months dead 😛
I don't see why a script call is necessary at all, using a variable is built right into the Change Gold event command.

View attachment 309797

Also, this thread is two months dead 😛
The thread didn't seem like it was resolved, and I had the same issue. the script call may be unnecessary after all so thx. My bad for necroposting, I thought it had to be like 6 months old for it to be considered old.

@TBV, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-get-the-kadokawa-slot-machine-to-use-players-money-and-giveout-money-to-the-player.168140/