Stellaris

Stellaris

Modify the Galaxy
Modify your Stellaris experience by checking out the many mods created and shared by the community, including tweaks to almost any aspect of the game.
Learn More
Is my code wrong?
if = {
limit = {
owner = {
OR = {
AND = {
is_machine_empire = yes
has_valid_civic = civic_machine_obsessional_directive
}
is_individual_machine = yes
}
}
}
remove_district = district_mining
add_district_and_planet_size_if_needed_effect = {
district = district_farming
}
}

This code is from : common/scripted_effects/01_start_of_game_effects.txt

I want Machine Empires with Obsessional Directive and Individual Machines start with 1 agricultural district but by my code above makes only Individual Machines do. Machine Empires with Obsessional Directive have no agricultural district at the beginning of the game...

I'm building this mod.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3265543245
< >
Showing 1-3 of 3 comments
VJL24 9 Jan @ 5:04pm 
I would recommend splitting the code into two. One for regular machine empires and another for the individual machine empire.

See if by making the following changes to your code it helps

If = {
limit = {
owner = {
IF = {
is_individual_machine = yes
}
OR = {
is_machine_empire = yes
has_valid_civic = civic_machine_obsessional_directive
}
}
}
}
remove_district = district_mining
add_district_and_planet_size_if_needed_effect = {
district = district_farming
}
}

This changes will allow you to not split the code in two. Hope this helps.
Last edited by VJL24; 9 Jan @ 5:06pm
Originally posted by VJL24:
I would recommend splitting the code into two. One for regular machine empires and another for the individual machine empire.

See if by making the following changes to your code it helps

If = {
limit = {
owner = {
IF = {
is_individual_machine = yes
}
OR = {
is_machine_empire = yes
has_valid_civic = civic_machine_obsessional_directive
}
}
}
}
remove_district = district_mining
add_district_and_planet_size_if_needed_effect = {
district = district_farming
}
}

This changes will allow you to not split the code in two. Hope this helps.
Sorry but I don't understand your code. Why another if is in if parentheses?
Solved by myself.
Only Obsessional Directives are regelated by the different code file.
< >
Showing 1-3 of 3 comments
Per page: 1530 50