Europa Universalis IV

Europa Universalis IV

Modifica il mondo
Modifica la tua esperienza di EUIV controllando le tante mod create e condivise dalla Comunità, insieme a modifiche ad ogni aspetto del gioco. Dai un'occhiata alle etichette per capire da dove iniziare a cercare. Quanto ti senti pronto a creare una mod tutta tua, consulta questa utile guida per scoprire come iniziare.
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 }
}
}
}
< >
Visualizzazione di 1-15 commenti su 21
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.
Ultima modifica da LimonenZitrone; 24 giu 2023, ore 19:11
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)?
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?
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.
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).
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
Ultima modifica da LimonenZitrone; 24 giu 2023, ore 19:46
could you explain where exactly i need to put the ( = { for the provinces_to_highlight )
and where to close it?
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.
Thank you for the tips it worked much appreciated :)
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?
< >
Visualizzazione di 1-15 commenti su 21
Per pagina: 1530 50