• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(49083)

Field Marshal
Oct 2, 2005
3.967
0
Here's the mexico event :

Code:
###############################################
# Mexican Government's decision
###############################################

event = {
        id = 103011
        random = no
        country = MEX
        
        trigger = {
                control = { province = 1697 data = U01 } #replace xxxx with the provid of Mejico
                event = 100112 #Annexation of Mexico!
                }

        name = "End of Mexico"
        desc = "We have fought hard, but the Spaniards have pushed us back, and now we are authorized to surrender. There are only a few patrons willing to fight on, but it will be for a hopeless cause so surrender may be the only option"
        style = 0

        action_a = {
                name = "Surrender, there is nothing we can do!"
                command = { type = surrender which = U01 }
                }
        action_b = {
                name = "Never! We will fight to the death!"
                command = { type = prestige which = 50 }
	}
		
}
 

unmerged(49083)

Field Marshal
Oct 2, 2005
3.967
0
There seems to be a problem in this Mexican event. There's something wrong with the
Code:
event = {
part but I don't know what it is. All my other events are fine?

[edit] Should we just stick to Spain annexing Mexico?
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
Thanks. I think the error is that you used trigger = { twice is the spanish event.
Also the event has no dates and an offset. Event 103011 is triggered by the 100112 so it shouldn't have any triggers.

EDIT: Also the description in U01 100112 is too long.
 
Last edited:

unmerged(49083)

Field Marshal
Oct 2, 2005
3.967
0
1.) Trigger problem fixed
2.) dates and offset done
3.) I'm not too sure what you mean, could you fix that?

Code:
###############################################
# Annexation of Mexico!
###############################################

event = {
        id = 100112
        random = no
        country = U01

        trigger = {
                event = 100100 #Spanish Civil War
                control = { province = 1697 data = U01 } #replace xxxx with the provid of Mejico
                }
        
        name = "Annexation of Mexico"
        desc = "Thanks to the native Spanish forces, and their impressive fighting skills. In hard terrain they fought their way all the way to the capital of this revolted country which call themselves Mexico. They thought they would be another Spaniard country, but only people under Spanish rule dare have anything to do with Spain! They have offered us a peace treaty of outright annexation into our empire, and while many mexicans think this is bad for 'their' homeland is supposedly being going to be controlled harshly this is something important"
        style = 0
        
        date = { day = 1 month = january year = 1835 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }
        
        action_a = {
                name = "A great offer"
                command = { type = trigger which = 103011 }
                command = { type = badboy which = -100 }   
                }
        action_b = {
                name = "We'll offer a different peace"
                command = { type = prestige which = -15 }
                }
	}
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
What I've done, is removed just a part of the description. I changed this:
Code:
        desc = "Thanks to the native Spanish forces, and their impressive fighting skills. In hard terrain they fought their way all the way to the capital of this revolted country which call themselves Mexico. They thought they would be another Spaniard country, but only people under Spanish rule dare have anything to do with Spain! They have offered us a peace treaty of outright annexation into our empire, and while many mexicans think this is bad for 'their' homeland is supposedly being going to be controlled harshly this is something important"

to this
Code:
        desc = "Thanks to the native Spanish forces, and their impressive fighting skills. In hard terrain they fought their way all the way to the capital of this revolted country which call themselves Mexico. They thought they would be another Spaniard country, but only people under Spanish rule dare have anything to do with Spain! They have offered us a peace treaty of outright annexation into our empire."

Try to change this first and then try again. I pasted your event and changed the desc and it loads fine.
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
Code:
###############################################
# Annexation of Mexico!
###############################################

event = {
        id = 100113
        random = no
        country = U01

        trigger = {
                event = 100100 #Spanish Civil War
                control = { province = 1697 data = U01 } #replace xxxx with the provid of Mejico
                }
        
        name = "Annexation of Mexico"
        desc = "Thanks to the native Spanish forces, and their impressive fighting skills. In hard terrain they fought their way all the way to the capital of this revolted country which call themselves Mexico. They thought they would be another Spaniard country, but only people under Spanish rule dare have anything to do with Spain! They have offered us a peace treaty of outright annexation into our empire."
        style = 0
        
        date = { day = 1 month = january year = 1815 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }
        
        action_a = {
                name = "A great offer"
                command = { type = trigger which = 103011 }
                command = { type = badboy which = -100 }   
                }
        action_b = {
                name = "We'll offer a different peace"
                command = { type = prestige which = -15 }
                }
	}

I had to change the ID though cause 100112 is the Royalist are victorious event in my file. And I changed it the starting date to 1815, since my game can actually start in 1815 (manually edited the exe)
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
Done. Oh I forgot to mention it in the mail, but you need to change the starting and end dates of the events to allow for 1835 play.

EDIT: It has to be a problem on your side, cause my file doesn't even reach line 1134 :wacko:
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
Ok, good luck. If you want I can sent you all the other event files, so it's easier to coordinate our efforts.
 

unmerged(49083)

Field Marshal
Oct 2, 2005
3.967
0
Ok. Now, 1815 1.00 works normally. Can you give me a download link to all the work done so far on your version?

< edit > When I download your Spain.txt file why is all the description cstuffed all on the screen, not in a line?
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0
Walter Model said:
Ok. Now, 1815 1.00 works normally. Can you give me a download link to all the work done so far on your version?

< edit > When I download your Spain.txt file why is all the description cstuffed all on the screen, not in a line?


I have absolute no idea how that happened. In my version it's normal. Perhaps my provider f*cked up. I'll try with my other email. Mostly I've worked on events since the first release, although I added Miguelite Portugal as revolter and some leaders for Poland.
 

unmerged(35351)

Shah of Persia
Oct 18, 2004
1.209
0