- Joined
- Sep 25, 2013
- Messages
- 717
So i wanted to add another resource to my rts map. I know Warcraft only has gold and lumber (and food). Gold is being used for basic units, lumber for more elite units and upgrades, and food for unit limiting. I want to add stone or something like that, similar to age of empires. I know a basic way to do this but its crude.
My way would be to create a bunch of stone nodes which are actually neutral hostile structures throughout the map that only workers can attack because they will be considered debris or something. Then, when you destroy one you gain a stone point on a leaderboard. If you want to build a structure that requires stone a trigger will check how much stone you have a determine whether are not you can start building it.
The trouble i have is that if you cancel the unit or structure i don't know a way to make it so you get that much stone back. So instead i make so the unit is built in 1 second so you have no time to cancel it.
Is there a better way to do a system like this? I would really like to have another resource, it would add a lot of depth to my game.
Thanks for your time, and ideas are appreciated!
My way would be to create a bunch of stone nodes which are actually neutral hostile structures throughout the map that only workers can attack because they will be considered debris or something. Then, when you destroy one you gain a stone point on a leaderboard. If you want to build a structure that requires stone a trigger will check how much stone you have a determine whether are not you can start building it.
The trouble i have is that if you cancel the unit or structure i don't know a way to make it so you get that much stone back. So instead i make so the unit is built in 1 second so you have no time to cancel it.
Is there a better way to do a system like this? I would really like to have another resource, it would add a lot of depth to my game.
Thanks for your time, and ideas are appreciated!