Europa Universalis IV

Europa Universalis IV

Modify the World
Modify your EUIV experience by checking out the many mods created and shared by the community, including tweaks to almost any aspect of the game. Take a look at the tags for an idea on where to start. When you're ready to create one of your own, check out this handy guide to help get started.
Sayk 24 Jun, 2023 @ 6:45pm
Mission modding issues
I was trying to add some missions for a nation i was watching this guide "https://www.youtube.com/watch?v=1e6GnjYtuNA"
its the only video i found helping to make mission trees and i followed all his steps but my missions i added wont show up
this is the code i used pls help :demoticon:

pakistan_missions = {
slot = 1
generic = no
ai = yes
potential = {
tag = PKI
}
has_country_shield = yes

test_pakistan_mission_1 = {
icon = test_pakistan_mission_1
required_missions = { }
position = 1
provinces_to_highlight = {
province_id = 575 AND 2232
}
trigger = {
owns = 575 AND 2232
}
effect = {
add_treasury = 175
}
}
test_pakistan_mission_2 = {
icon = test_pakistan_mission_2
required_missions = { test_pakistan_mission_1 }
position = 1
trigger = {
army_size = 25
}
effect = {
create_general = { tradition = 100 }
}
}
}
< >
Showing 1-15 of 21 comments
LimonenZitrone 59 24 Jun, 2023 @ 7:08pm 
owns = 575 AND 2232
There is no such thing as this, you repeat the trigger for both IDs, so:
owns = 575 owns = 2232
Same applies to the other trigger where you did that. Though there you want an OR, cause a province cannot have multiple IDs:
OR = { province_id = 757 province_id = 2232 }

Also if PKI isn't a tag at game start but a formable, you need to swap missions when you formed them. Same applies if you are testing on a save saved before you added the missions.
Last edited by LimonenZitrone; 24 Jun, 2023 @ 7:11pm
Sayk 24 Jun, 2023 @ 7:21pm 
well it doesnt show up still any way to find out what might cause it?
LimonenZitrone 59 24 Jun, 2023 @ 7:22pm 
Is your mod active (launcher sometimes shows stuff as active while it isn't)? Is the file in the correct folder (your_mod/missions)?
Sayk 24 Jun, 2023 @ 7:26pm 
yea the mod is activated i can see my custom nation i made with it and the missions file is in
(your_mod/missions/missions) as i said i copied it from the video i watched i dont know if its the right way to do it but it worked for him
LimonenZitrone 59 24 Jun, 2023 @ 7:33pm 
So you have another folder inside the missions folder? Cause that wouldn't work. Or your file is just called missions?
Sayk 24 Jun, 2023 @ 7:35pm 
yea thats how the guy did it in the video
LimonenZitrone 59 24 Jun, 2023 @ 7:39pm 
Well if it is a sub folder, then get rid of that. The file should directly be in the missions folder.
Sayk 24 Jun, 2023 @ 7:42pm 
good news is that it shows up bad news its only one of them and it has neither a trigger or effect for some reason i can just instantly complete the mission and get nothing what causes this?
LimonenZitrone 59 24 Jun, 2023 @ 7:43pm 
Did you fix the stuff I mentioned in the first answer? Cause if not that would explain it (the AND stuff would break syntax inside the highlighting already, so anything afterwards wouldn't work correctly).
Sayk 24 Jun, 2023 @ 7:45pm 
yea i did i think at least

pakistan_missions = {
slot = 1
generic = no
ai = yes
potential = {
tag = PKI
}
has_country_shield = yes

test_pakistan_mission_1 = {
icon = test_pakistan_mission_1
required_missions = { }
position = 1
provinces_to_highlight OR = {
province_id = 575
province_id = 2232
}
trigger = {
owns = 575
owns = 2232
}
effect = {
add_treasury = 175
}
}
test_pakistan_mission_2 = {
icon = test_pakistan_mission_2
required_missions = { test_pakistan_mission_1 }
position = 1
trigger = {
army_size = 25
}
effect = {
create_general = { tradition = 100 }
}
}
}
LimonenZitrone 59 24 Jun, 2023 @ 7:46pm 
you deleted the = { for the provinces_to_highlight
and it also isn't closed
Last edited by LimonenZitrone; 24 Jun, 2023 @ 7:46pm
Sayk 24 Jun, 2023 @ 7:50pm 
could you explain where exactly i need to put the ( = { for the provinces_to_highlight )
and where to close it?
LimonenZitrone 59 24 Jun, 2023 @ 7:53pm 
provinces_to_highlight = { OR = { province_id = 575 province_id = 2232 } }

Code in Eu4 usually follows either the format of
X = Y
or
X = { Y = Z }

Rarely there also is
X = { Y }

But there never is X Y = Z.
Sayk 24 Jun, 2023 @ 7:58pm 
Thank you for the tips it worked much appreciated :)
Sayk 24 Jun, 2023 @ 8:22pm 
another question the mission are named test_pakistan_mission_1 and i want the underscores to be gone in game how can i do that?
< >
Showing 1-15 of 21 comments
Per page: 1530 50