is it possible to disable a recipe or technologie after researched an other technolgie?
for example i researched technoligie a and after succesfull resarched this technolige the game disabled technologie b to research.
Like a decision in a techtree.
disable recipe after researched a new Technologie
disable recipe after researched a new Technologie
please notice that my natove language is german, so my english is not so good. Thx
Re: disable recipe after researched a new Technologie
You can listen to the research completed event and when the research you want is completed you disable the other one.
If you want to get ahold of me I'm almost always on Discord.
Re: disable recipe after researched a new Technologie
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: disable recipe after researched a new Technologie
ok thx, but i need a little bit more help, i am an absolut noob in modding with lua scripts
can you please post a code, so i can understand it?
after researched technology "Superassambler" the game schould disable the Technogie or recipes from the logistic-robot
can you please post a code, so i can understand it?
after researched technology "Superassambler" the game schould disable the Technogie or recipes from the logistic-robot
please notice that my natove language is german, so my english is not so good. Thx
Re: disable recipe after researched a new Technologie
Code: Select all
script.on_event(defines.events.on_research_finished, function(event)
if event.research.name == "some-tech" then
event.research.force.technologies["other-tech"].enabled = false
end
end)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: disable recipe after researched a new Technologie
thx that helpsprg wrote:Code: Select all
script.on_event(defines.events.on_research_finished, function(event) if event.research.name == "some-tech" then event.research.force.technologies["other-tech"].enabled = false end end)
please notice that my natove language is german, so my english is not so good. Thx