• 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.

KeiserWiliem

Corporal
56 Badges
Oct 16, 2013
44
43
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Rights of Man
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Magicka
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Wealth of Nations
  • Leviathan: Warships
  • Crusader Kings II
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris Sign-up
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Warlock: Master of the Arcane
I have 2 questions.

Is it possible to use "occluded=yes" from Muhammed to give characters a picture as portrait, on other characters with different pictures.
It's only using the one picture defined in assets.gfx

Is it possible to build a Suez Canal.
Code:
939;1382;portage;788;-1;-1;-1;-1;Suez Canal
It appears on the map, you can't use it.
 

SBolshevik

Something Something Aŋrômainiiuš
6 Badges
May 23, 2013
5.507
1.859
  • Crusader Kings II
  • Warlock 2: The Exiled
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Imperator: Rome Sign Up
I am trying to localise an event to search for the name of a child.
When I use [This.GetFirstName] I get the name of my ruler instead.
Here is the event:
Code:
character_event = {
	id = LECH.1
	title = "EVTTITLELECH.1"
	desc = "EVTDESCLECH.1"
	picture = GFX_evt_throne_room
	only_playable = yes
	
	trigger = {
	    OR = {
		    religion = slavic_pagan
			religion = slavic_pagan_reformed
		}
		any_child = {
     		age = 7
			is_female = no
			is_child_of = FROM
		    NOT = { has_character_flag = first_haircut }
			OR = {
		        religion = slavic_pagan
			    religion = slavic_pagan_reformed
		    }
		}
	}
	
	mean_time_to_happen = {
	    days = 0
	}
	
	option = {
	    name = "EVTOPTALECH.1"
		random_child = {
		    limit = {
			    age = 7
			    is_female = no
				is_child_of = FROM
		        NOT = { has_character_flag = first_haircut }
			    OR = {
		            religion = slavic_pagan
			        religion = slavic_pagan_reformed
		        }
		    }
		    set_character_flag = first_haircut
		    prestige = +5
			opinion = {
		        who = FROM
			    modifier = first_haircut_success
			    years = 5
		    }
			mother = {
			    opinion = {
				    who = FROM
				    modifier = first_haircut_success
				    years = 5
			    }
		    }
		}
		FROM ={
		    wealth = -20
	        prestige = +10
		}
		mother = {
			opinion = {
				who = FROM
				modifier = first_haircut_success
				years = 5
			}
		}
	}
	
	option = {
	    name = "EVTOPTALECH.2"
		wealth = -20
	    prestige = +10
	}
}

Also, is it possible to restrict the title of an event (by that I mean the "name = YADAYADA") using an if = {} clause?
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
I believe occluded is hard coded to Mohammed.

You would have to put all Atlantic and Indian Ocean sea zones in one ocean zone to allow travel through the Suez Canal.
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
Yes. Inside a NOT block is the one place that the engine defaults to ORing rather than ANDing arguments.
 

Stolidicus

Captain
97 Badges
Jun 11, 2012
301
7
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Majesty 2 Collection
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Cossacks
  • War of the Roses
  • Europa Universalis IV: Rights of Man
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • BATTLETECH
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Humanoids Species Pack
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV
  • Crusader Kings Complete
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Victoria 3 Sign Up
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Cradle of Civilization
  • Victoria 2
thanks!

one more... for the ai_chance, I believe the factor of the modifier multiplies/divides the original factor. but how does it all add up?

is it: f (original factor) * x (modifier factor 1) * y (modifier factor 2) * z (modifier factor 3) - example: 5 * 2 * 2 * 2 = 40 e.g. order does matter.

or rather: (f*x)+(f*y)+(f*z) - example: (5*2)+(5*2)+(5*2) = 30 e.g. order does not matter
 
Last edited:

SBolshevik

Something Something Aŋrômainiiuš
6 Badges
May 23, 2013
5.507
1.859
  • Crusader Kings II
  • Warlock 2: The Exiled
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Imperator: Rome Sign Up
I am trying to localise an event to search for the name of a child.
When I use [This.GetFirstName] I get the name of my ruler instead.
Here is the event:
Code:
character_event = {
	id = LECH.1
	title = "EVTTITLELECH.1"
	desc = "EVTDESCLECH.1"
	picture = GFX_evt_throne_room
	only_playable = yes
	
	trigger = {
	    OR = {
		    religion = slavic_pagan
			religion = slavic_pagan_reformed
		}
		any_child = {
     		age = 7
			is_female = no
			is_child_of = FROM
		    NOT = { has_character_flag = first_haircut }
			OR = {
		        religion = slavic_pagan
			    religion = slavic_pagan_reformed
		    }
		}
	}
	
	mean_time_to_happen = {
	    days = 0
	}
	
	option = {
	    name = "EVTOPTALECH.1"
		random_child = {
		    limit = {
			    age = 7
			    is_female = no
				is_child_of = FROM
		        NOT = { has_character_flag = first_haircut }
			    OR = {
		            religion = slavic_pagan
			        religion = slavic_pagan_reformed
		        }
		    }
		    set_character_flag = first_haircut
		    prestige = +5
			opinion = {
		        who = FROM
			    modifier = first_haircut_success
			    years = 5
		    }
			mother = {
			    opinion = {
				    who = FROM
				    modifier = first_haircut_success
				    years = 5
			    }
		    }
		}
		FROM ={
		    wealth = -20
	        prestige = +10
		}
		mother = {
			opinion = {
				who = FROM
				modifier = first_haircut_success
				years = 5
			}
		}
	}
	
	option = {
	    name = "EVTOPTALECH.2"
		wealth = -20
	    prestige = +10
	}
}

Also, is it possible to restrict the title of an event (by that I mean the "name = YADAYADA") using an if = {} clause?
*bump*
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
I am trying to localise an event to search for the name of a child.
When I use [This.GetFirstName] I get the name of my ruler instead.
Here is the event:
Code:
character_event = {
	id = LECH.1
	title = "EVTTITLELECH.1"
	desc = "EVTDESCLECH.1"
	picture = GFX_evt_throne_room
	only_playable = yes
	
	trigger = {
	    OR = {
		    religion = slavic_pagan
			religion = slavic_pagan_reformed
		}
		any_child = {
     		age = 7
			is_female = no
			is_child_of = FROM
		    NOT = { has_character_flag = first_haircut }
			OR = {
		        religion = slavic_pagan
			    religion = slavic_pagan_reformed
		    }
		}
	}
	
	mean_time_to_happen = {
	    days = 0
	}
	
	option = {
	    name = "EVTOPTALECH.1"
		random_child = {
		    limit = {
			    age = 7
			    is_female = no
				is_child_of = FROM
		        NOT = { has_character_flag = first_haircut }
			    OR = {
		            religion = slavic_pagan
			        religion = slavic_pagan_reformed
		        }
		    }
		    set_character_flag = first_haircut
		    prestige = +5
			opinion = {
		        who = FROM
			    modifier = first_haircut_success
			    years = 5
		    }
			mother = {
			    opinion = {
				    who = FROM
				    modifier = first_haircut_success
				    years = 5
			    }
		    }
		}
		FROM ={
		    wealth = -20
	        prestige = +10
		}
		mother = {
			opinion = {
				who = FROM
				modifier = first_haircut_success
				years = 5
			}
		}
	}
	
	option = {
	    name = "EVTOPTALECH.2"
		wealth = -20
	    prestige = +10
	}
}

In localisation, you can't refer to a scope that you switch to inside the event.

Also, is it possible to restrict the title of an event (by that I mean the "name = YADAYADA") using an if = {} clause?

No.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order

Correct.

Inside a NOT block is the one place that the engine defaults to ORing rather than ANDing arguments.

A NOT trigger is basically a reverse AND trigger. I.e. every trigger in it must be false instead of every trigger being true.
 

SBolshevik

Something Something Aŋrômainiiuš
6 Badges
May 23, 2013
5.507
1.859
  • Crusader Kings II
  • Warlock 2: The Exiled
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Imperator: Rome Sign Up
Either make a history file for it where you put that it has enatic succession or just add it as a parameter within the event.
For the history file route:
Code:
1.1.1 = {
      law = enatic_succession
}
For the event route:
Code:
d_yadayada = {
      law = enatic_succession
}
 

ragnin

Sergeant
72 Badges
Aug 31, 2013
73
54
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Sword of the Stars II
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Cities in Motion 2
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III Complete
  • Europa Universalis III
  • Dungeonland
  • Darkest Hour
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings III
  • Age of Wonders III
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: El Dorado
  • War of the Roses
  • Warlock: Master of the Arcane
  • The Showdown Effect
  • Europa Universalis III Complete
Sorry I'm very bad at codding. The first one doesn't work for me since I'm activating holy order title via a decision so even if the history is set to enatic its not active. Once it activates it switches to agnatic open elective.

As for the event route I'm not sure where I would put it in. This is the decision code for activating them.

Code:
decisions = {	
	organize_sisterhood = {
		is_high_prio = yes
		potential = {
			AND = {
				has_landed_title = k_sadune
				OR = {
					religion = cathar
				}
			}
			prisoner = no
			age = 16
			NOT = { has_global_flag = sisterhood_founded }
		}
		allow = {
			OR = {
				tier = king
				tier = emperor
			}
			prestige = 300
			wealth = 300
		}
		effect = {
			set_global_flag = sisterhood_founded
			prestige = -300
			wealth = -300
			activate_title = { title = d_cathar_sisters status = yes }
			hidden_tooltip = {
				narrative_event = { id = ancrel.1150 }
				create_character = {
					random_traits = yes
					religion = cathar
					culture = ROOT
					dynasty = NONE
					female = yes
					age = 30
					trait = skilled_tactician
				}
				new_character = {
					d_cathar_sisters = {
						grant_title = PREV
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
Either make a history file for it where you put that it has enatic succession or just add it as a parameter within the event.
For the history file route:
Code:
1.1.1 = {
      law = enatic_succession
}
For the event route:
Code:
d_yadayada = {
      law = enatic_succession
}

Not quite. In events you have to use add_law to change laws. law is used in triggers only.
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • 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
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
A stupid question. Why are we obliged to use RGB format with a range of 0.0-1. when adding cultures/religions colors? Couldn't it be as in the landed_titles colors setting?

You aren't. Lux Invicta uses 0-255 RGB values in cultures and religions.
 

fanoI

General
2 Badges
Aug 26, 2012
1.870
106
  • Crusader Kings II
  • Europa Universalis IV
Why a character scope is need for "set_global_flag"?

We having a problem stopping an event that should fire only one time in game start in which HRE Emperor sends an envoy to request if the Commune of Rome wants to become a vassal the problem that in the original version we had simply used "set_global_flag" without a character scope and the event continued to repeat itself any month.

This the code (already modified but with the offending part commented out):

Code:
character_event = {
	id = commune.4
	title = "EVTNAMEcommune.4"
	desc = "EVTDESCcommune.4"
	picture = GFX_evt_bad_news_soa
	
	is_triggered_only = yes
	
        # Not needed being "is_triggered_only"
	#trigger = {
	#	has_landed_title = d_commune_of_rome
	#}
	
	option = {
		name = "EVTOPTAcommune.4"
		FROM = {
			add_claim = c_roma
			opinion = {
				modifier = opinion_refused_alleigance
				years = 10
				who = ROOT
			}
		}
		prestige = 250
                # Probably in the previous "FROM" it would be the same
		FROM = { set_global_flag = asked_for_submission }
                # Not work? Why?
                # set_global_flag = asked_for_submission
	}
	
	option = {
		name = "EVTOPTBcommune.4"
		FROM = { set_global_flag = asked_for_submission }
		d_commune of_rome = {
			set_defacto_liege = FROM
		}
                # Not work? Why?
                # set_global_flag = asked_for_submission
		prestige = -500
	}
}

Indeed after having added the "FROM" started to behave as expected (only one time it is called and I imagine this to be valid for all the game time span) but why the "FROM" is needed?
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
905
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order