Is there any way to editing technology tree in map editor?
Also, is any way to switching all alredy researched technologies to unresearched?
Instead of that -
Code: Select all
game.player.force.technologies["some-tech"].researched = false
Code: Select all
game.player.force.technologies["some-tech"].researched = false
Code: Select all
for name, technology in pairs(game.player.force.technologies) do
technology.researched = false
end
There is game.player.force.reset() now, it resets everything (in 0.10.9)Reygan wrote:Yeah, this is the only way. Will be better if exist one command like game.force.researchalltechnologies(), but with reverse acion.