For example, I have the option for players to purchase and run their own shops. If I break it down into a simple functionality, let's say this happens:
Â
Someone buys a potion shop.
The potion shop automatically lets any other player come and pay 5 gold to buy a potion.
Â
Now ideally, how it would work, is when someone buys a potion it adds 5 to a global variable called shop1profit.
Â
Then, let's say when the owner of the shop goes to his chest in the back of the shop he collects all the gold the shop has earned thus far.
Â
Ideally it would simply add gold in the amount of shop1profit then set shop1profit to 0.
Â
Any chance of every being able to do this? Or compare variables to etc. ?
Question
Teppy
For example, I have the option for players to purchase and run their own shops. If I break it down into a simple functionality, let's say this happens:
Â
Someone buys a potion shop.
The potion shop automatically lets any other player come and pay 5 gold to buy a potion.
Â
Now ideally, how it would work, is when someone buys a potion it adds 5 to a global variable called shop1profit.
Â
Then, let's say when the owner of the shop goes to his chest in the back of the shop he collects all the gold the shop has earned thus far.
Â
Ideally it would simply add gold in the amount of shop1profit then set shop1profit to 0.
Â
Any chance of every being able to do this? Or compare variables to etc. ?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts