I need a build system like what is in this map.
You have a set amount of items on the ground, that you cast a build ability on, when you do so, if you have the right amount, it creates a structure that needs that amount. If you do not, it leaves your resources.
Now the difficult part about this is, in that map, the pathing doesn't get taken into consideration, so if the pathing of the building is too big for the area it is in, it takes the resources, and doesn't build it. I don't know if you can get rid of this problem, but I would appreciate it if you could make that said system.