Okay. I have a problem here that seems absolutely odd. I've made an event which looks as follows:
As you may notice, this is an almost exact copy of the Teletank event. Then, for testing purposes, I edited the industry tech tree and made the first synthetic oil tech trigger it:
I changed the difficulties so that it can be researched quickly to test it, too.
Problem is: If this tech is researched, absolutely nothing happens. It shows "Trigger the Test Event" in the research screen, but no event fires when it is researched. As it is done the exact same way with the Teletank and Goliat stuff, I wonder why this doesn't work. The funny thing is, that i can trigger it without problems via "event 3000034" in the console. Thanks in advance.
Code:
event = {
id = 3000034
random = no
persistent = yes
trigger = { }
name = "EVT_TEST_NAME"
desc = "EVT_TEST_DESC"
style = 2
picture = "news_paper"
action_a = {
name = "ACTION_NAME_EXCELLENT"
command = { }
}
}
As you may notice, this is an almost exact copy of the Teletank event. Then, for testing purposes, I edited the industry tech tree and made the first synthetic oil tech trigger it:
Code:
# Basic Oil Refining
application =
{ id = 5190
name = TECH_APP_INDUSTRY_19_NAME
position = { x = 308 y = 254 }
picture = "5190"
year = 1914
# Basic Distillation
component = { id = 5191 name = TECH_CMP_INDUSTRY_19_1_NAME type = chemistry difficulty = 1}
# Basic Cracker
component = { id = 5192 name = TECH_CMP_INDUSTRY_19_2_NAME type = chemistry difficulty = 1}
# Basic Isomerisation
component = { id = 5193 name = TECH_CMP_INDUSTRY_19_3_NAME type = chemistry difficulty = 1}
# Basic Hydrogen Treatment
component = { id = 5194 name = TECH_CMP_INDUSTRY_19_4_NAME type = chemistry difficulty = 1}
# Basic Test Facility
component = { id = 5195 name = TECH_CMP_INDUSTRY_19_5_NAME type = industrial_engineering difficulty = 1}
required = { }
effects =
{ command = { type = trigger which = 3000034 }
}
}
I changed the difficulties so that it can be researched quickly to test it, too.
Problem is: If this tech is researched, absolutely nothing happens. It shows "Trigger the Test Event" in the research screen, but no event fires when it is researched. As it is done the exact same way with the Teletank and Goliat stuff, I wonder why this doesn't work. The funny thing is, that i can trigger it without problems via "event 3000034" in the console. Thanks in advance.