KvickaN
TH.net Regular
- Reaction score
- 24
Hi!
About 9 years since I last logged in to thehelper.net!
I lost most of my triggerskills since I was active here and I'm now in need of some assistance, probably basic stuff for you guys!
So:
I have 60 regions. In these regions I need 50 resources, 10 each of the 5 different resources that exist. So that leaves 10 regions without any resources.
Resources are units for the time being.
How would I go about generating this at the start of the map?
I know this is totally wrong, but it might help paint the picture to what I'm after:
My thought is to create a region array with the size: 60. Randomly assign the 60 different 60 regions to 60 randomly picked numbers in the array. Then spawn 10 random "Wheat resource" in 10 random regions and so on... Do I make any sense?
Help appreciated!
About 9 years since I last logged in to thehelper.net!
I lost most of my triggerskills since I was active here and I'm now in need of some assistance, probably basic stuff for you guys!
So:
I have 60 regions. In these regions I need 50 resources, 10 each of the 5 different resources that exist. So that leaves 10 regions without any resources.
Resources are units for the time being.
How would I go about generating this at the start of the map?
I know this is totally wrong, but it might help paint the picture to what I'm after:
My thought is to create a region array with the size: 60. Randomly assign the 60 different 60 regions to 60 randomly picked numbers in the array. Then spawn 10 random "Wheat resource" in 10 random regions and so on... Do I make any sense?
Help appreciated!