Forgive me, but calling Roosevelt "chairman" is hilarious!Hello,i'm beginning in modding and i have problem with my first events :
#########################################################################
# America in 1936
#########################################################################
event = {
id = 3000000
random = no
country = USA
name = "America in 1936"
desc = "Since Secession war,the Union try to stay unit from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chairman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"
date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }
action_a = {
name = "Are we go to an second civil war ?"
}
}
The game doesn't crash but the event not apparese......
The event doesn't appear because it has no valid action. Add an empty command to make the action valid and the event will appear:Hello,i'm beginning in modding and i have problem with my first events :
#########################################################################
# America in 1936
#########################################################################
event = {
id = 3000000
random = no
country = USA
name = "America in 1936"
desc = "Since Secession war,the Union try to stay unit from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chairman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"
date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }
action_a = {
name = "Are we go to an second civil war ?"
}
}
The game doesn't crash but the event not apparese......
I am not sure I understand your question, but I guess the answer is "yes".I never saw this joke ! xd !
Thanks for help,but ,if the " command" is empty,it always work ?!
No, there isn't.One question, is there any command to make peace with the current state of affairs?
I'm playing a game with Japan in Kaiserreich, the world situation is quite interesting BUT I'd like to finish the Entente-Mitteleuropa war with the current borders they have. (As it would be a huge pain to search each province the Entente controls and things like that)
Thanks.
^^
Well, it's not persistent so it can only fire once.
Giving 8 IC looks like a lot, but it's your event.
Check if the country has a valid province:
Constr: type = allow_building which = [building type] # Allow the construction of a certain building type.
type = construct which = [building type] where = [prov id/-1/-4] value = [additional size] # -1 is random owned valid* province. -4 is random owned valid* national province that already has a building of the same type of at least size 1.
*valid province for construction (checked for value > 0; for value < 0 only the existence of building in province is verified):
- province must be owned and controlled by the country
- building type must be allowed for construction (researched)
- province must be in supply
- any other building type restrictions apply too (like: infra > 30% for IC, restrictions for location and size of rocket and nuclear buildings, required beach for coastal fort and port for naval base)
I tested it in abyss and it works. The valid infrastructure threshold is actually 0.4 I believe. If the event finds an invalid random province it might halt. I suggest using 'where = -4'.
No clue why the alternate event would not build infrastructure other than if it finds a province out of supply.