Europa Universalis IV

Europa Universalis IV

Modifiser verdenen
Endre din EUIV-opplevelse ved å utforske mange av modifikasjonene laget og delt av samfunnet, inkludert tilpasninger til nesten alle aspekter av spillet. Ta en titt på på taggene for en idé på hvor du vil begynne. Når du er klar til lage en egen, sjekk ut denne nyttige guiden for hjelp til å komme i gang.
Sayk 24. juni 2023 kl. 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 }
}
}
}
< >
Viser 115 av 21 kommentarer
LimonenZitrone 59 24. juni 2023 kl. 19.08 
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.
Sist redigert av LimonenZitrone; 24. juni 2023 kl. 19.11
Sayk 24. juni 2023 kl. 19.21 
well it doesnt show up still any way to find out what might cause it?
LimonenZitrone 59 24. juni 2023 kl. 19.22 
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. juni 2023 kl. 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
LimonenZitrone 59 24. juni 2023 kl. 19.33 
So you have another folder inside the missions folder? Cause that wouldn't work. Or your file is just called missions?
Sayk 24. juni 2023 kl. 19.35 
yea thats how the guy did it in the video
LimonenZitrone 59 24. juni 2023 kl. 19.39 
Well if it is a sub folder, then get rid of that. The file should directly be in the missions folder.
Sayk 24. juni 2023 kl. 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?
LimonenZitrone 59 24. juni 2023 kl. 19.43 
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. juni 2023 kl. 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 }
}
}
}
LimonenZitrone 59 24. juni 2023 kl. 19.46 
you deleted the = { for the provinces_to_highlight
and it also isn't closed
Sist redigert av LimonenZitrone; 24. juni 2023 kl. 19.46
Sayk 24. juni 2023 kl. 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. juni 2023 kl. 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. juni 2023 kl. 19.58 
Thank you for the tips it worked much appreciated :)
Sayk 24. juni 2023 kl. 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?
< >
Viser 115 av 21 kommentarer
Per side: 1530 50