- Joined
- Jun 11, 2018
- Messages
- 177
Hello! So I have this problem that I just can't solve. I have searched and I have tried different things but nothing works.
My goal is that every time an item of a specific type is placed withing a building, it adds 10 gold to a periodic income for the player that owns the building.
Item: Skull
Building: Altar
There are two possible way to do this:
1) There is currently a periodic timer that shows when the players receive gold. Each skull can add 10 gold to the total amount of gold received whenever the timer finishes (every 120 seconds). So if the player has 4 skulls inside his altar, he'll get an additional 40 gold each time the timer finishes. Likewise, if a skull is taken out of the altar it has to subtract 10 gold from the total income.
2) The 10 gold generated per skull inside a temple can be unrelated to the timer. Preferably each skull shows a yellow "10" over the temple for every 120 seconds the skull has been inside the altar, or all the skulls inside the altar add to a total that is shown above the altar (If 6 skulls is inside the altar, "60" is shown in yellow above). When a skull is taken out of the altar it subtracts 10 gold in either way.
I hope you can understand what I write.
My goal is that every time an item of a specific type is placed withing a building, it adds 10 gold to a periodic income for the player that owns the building.
Item: Skull
Building: Altar
There are two possible way to do this:
1) There is currently a periodic timer that shows when the players receive gold. Each skull can add 10 gold to the total amount of gold received whenever the timer finishes (every 120 seconds). So if the player has 4 skulls inside his altar, he'll get an additional 40 gold each time the timer finishes. Likewise, if a skull is taken out of the altar it has to subtract 10 gold from the total income.
2) The 10 gold generated per skull inside a temple can be unrelated to the timer. Preferably each skull shows a yellow "10" over the temple for every 120 seconds the skull has been inside the altar, or all the skulls inside the altar add to a total that is shown above the altar (If 6 skulls is inside the altar, "60" is shown in yellow above). When a skull is taken out of the altar it subtracts 10 gold in either way.
I hope you can understand what I write.