Well I'm new to modding, been at it for 3 hours now, never done it before so I'm not surprised my head is spinning. Here is my event which of course isn't working:
The above has been added to my hoi2.txt file in the db\events folder.
Ok so now the problem is what I don't understand about modding:
1. Do I need both those random? What does the "random = no" do compared to the "random = 0" (or 50 or 70 etc)?
2. When I start my game, doesn't matter if it's 1936 or 1941, I get the message "Database Mismatch (type = 7 / id 121) already used!".
When I looked at HoI2 Wiki's ID rage page it said that 121 was free though, so I'm not sure what I'm doing wrong here. When looking at other people with problems creating their events, I always see their ids at like 500000 or something, how should I approach this?
3. What do I need to do with this ACTIONNAME thing? I named my event COC_1001 cause it's for CommieChina, and it's my first event.
So far I have gone to \config\ and opened the event_text excel file, and added:
I think those are the problems I have for now. I'm unsure what I've actually done, and what I need to proceed with. Have I forgot some place to put stuff, or done it wrong? Anyone out there who could please help me? Thank you so much in advance.
#######################
# The Wannan Incident
###########################
event = {
id = 121
random = no
country = CHC
trigger = {
exists = CHC
exists = CHI
random = 0
NOT = {
war = { country = CHC country = CHI }
}
}
name = "COC_1001_NAME" #The Wannan Incident
desc = "COC_1001_DESC" #During the blablbalba
style = 0
picture = "japanese_reinforcments3"
date = { day = 16 month = january year = 1941 }
offset = 0
deathdate = { day = 17 month = january year = 1941 }
action_a = {
ai_chance = 95
name = "COC_1001_ACTA" #This is outrageous! Stop this silly non-aggression with the Nationalists!
command = { type = leave_alliance } # Leaves alliance with Nationalist China
command = { type = end_access which = CHI } # Removes Nationalist China's military access
command = { type = relation which = CHI value = -20 } # -20 relation bonus with Nationalist China
}
action_b = {
ai_chance = 5
name = "COC_1001_ACTB" #No, we still need the alliance if we are to survive!
command = { type = relation which = CHI value = -5 } # -5 relation bonus with Nationalist China
}
}
The above has been added to my hoi2.txt file in the db\events folder.
Ok so now the problem is what I don't understand about modding:
1. Do I need both those random? What does the "random = no" do compared to the "random = 0" (or 50 or 70 etc)?
2. When I start my game, doesn't matter if it's 1936 or 1941, I get the message "Database Mismatch (type = 7 / id 121) already used!".
When I looked at HoI2 Wiki's ID rage page it said that 121 was free though, so I'm not sure what I'm doing wrong here. When looking at other people with problems creating their events, I always see their ids at like 500000 or something, how should I approach this?
3. What do I need to do with this ACTIONNAME thing? I named my event COC_1001 cause it's for CommieChina, and it's my first event.
So far I have gone to \config\ and opened the event_text excel file, and added:
#############
#Wannan Incident
#############
[column a] [column b]
COC_1001_NAME The Wannan Incident
COC_1001_DESC During the blabla
COC_1001_ACTA Outrageous!
COC_1001_ACTB No! Alliance needed!
I think those are the problems I have for now. I'm unsure what I've actually done, and what I need to proceed with. Have I forgot some place to put stuff, or done it wrong? Anyone out there who could please help me? Thank you so much in advance.