Europa Universalis IV

Europa Universalis IV

Ändra världen
Modifiera din EUIV-upplevelse genom att kolla in de många moddarna skapade av gemenskapen, inklusive förändringar av nästan alla delar i spelet. Kolla i taggarna för att få en aning om vart du ska börja. När du är redo att skapa en egen, kolla i den här guiden för att få hjälp att komma igång.
Sayk 24 jun, 2023 @ 18:45
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 }
}
}
}
< >
Visar 1-15 av 21 kommentarer
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.
Senast ändrad av LimonenZitrone; 24 jun, 2023 @ 19:11
Sayk 24 jun, 2023 @ 19:21 
well it doesnt show up still any way to find out what might cause it?
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 @ 19:26 
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
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 @ 19:35 
yea thats how the guy did it in the video
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 @ 19:42 
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?
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 @ 19:45 
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 }
}
}
}
you deleted the = { for the provinces_to_highlight
and it also isn't closed
Senast ändrad av LimonenZitrone; 24 jun, 2023 @ 19:46
Sayk 24 jun, 2023 @ 19:50 
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 @ 19:53 
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 @ 19:58 
Thank you for the tips it worked much appreciated :)
Sayk 24 jun, 2023 @ 20:22 
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?
< >
Visar 1-15 av 21 kommentarer
Per sida: 1530 50