Let's take Portugal as an example, say we've got an event turning Portugal into a monarchy and we want to change both the name and flag:
command = { type = name where = POR which = "Kingdom of Portugal" }
This tells the game to replace Portugal's name (POR being the tag for Portugal) with the name Kingdom of Portugal, now onto your flag:
command = { type = flag_ext where = POR which = "_mon" }
This tells the game to replace the Portuguese flag with the one you specified with the suffix _mon (any suffix works)
For example here if your original flag file was flag_POR, it would be replaced with flag_POR_mon
You'll of course have to have created a shield, flags file, and a counter (or at the bare minimum a shield) for this.
Hi you might not know but do you know how to add a new minister do I just add them to the list of a country and give them a trait, picture etc or do I need to do more, sorry if im asking too many questions but some modding info I just cant seem to find.
Also if you can here is a basic event that I wrote just to get me started, if you have the time could you just check if it would work as I have no idea and I dont want to risk screwing up my event files. Thanks
event = {
id = 148756
random = no
country = GRE
style = 0
trigger = {
owned = { province = PROV409 = GRE }
}
date = { day = 0 month = january year = 1936 }
offset = 10
deathdate = { hour = 19 day = 19 month = december year = 1963 }
name = "Megali Idea fulfilled"
desc = "We have succesfuly retaken Constantinople! Shall we now recreate the great byzantine Empire?"
picture = "byzantine_empire"
action_a = {
name = "Of course! We shall rise again!"
command = { type = name where = GRE which = "Byzantine Empire" }
command = { type = flag_ext where = GRE which = "GRE_mon"
command = { type = shield_ext where = GRE which = "GRE_mon"
command = { type = dissent value = -10 }
command = { type = manpowerpool value = 100 }
command = { type = capital which = 409 }
}
action_b = {
name = "No we have done enough"
command = { type = dissent value = -1 }
command = { type = capital which = 409 }
}
}