How do I make a technology available from the start?
How do I make a technology available from the start?
I want players to start with a certain technology already unlocked. This is not a technology that I made myself, it's from another mod. I'm not even sure what kind of script.on_event should I use if any, and I can't find anything about that in the docs. (I've never modded the game before, so please be patient with me.)
Re: How do I make a technology available from the start?
Update: while the topic was getting approved, I figured it out myself.
I hope this would be helpful to other newbies like me in the future.
Code: Select all
script.on_init(function(event)
game.forces["player"].technologies["<technology_name>"].researched=true
end)
Re: How do I make a technology available from the start?
You can enable the recipe in the data stage.