Idle profits

Is there a plugin or command combination that will passively add gold to the players gold amount when a switch is activated?

Any ideas on a landlord system sorta like in fable 2&3?

I am not a complete noob when it comes to RPG Maker but I am weak on JS.

Thank you RPG Maker Fam, I've been a member for two years and this is my first post 😅
I played around a little with eventing it. I said an object to turn on a switch. That switch triggered a common event. I set the common event to parallel. In that event I put in a Wait - you can make this as long as you want. Then had it add the gold.

The parallel setting will keep it running. You can also make the gold amount random by setting a variable to a random number first, then changing the gold equal to that amount.
I played around a little with eventing it. I said an object to turn on a switch. That switch triggered a common event. I set the common event to parallel. In that event I put in a Wait - you can make this as long as you want. Then had it add the gold.

The parallel setting will keep it running. You can also make the gold amount random by setting a variable to a random number first, then changing the gold equal to that amount.

That works perfectly that also opens other possibilities, thank you.
Any suggestions on a landlord/renting system?

Also is there a way I can set a switch to activate when a player reaches a certain amount of gold?
I've never played those games, so I have no idea what the landlord system is like. It's always best to describe in at least some detail, the system you are wanting, as not everyone here has played the games being referenced, but might still have suggestions or solutions anyway.

As for activating a switch, you can simply add a conditional branch check in after the gold change. If the gold is a certain amount, the switch turns on. If not, nothing happens and the event keeps looping. The only issue with this, is that the conditional branch can only check if the gold is greater than or equal to a certain amount, not just equal to. That means that once it reaches that point, the loop will continue to turn the switch on. That may not be that big of a deal, but I'm not sure how it would effect things like lag and such. It would also make it fairly impossible to turn that switch off again.

So, you may need to have it end the common event once that switch in the conditional branch is turned on. I think you could do this by also turning off the switch for the common event. Of course, if you still want to add gold, you would need to make a second common event to run that, seeing as you can't have multiple pages in common events.

Original thread: https://forums.rpgmakerweb.com/threads/idle-profits.85816/