• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

BeardedHoplite

Sitting in a Tin Can.
52 Badges
Aug 19, 2009
744
8
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Darkest Hour
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings Complete
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Prison Architect
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • 500k Club
  • War of the Roses
  • Victoria 2
  • Europa Universalis III Complete
I'm currently playing a Commune of France in Kaiserreich game and I'm invading Hungary. I got a flag I want to use for the syndicalist Hungary puppet and I curious how to make an event that changes their flag. I know there is a command = { type = setflag which = }, but it looks like that changes the flag of the country that makes the decision. So it looks like I need something that sets Hungary's flag as the Syndicalist one I put in the game files.
Thanks.
 
You just write an event and trigger it via console with
event <ID> <TAG>

Also, what you want is
Code:
type = flag_ext where = TAG [which = "string"] # where ・change flag of TAG; which  - add that string to flag/shield/counter name and skin folder; use empty string ("") or no skip to clear.
This can be used for other countries as well. setflag is really setboolean

(It would be good if we had setvar to be honest....)
 
Let's say I understood about %20 of what you said. Would you mind running it by me again? I'm sorry, the most modding I've done is replacing existing flags and a little mucking around with leader files.
 
Code:
event = {
	id = #REPLACE ME!
	random = no
	
	# Triggered
	
	name = "Flag Replacement"
	desc = "This is a generic event."
	
	#picture = ""
	style = 2

	action = {
		command = { type = flag_ext where = TAG which = "_FLAGTAG" }
	}
}
Replace tag with the country you want and _FLAGTAG with the flag extension (the flags should be named shield_TAG_FLAGTAG.bmp and flag_TAG_FLAGTAG). Fill the above with your own triggers or trigger it ingame via the console (f12) and typing event <ID> <COUNTRY_TAG>
 
Not really, I was a lost sheep for quite a while before I got the hang of modding.

There's still some stuff I'm not an expert at and have to test personally in game to be honest.

Glad to be of help.