Well, for my first attempt at writing an event, I'm trying to create one that a. unifies Argentina and Uruguay a la Anschluss, and b. makes Montevideo one of Argentina's cores. I followed the wiki to the best of my ability, but the game crashes when I try to start it up now (yes I have a backup, I'm not that big of a noob
) Anyway, here's what I've come up with:
##### Uruguay joins with Argentina
event = {
id = 5043
random = no
country = ARG
style = 0
name = "EVT_5043_NAME"
desc = "EVT_5043_DESC"
picture = "FIN_give_in"
date = { day = 4 month = january year = 1936 }
action_a = {
name = "Excellent"
command = { type = inherit which = URU }
command = { type = addcore which = 849 }
}
}
Right now I'm not interested in the cosmetic part of the event, I'm just trying to give it the minimum for it to work. If somebody would be so kind as to point out what I'm doing wrong and how I can fix it, you would be forever in my gratitude. In the future I'll see about adding a declination option (kinda pointless since I will never decline it, but just for completion's sake) and getting the names and descriptions right. Right now, however, I just want it to work. Thanks in advance.
##### Uruguay joins with Argentina
event = {
id = 5043
random = no
country = ARG
style = 0
name = "EVT_5043_NAME"
desc = "EVT_5043_DESC"
picture = "FIN_give_in"
date = { day = 4 month = january year = 1936 }
action_a = {
name = "Excellent"
command = { type = inherit which = URU }
command = { type = addcore which = 849 }
}
}
Right now I'm not interested in the cosmetic part of the event, I'm just trying to give it the minimum for it to work. If somebody would be so kind as to point out what I'm doing wrong and how I can fix it, you would be forever in my gratitude. In the future I'll see about adding a declination option (kinda pointless since I will never decline it, but just for completion's sake) and getting the names and descriptions right. Right now, however, I just want it to work. Thanks in advance.