Use lua script to change prerequisites trait?
Posted: Sun Jun 06, 2021 7:39 pm
I am wanting to use a luna script to change the prerequisites trait of a ship yard.
A example of this would be to change prerequisites trait based on difficulty level.
A example in rules is:
SYRD:
Buildable:
Prerequisites: anypower
So if difficulty level is hard, the lua script would do the equivalent of.
SYRD:
Buildable:
Prerequisites: ~disabled
So how would I do this in lua script?
A example of this would be to change prerequisites trait based on difficulty level.
A example in rules is:
SYRD:
Buildable:
Prerequisites: anypower
So if difficulty level is hard, the lua script would do the equivalent of.
SYRD:
Buildable:
Prerequisites: ~disabled
So how would I do this in lua script?