I'm curious if it's possible to create a feature that Fable has, not sure if there is anyone here has played Fable but I'd like to do the whole buying a place and renting it to earn gold, which then to collect the gold you have to return to the place you are "renting" and retrieve it.
So how would I setup something like that? Is there something already like this?
I could use some ideas and genius minds to conjure something like this!
Edit: Can someone link me to a good stepping script or is there a better way to go about it without a script?
I haven't played Fable but I think you can do what you want with eventing, create an event where the player buys the place. Then have a common event that adds gold to a variable with however you want to add money (time, steps, other). Then finally another event where you need to collect the money that adds X (whatever variable you stored the gold amount in) gold to the player and then resets the variable to 0.
Can someone link me to a good stepping script or is there a better way to go about it without a script?
I wouldn't even worry about a common event. You know exactly when you can collect gold - when you return to the house - so just use variables to see how many steps have been made since the last time you did that.
When you rent the house out, set a variable to the number of steps, or the game time, or whatever you want to base your gold earned on. This variable is unique to the house - if you have two houses, you'll have two variables with different values. Do not use these variables for anything else.
When you return to the house, set a new variable to the number of steps, or the game time, etc. This variable is set-and-use which means it doesn't need to be retained between visits, so if you have two houses, you can use the same variable.
Then subtract the original variable from the new one, and calculate how much gold is earned. This can be the same variable as the one above.
Finally, reset the original variable to the current number of steps, or the game time, so you've got it ready for next time you come back.
The only time you'd want a common event that's running all the time is if you want to get your gold at set increments, rather than when you go back.
Example:
When you rent out house 1:
Control Variables [15 - House 1 Steps] = Game Data > Other > Steps
When you rent out house 2:
Control Variables [16 - House 2 Steps] = Game Data > Other > Steps
When you return to house 1 to collect rent:
Control Variables [17 - Reusable Variable] = Game Data > Other > Steps
Control Variables [17 - Reusable Variable] -= Variable [15 - House 1 Steps] (gives how many steps have been taken since you last rented or collected rent on house 1
Control Variables [17 - Reusable Variable] *= 2 (an example of what you might do if you were to earn 2 gold for every step)
Change Gold += Variable [17 - Reusable Variable]
Text: You received \v[17] gold for rent
Control Variables [15 - House 1 Steps] = Game Data > Other > Steps (to reset the original variable)
When you reutrn to house 2 to collect rent:
Control Variables [17 - Reusable Variable] = Game Data > Other > Steps
Control Variables [17 - Reusable Variable] -= Variable [16 - House 2 Steps] (gives how many steps have been taken since you last rented or collected rent on house 2
Control Variables [17 - Reusable Variable] *= 2 (an example of what you might do if you were to earn 2 gold for every step)
Change Gold += Variable [17 - Reusable Variable]
Text: You received \v[17] gold for rent
Control Variables [15 - House 2 Steps] = Game Data > Other > Steps (to reset the original variable)
All of these events are regular map events with Action Button trigger. The commands above may not be the only commands in the events (you probably have the first ones on an NPC who you're buying the house from, or renting it to).