Page 1 of 1

What's the console command to reset all techs?

Posted: Sat Sep 05, 2015 5:13 pm
by Peter34
I'm running a test game, and I want to enforce an all-over rest of all techs, so that they are all set to "not_researched".

How do I do that?

Re: What's the console command to reset all techs?

Posted: Sat Sep 05, 2015 6:08 pm
by prg

Re: What's the console command to reset all techs?

Posted: Sat Sep 05, 2015 7:12 pm
by Peter34
Thanks! To save others from having to click on the link:
/c for _,v in pairs(game.player.force.technologies) do v.researched=false end
(with the slash-c thing appended)

Re: What's the console command to reset all techs?

Posted: Sun Sep 06, 2015 11:48 am
by ssilk
Then you didn't read to the end:

Code: Select all

/c game.player.force.reset()