Page 1 of 1
Checkbox and traits issue
Posted: Mon Jun 06, 2022 3:34 pm
by melons
Hi @abcdefg30 + all
With a check box I want to modify the ClassicProductionQueue, however there isn't a 'requirescondition' option for this trait, any idea how I would go about this one
---
Player:
ClassicProductionQueue@Building:
BuildTimeSpeedReduction: 100, 75, 50, 40, 30, 20, 15, 10
---
If I was able to include a yaml file if checkbox is ticked that would work but I can't work out how to do that in YAML or if its possible in LUA
Thanks
Re: Checkbox and traits issue
Posted: Mon Jun 06, 2022 10:12 pm
by abcdefg30
'ProductionTimeMultiplier' can be switched on and off using prerequisites:
https://docs.openra.net/en/latest/relea ... multiplier
Does that cover your usecase?
Re: Checkbox and traits issue
Posted: Thu Jun 09, 2022 9:17 pm
by melons
Thanks for the reply, currently ClassicProductionQueue and BuildTimeSpeedReduction in 12 lines would reduce building time to every building and unit produced which is what I wanted to do.
I can use the ProductionTimeMultiplier but I think would need to then apply it to every building and units individually rather than this, unless I am missing something
Is there a way I can request that Perquisite is added to the ClassicProductionQueue as it would be helpful incase I can't figure this out easily
Re: Checkbox and traits issue
Posted: Sun Jun 12, 2022 2:54 pm
by abcdefg30
melons wrote: ↑Thu Jun 09, 2022 9:17 pm
Is there a way I can request that Perquisite is added to the ClassicProductionQueue as it would be helpful incase I can't figure this out easily
Yes, you could open a ticket at
https://github.com/OpenRA/OpenRA/issues about making ClassicProductionQueue / ProductionQueue conditional.
Re: Checkbox and traits issue
Posted: Tue Jun 14, 2022 11:30 am
by melons
abcdefg30 wrote: ↑Sun Jun 12, 2022 2:54 pm
melons wrote: ↑Thu Jun 09, 2022 9:17 pm
Is there a way I can request that Perquisite is added to the ClassicProductionQueue as it would be helpful incase I can't figure this out easily
Yes, you could open a ticket at
https://github.com/OpenRA/OpenRA/issues about making ClassicProductionQueue / ProductionQueue conditional.
Great, thanks for your help, I have completed the original task but will open ticket for the future