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
Checkbox and traits issue
Re: Checkbox and traits issue
'ProductionTimeMultiplier' can be switched on and off using prerequisites: https://docs.openra.net/en/latest/relea ... multiplier
Does that cover your usecase?
Does that cover your usecase?
Re: Checkbox and traits issue
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.abcdefg30 wrote: ↑Mon Jun 06, 2022 10:12 pm'ProductionTimeMultiplier' can be switched on and off using prerequisites: https://docs.openra.net/en/latest/relea ... multiplier
Does that cover your usecase?
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
Yes, you could open a ticket at https://github.com/OpenRA/OpenRA/issues about making ClassicProductionQueue / ProductionQueue conditional.
Re: Checkbox and traits issue
Great, thanks for your help, I have completed the original task but will open ticket for the futureabcdefg30 wrote: ↑Sun Jun 12, 2022 2:54 pmYes, you could open a ticket at https://github.com/OpenRA/OpenRA/issues about making ClassicProductionQueue / ProductionQueue conditional.