These events are no longer being updated. To get the latest version download the latest version of Terra Nova here and copy the events from the mod/Terra Nova/events/TN Random.txt file.
here is a event to give another reason/benefit to get to +3 stability and be peacefull while punishing your warmongering neighbors.![]()
This event is now inlcuded in my Variable mini-mod, you can find the link in my signature.
if you do not use my variable system then you need to replace the dark green code with code that uses flags to allow the immigration to happen. If somebody fixes this so that it doesnt need my variable system please post it here so others can use it. if anyone wants to make a minimod of the VARiable system feel free, i can even host it and answer questions, if i ever get time ill do it myself.
Any code in red is not needed and should not be used unless you know what it does or need it. for the sake of having a exact copy here of my functional event, i have posted it.
if you use this event system in your mod please give me credit by mentioning me or my mod, thank you.
Finaly, let me explain why the variable system is better for this event than normal flags. with this code, (if the variable system is set up right) any time a emmigration happens it gets loged into the VAR country 2 times. when a immigration happens it only uses 1/2 of those peasants and only reduces the VAR data by 1. this is a more dynamic method that ensures that the world population remains the same but only moves around while also ensuring that all the emmigrants do not go to the same country (unless only a few nations qaulify for Immigration).
Code:#Emigration province_event = { id = 17900 trigger = { owner = { NOT = { has_country_flag = Disable #disables the event if player disabled custom events has_country_flag = Emigration stability = -2 religion = shinto #prevents Japanese Sengoku mod interferance } war = yes } citysize = 12000 } mean_time_to_happen = { months = 5000 modifier = { factor = 1.2 owner = { luck = yes } } modifier = { factor = 2.0 owner = { has_country_flag = Maintanence } #keeps this event from spamming } modifier = { factor = 0.5 owner = { has_country_flag = Maintanence_No } #nulifies maintanence to disable it } modifier = { factor = 0.4 owner = { NOT = { culture_group = THIS } } } modifier = { factor = 1.2 owner = { culture_group = THIS } } modifier = { factor = 0.4 owner = { is_bankrupt = yes } } modifier = { factor = 0.4 owner = { idea = bureaucracy } } modifier = { factor = 5.0 owner = { tag = BUC } } modifier = { factor = 0.4 owner = { idea = vice_roys } } modifier = { factor = 1.5 owner = { idea = bill_of_rights } } modifier = { factor = 1.5 owner = { idea = humanist_tolerance } } modifier = { factor = 2.0 owner = { idea = quest_for_the_new_world } } } title = "Emigration" desc = "Some peasants think that conditions are bad in our country and now want to leave." option = { name = "ok" ai_chance = { factor = 80 } citysize = -10000 owner = { set_country_flag = Maintanence } #reduces spam of this event VAR = { centralization_decentralization = 2 } } option = { name = "Kill them to prevent this again!" ai_chance = { factor = 5 } citysize = -10000 owner = { badboy = 5 set_country_flag = Maintanence #reduces spam of this event set_country_flag = Emigration } } option = { name = "Help the peasants" ai_chance = { factor = 15 } owner = { treasury = -100 set_country_flag = Maintanence #reduces spam of this event } } option = { name = "Do only animals Migrate?" #this is a cheat option ai_chance = { factor = 0 } VAR = { aristocracy_plutocracy = 1 } owner = { set_country_flag = Maintanence } } } #Immigration province_event = { id = 17901 trigger = { owner = { NOT = { has_country_flag = Disable has_country_flag = Immigration } stability = 3 war = no } VAR = { centralization_decentralization = -4 } } mean_time_to_happen = { months = 500 modifier = { factor = 0.4 owner = { luck = yes } } modifier = { factor = 2.0 owner = { has_country_flag = Maintanence } } modifier = { factor = 0.5 owner = { has_country_flag = Maintanence_No } } modifier = { factor = 1.5 owner = { is_bankrupt = yes } } modifier = { factor = 1.5 owner = { idea = bureaucracy } } modifier = { factor = 5.0 owner = { tag = BUC } } modifier = { factor = 1.5 owner = { idea = vice_roys } } modifier = { factor = 0.4 owner = { idea = bill_of_rights } } modifier = { factor = 0.4 owner = { idea = humanist_tolerance } } } title = "Immigration" desc = "Some peasants think that conditions are good in our country and now want to live here. Make a example if you no longer want Immigrants." option = { name = "ok" ai_chance = { factor = 80 } citysize = 5000 VAR = { centralization_decentralization = -1 } } option = { name = "Send them back!" ai_chance = { factor = 5 } owner = { badboy = 1 set_country_flag = Maintanence set_country_flag = Immigration } } option = { name = "Find them a different country" ai_chance = { factor = 15 } owner = { treasury = -50 set_country_flag = Maintanence set_country_flag = Immigration } } }




Reply With Quote









































