Help with a monopolizing mechanic?

I've been working with VXA for, like, a day now, so I know I should probably set my sights a bit lower right now, but this is something I've wanted to learn for future projects. I wanted to create a sort-of monopoly mechanic for use in RPGs, in which you would encounter certain business owners you could donate a set amount of money to for gradual returns. The returns would be automatically added to a chest (occasionally, on a different map) at certain timed intervals. I've tried messing around with control switches, but can't quite get it working. Is this something I would need to write a custom script for, or am I just doing it wrong?
You're going to need to use variables. There's a bunch of guides on it on Youtube that go over the basics of variables. It might look a bit complicated at first, but just practice with it enough, and it won't be so difficult.
if you follow the link to the starting point tutorial in my signature, you'll find a link to the "variables guide". That is an Ace-game to teach the player about the different uses of variables, and you can open it to check how it was made.
If I understand you correctly, what you are asking for is basically the exact same thing as a Bank Interest System (see especially my responses in that thread), except that you will NOT want to add the amount of "principal" (initial investment) into the amount the player can get back.

So for example, if your initial investment is 100G, you would get 20G at each interval (by tracking the initial investment of 100 in a variable, and dividing it by - for example - 5, thus adding the result of 20 to a different variable that tracks how much you're allowed to withdraw), but you would never be able to get the 100G you invested back; only the interval payments.

As a bit of design advice, though, I don't think that Interest-type systems are good game mechanics for most RPGs. They allow the player to gain more money, and therefore more power (equips, consumables, etc.) by simply waiting. Waiting is not an engaging game mechanic, and a smarter type of system might be something like investing money into specific shops in order to unlock extra items that you can buy in that shop (like Tales of Xillia and others).
If I understand you correctly, what you are asking for is basically the exact same thing as a Bank Interest System (see especially my responses in that thread), except that you will NOT want to add the amount of "principal" (initial investment) into the amount the player can get back.

So for example, if your initial investment is 100G, you would get 20G at each interval (by tracking the initial investment of 100 in a variable, and dividing it by - for example - 5, thus adding the result of 20 to a different variable that tracks how much you're allowed to withdraw), but you would never be able to get the 100G you invested back; only the interval payments.

As a bit of design advice, though, I don't think that Interest-type systems are good game mechanics for most RPGs. They allow the player to gain more money, and therefore more power (equips, consumables, etc.) by simply waiting. Waiting is not an engaging game mechanic, and a smarter type of system might be something like investing money into specific shops in order to unlock extra items that you can buy in that shop (like Tales of Xillia and others).
Yeah, I didn't want it to rely on actual in-game time or map transfers or anything. I'm planning to tie it into main progression in some way. Nothing that can be easily manipulated.
if you follow the link to the starting point tutorial in my signature, you'll find a link to the "variables guide". That is an Ace-game to teach the player about the different uses of variables, and you can open it to check how it was made.
Thanks! I'll read through it! 🙂
You're going to need to use variables. There's a bunch of guides on it on Youtube that go over the basics of variables. It might look a bit complicated at first, but just practice with it enough, and it won't be so difficult.
Yeah I tried using variables for this a bit, but I couldn't get it working right. XD I'll look more into them. Thanks! 🙂
Yeah, I didn't want it to rely on actual in-game time or map transfers or anything. I'm planning to tie it into main progression in some way. Nothing that can be easily manipulated.

Yeah, that's definitely better. I still think it's not a particularly engaging mechanic to go back to shops/chests to collect money that you know is coming in, but it's not bad, either.

Your best bet for implementation would be a Common Event with Trigger set to 'None' (it must be explicitly called). When the player invests money in a shop, add to a variable that specifically tracks the money invested in that shop (this would be in an event of its own, not the Common Event). Every time you reach a "checkpoint" for progress in the game where you want the investments to pay off, call the Common Event. For example, if the player invests 1000G into Shop #1, Variable #21 can equal 1000. If the player invests another 500G at some point, Variable #21 becomes 1500.
  • Inside the Common Event, for each variable that tracks the amount invested in a shop, copy that into a second variable that tracks how much interest (investment payoff) you gain this period for that shop, and then divide by 5 or whatever number is fair (or even a random number within a range for slightly random amounts of payoff). So Variable #22 will be set to the value of Var #21 (which is 1500), then Var #22 (NOT Var #21) will be divided by 5 to 300.
  • Then, add that second variable to a third variable that tracks how much interest you have gained in total since the last time you visited the treasure chest to collect your "interest". Do that for each shop, meaning each shop you can invest in will require three different variables. So the first time this runs, Var #23 will go from 0 to 300, and if the player still hasn't collected by the second time it runs, Var #23 will become 600.
  • Finally, when the player goes to a chest to collect their interest, give them Gold equal to the amount currently stored in the third ("in total") variable for that shop, and then reset that third variable to 0. So the player would receive 600G for 2 periods of investment when they check the chest, and then Var #23 will become 0.
I hope this makes sense - if not, read the tutorials Andar linked and just play around a little with manipulating Variables in events.
Yeah, that's definitely better. I still think it's not a particularly engaging mechanic to go back to shops/chests to collect money that you know is coming in, but it's not bad, either.

Your best bet for implementation would be a Common Event with Trigger set to 'None' (it must be explicitly called). When the player invests money in a shop, add to a variable that specifically tracks the money invested in that shop (this would be in an event of its own, not the Common Event). Every time you reach a "checkpoint" for progress in the game where you want the investments to pay off, call the Common Event. For example, if the player invests 1000G into Shop #1, Variable #21 can equal 1000. If the player invests another 500G at some point, Variable #21 becomes 1500.
  • Inside the Common Event, for each variable that tracks the amount invested in a shop, copy that into a second variable that tracks how much interest (investment payoff) you gain this period for that shop, and then divide by 5 or whatever number is fair (or even a random number within a range for slightly random amounts of payoff). So Variable #22 will be set to the value of Var #21 (which is 1500), then Var #22 (NOT Var #21) will be divided by 5 to 300.
  • Then, add that second variable to a third variable that tracks how much interest you have gained in total since the last time you visited the treasure chest to collect your "interest". Do that for each shop, meaning each shop you can invest in will require three different variables. So the first time this runs, Var #23 will go from 0 to 300, and if the player still hasn't collected by the second time it runs, Var #23 will become 600.
  • Finally, when the player goes to a chest to collect their interest, give them Gold equal to the amount currently stored in the third ("in total") variable for that shop, and then reset that third variable to 0. So the player would receive 600G for 2 periods of investment when they check the chest, and then Var #23 will become 0.
I hope this makes sense - if not, read the tutorials Andar linked and just play around a little with manipulating Variables in events.
Noob that I am, I do (kinda) follow this. XD Slightly. I think once I get a little more study time in, I'll be able to implement this. Thank you for outlining the entire process! I'd be completely hopeless otherwise.🤣

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-monopolizing-mechanic.105890/