Hi, there is "enable_task" command but not "disable_task". This command could have been useful for controlling nuclear ability of AI natios. Just an idea..
Upvote
0
Hi, there is "enable_task" command but not "disable_task". This command could have been useful for controlling nuclear ability of AI natios. Just an idea..
You can disable in the tech tree via changing the tech that enables nuke usage to
command = { trigger = { not = { local_flag = THISTASKDISABLED } } type = enable_task which = BLAH }
and setting the task to disabled by default in misc.txt. Then when you want to disable it via event, simply use
command = { type = local_setflag which = THISTASKDISABLED }
and when you want to re-enable it again:
command = { type = local_clrflag which = THISTASKDISABLED }