Was working on my custom system initializer, when I tried to copy code from the Fallen Empire Initializer and give players an upgraded starting station.
Didn't work. How would one go about doing this?
Bumping again. Question is still live.
- 1
- 1
Was working on my custom system initializer, when I tried to copy code from the Fallen Empire Initializer and give players an upgraded starting station.
Didn't work. How would one go about doing this?
add_building_construction = <building_tag> should be usable from a tile-scope.Can I start the construction of the building through event?
Bump.So, if we can write some new types, is there any way we can get current sector_type? And how?
I believe change_dominant_species.
Best I have gotten is 1 star type with an overlapping aura. OR a star without the sky box.Have somebody succeeded to create completely new star class? I've tried and failed so far.
I'm into machine learning and would like to program an AI for Stellaris. All I can find is how to change decision configruation paramters. I would like to do something deeper then that, is that possible? If so, can someone point me in the right direction?
Curious about this, as well.Is it impossible to have two asteroid belts in a scripted star system?
add = {
trigger = {
gender = male
}
portraits = {
type_02
}
}
add
trigger = {
leader_class = ruler
}
portraits = {
type_01
}
}
Just use OR, AND and NOT like you would in an if limit block.Is it possible to add logic to a trigger in the code, IE multiple values need to be true like AND/OR evaluations? If so, how would you code this?
e.g. in the below , say you wanted an action if the pop was male and a leader and not have them as separate conditions with whatever comes last writing over the earlier one. With the intention of having a separate female leader trigger also.
Can you use & or commas or this just isn't possible?
Is it possible to add logic to a trigger in the code, IE multiple values need to be true like AND/OR evaluations? If so, how would you code this?
e.g. in the below , say you wanted an action if the pop was male and a leader and not have them as separate conditions with whatever comes last writing over the earlier one. With the intention of having a separate female leader trigger also.
Can you use & or commas or this just isn't possible?
Just use OR, AND and NOT like you would in an if limit block.
trigger= {
OR = {
AND = {gender = male
leader_class = ruler}
AND = {gender = female
leader_class = ruler}
}
}
Thanks for the reply. I've been searching since I posted this and found instructions for EUIV which seem to work. I've only just tested it and this (also?) seems to work:Just use OR, AND and NOT like you would in an if limit block.
male_sci_trigger = {
leader_class = scientist
gender = male
}
add = {
trigger = {
male_sci_trigger = yes
}
portraits = {
male_sci_05
}
}
AND = { adm_power = 10 dip_power = 10 }
Hello
Does anyone know how to change the government ethics (through an event for exemple)? I can't find any line that does that in the game or in the wiki :/
([23:49:39][eventmanager.cpp:534]: unknown namespace '[civ_trade' defined in event files) event though my namespace is civ_trade not [civ_trade.