Hi! I need help with the following:
Variables:
I wanted to make a gui system that makes every unit in Population choose the job with the highest wage, if that job has any available positions left. All 3 Wage variables can be modified by the User anytime, so the units in Population should be able to change their job to another job with higher wage, if that job has any available positions.
I don't know how to properly set all the conditions, and the system never works as intended.
Variables:
- Population (Unit Array)
- Population Job (String Array), can be set to Lumberjack, Gold Miner, or Farmer
- Lumberjack Available Positions (Integer Array)
- Gold Miner Available Positions (Integer Array)
- Farmer Available Positions (Integer Array)
- Lumberjack Wage (Real Array)
- Gold Miner Wage (Real Array)
- Farmer Wage (Real Array)
I wanted to make a gui system that makes every unit in Population choose the job with the highest wage, if that job has any available positions left. All 3 Wage variables can be modified by the User anytime, so the units in Population should be able to change their job to another job with higher wage, if that job has any available positions.
I don't know how to properly set all the conditions, and the system never works as intended.