I recently installed the slot machine plug-in by Takeya Kimura, which won't allow me to input any money. It doesn't display my current balance of gold. I'm very puzzled by this and am looking for some much-appreciated help. (I edited the text).
MV Slot machine plug-in issue
Javascript/Plugin SupportWhat do your plugin parameters look like? The first parameter asks for the id of the variable in which the coins are stored; it doesn't automatically get your current gold balance.
So, If I understand right inside the plug-in manager in the slot machine plug, the variable ID should be the player's gold. Unfortunately, I'm still new to this, but I assume a variable would have to be made so that the game can identify how much gold the player possesses. Once it is made, the number of that variable is input on the "Variable ID" spot.?
Yes, that's correct. The plug-in is probably set up this way in case the developer wants to have the amount that the player can bet in the slot machine game to be different from the player's gold.
Anyway, you can can use "Control Variables" in the event commands to set a variable to the player's gold. Since you're new, I've attached a screenshot showing how in the "Control Variables" screen, you can click on "Game Data" to open up more options and "Gold" is listed under "Other". In this example, I use Variable 11 to store the gold. So in the plugin parameters, I would just input 11 for the parameter "Variable Id".
Anyway, you can can use "Control Variables" in the event commands to set a variable to the player's gold. Since you're new, I've attached a screenshot showing how in the "Control Variables" screen, you can click on "Game Data" to open up more options and "Gold" is listed under "Other". In this example, I use Variable 11 to store the gold. So in the plugin parameters, I would just input 11 for the parameter "Variable Id".
This was very helpful! Thank you very much!!
Original thread: https://forums.rpgmakerweb.com/threads/slot-machine-plug-in-issue.150407/