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

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
actually, the odd thing is that those are two files in the same mod folder. ie. the mod has both the (modified) 00_on_actions.txt and a separate LI_VIET_on_actions.txt in the same folder.
Since that same folder also contains separate files that add pulse events to the same scope, and they both seem to be triggering, I'm not sure that's the issue...
(though now that I think about it, it's possible the vanilla events in that scope weren't being triggered... I'll need to look into that)
To my knowledge, based on last time I tried, it is only ever possible to have a single file trigger anything from a specific on actions pulse.
 

riknap

Inactive Custodian of the Light
70 Badges
Feb 27, 2011
6.574
197
steamcommunity.com
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • 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
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
To my knowledge, based on last time I tried, it is only ever possible to have a single file trigger anything from a specific on actions pulse.
I see. That might explain why I haven't noticed some vanilla events when playing the mod (I'm guessing the other file overrides the other).
If this is the case though, then which file takes precedence in these cases? Is it the file that is loaded first (ie. alphanumerically first), or loaded last (ie. therefore "overwriting" the previous on actions pulse )?
On a tangentially related concern, how does the mod launched also decide which mod files are loaded? for example, mod A and mod B both have the same file. Is the mod that is listed alphabetically first loaded first and the file from the mod loaded last ignored, or is it the opposite (ie. the file loaded last overwrites/overrides the file loaded first)?
 

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
I see. That might explain why I haven't noticed some vanilla events when playing the mod (I'm guessing the other file overrides the other).
If this is the case though, then which file takes precedence in these cases? Is it the file that is loaded first (ie. alphanumerically first), or loaded last (ie. therefore "overwriting" the previous on actions pulse )?
On a tangentially related concern, how does the mod launched also decide which mod files are loaded? for example, mod A and mod B both have the same file. Is the mod that is listed alphabetically first loaded first and the file from the mod loaded last ignored, or is it the opposite (ie. the file loaded last overwrites/overrides the file loaded first)?
I'm afraid I have no idea.
 

Dhop84

Major
4 Badges
Dec 28, 2012
790
0
  • Crusader Kings II
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
Going back to the monument post earlier probaly a real silly question but 1) what do you mean by set a flag and 2) how do i do that ??(real basic i no)
 
Last edited:

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
Going back to the monument post earlier probaly a real silly question but 1) what do you mean by set a flag and 2) how do i do that ??(real basic i no)
set_character_flag = dead_father
It is a way of storing information on a character, province, or global level. Very useful for event chains and such, and to ensure an event can only fire once.
 

riknap

Inactive Custodian of the Light
70 Badges
Feb 27, 2011
6.574
197
steamcommunity.com
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • 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
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
I'm afraid I have no idea.
I think I might have detected the issue - an on actions file outside the main 00_on_actions.txt that is listed/arranged after it overrides the pulse events as you said.
So using my problem as the example, the entire contents of the childhood yearly pulse from "LI_VIET_on_actions.txt" completely displaces the entirety of the pulse from 00_on_actions.txt.
... That kind of feels like a retarded mechanic decision, though paradox probably has their reasons (well, in any case, it does simplify overwriting vanilla events for overhaul events like AGOT/EK :laugh: )
 

Lysistrata

Πρωθυπουργός της Αυτοκρατορίας Ρωμαίος
51 Badges
Feb 2, 2013
2.706
1.132
  • Victoria 2: A House Divided
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
I'm trying to make the Janissary Corps as a mercenary band only available to an empire-tier Ottoman Empire title I've made, which will basically be the Ottoman Sultanate's equivalent of the Roman Empire.

The only problem is, I don't know how to make them only available to a title that probably won't exist for most of a game. I've tried "allow = { { primary_title = e_ottoman } }" but for some reason that results in them becoming the de jure liege of the entire game - that's everything, even landless titles.

I've considered making them a creation event, similar to what the Varangian Guard will have in TOG, but I don't know how to make events. Any suggestions?
 

Marshall18

I sometimes do controversial things
45 Badges
Jul 8, 2009
1.580
606
  • Arsenal of Democracy
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • March of the Eagles
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sunset Invasion
  • Hearts of Iron Anthology
  • Cities in Motion
  • Crusader Kings II
  • 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: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Age of Wonders III
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV Sign-up
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Art of War
  • Europa Universalis III: Chronicles
I remember reading that some nations are given "free armies" to start with (for balance reasons). Is there a way to mod this (give someone one of those armies)?
 

kaycat83

Recruit
17 Badges
May 21, 2009
3
0
  • Crusader Kings II: Charlemagne
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Hello I´m new to modding. I would like to change the embargo cb so that a ruler wont attack a republic if he has an opinion of 40 or more with all trade post owners of that republic in his realm. I have a hard time understanding the commands in the cb_types file.
 

Kimberly

Lt. General
31 Badges
Sep 16, 2012
1.694
400
  • Crusader Kings II
  • Semper Fi
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
Hello I´m new to modding. I would like to change the embargo cb so that a ruler wont attack a republic if he has an opinion of 40 or more with all trade post owners of that republic in his realm. I have a hard time understanding the commands in the cb_types file.

Do you want to change it so a ruler won't or can't use the embargo under those circumstances? If you want to stop it from being possible altogether, replace the can_use section of the embargo CB with this:

Code:
	can_use = {
		ROOT = {
			independent = yes
			NOT = { has_embargo = FROM }
		}
		FROM = {
			OR = {
				AND = {
				is_merchant_republic = yes
				NOT = { reverse_opinion = { who = ROOT value = 40 } }
				}
				AND = {
					higher_tier_than = DUKE
					any_realm_lord = {
						is_merchant_republic = yes
						 NOT = { reverse_opinion = { who = ROOT value = 40 } }
					}
				}
			}
		}
	}

The code reverse_opinion = {who = ROOT value = 40} basically asks "Does ROOT (the person using the CB, the person for whom the event fires, the decision taker, etc.) have an opinion of this character that is equal or greater to 40?". If the value is 40 or higher, the condition is satisfied. You want the CB to be unable to be used if that's the case, so I enclosed it in NOT = { }. I also added an AND = { } so that the CB would only be usable if a republic was independent and had the CB user had a low opinion, or if the republic was not independent and the CB user had a low opinion. This is necessary because those two options (either independent or not) were enclosed in an OR = { }.
 
Last edited:

riknap

Inactive Custodian of the Light
70 Badges
Feb 27, 2011
6.574
197
steamcommunity.com
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • 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
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Do you want to change it so a ruler won't or can't use the embargo under those circumstances? If you want to stop it from being possible altogether, replace the can_use section of the embargo CB with this:

Code:
	can_use = {
		ROOT = {
			independent = yes
			NOT = { has_embargo = FROM }
		}
		FROM = {
			OR = {
				AND = {
				is_merchant_republic = yes
				NOT = { reverse_opinion = { who = ROOT value = 40 } }
				}
				AND = {
					higher_tier_than = DUKE
					any_realm_lord = {
						is_merchant_republic = yes
						 NOT = { reverse_opinion = { who = ROOT value = 40 } }
					}
				}
			}
		}
	}

The code reverse_opinion = {who = ROOT value = 40} basically asks "Does ROOT (the person using the CB, the person for whom the event fires, the decision taker, etc.) have an opinion of this character that is equal or greater to 40?". If the value is 40 or higher, the condition is satisfied. You want the CB to be unable to be used if that's the case, so I enclosed it in NOT = { }. I also added an AND = { } so that the CB would only be usable if a republic was independent and had the CB user had a low opinion, or if the republic was not independent and the CB user had a low opinion. This is necessary because those two options (either independent or not) were enclosed in an OR = { }.
does this work?
in any case, can I have your permission to use this code (after modifying the value a bit) in one of my cb overhauls (that is for public release)?
 

kaycat83

Recruit
17 Badges
May 21, 2009
3
0
  • Crusader Kings II: Charlemagne
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Thanks Kimberly! I will try this out, I get so easy lost in these codes. I don´t know if the won´t or can´t use embargo matter, I think it will be fine the way you done it. What I´m a bit confused about is that the embargoing rulers opinion should be compared with the patrician/patricians that owns the trade posts in the embargoing rulers realm, and not with the ruler of the republic. Unless he also own trade posts in the embargoing rulers realm, then the opinion should compare to him as well.
 

Kimberly

Lt. General
31 Badges
Sep 16, 2012
1.694
400
  • Crusader Kings II
  • Semper Fi
  • Heir to the Throne
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
does this work?
in any case, can I have your permission to use this code (after modifying the value a bit) in one of my cb overhauls (that is for public release)?

Uh, well I must warn you I haven't tested it. But reverse_opinion = { who = ROOT value = 40 } is used to check for opinions in events and such, so I imagine it should work here. Please do test it before you make it public. :p

Thanks Kimberly! I will try this out, I get so easy lost in these codes. I don´t know if the won´t or can´t use embargo matter, I think it will be fine the way you done it. What I´m a bit confused about is that the embargoing rulers opinion should be compared with the patrician/patricians that owns the trade posts in the embargoing rulers realm, and not with the ruler of the republic. Unless he also own trade posts in the embargoing rulers realm, then the opinion should compare to him as well.
If characters won't use the CB in that situation, even if the option exists, I'd have to mess around with the AI--I don't know how to do that. If they can't use the CB then well, they can't. That's what I went with here. If you made it a bit more complex you could make it so the opinion only mattered for the AI and not player characters, which come to think of it is probably a good idea, if you don't want to be locked out of using the CB due to your own character's opinion (which is hard to change).

The vanilla CB asks whether the person you're declaring war on is the leader of a republic, or whether he has a vassal that is a republic, and I simply added an opinion check of that republic's leader. Checking the agressor's opinion of characters that are part of the republic and own trade posts in the aggressor's country is a bit more complicated.
 

riknap

Inactive Custodian of the Light
70 Badges
Feb 27, 2011
6.574
197
steamcommunity.com
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Crusader Kings II: Charlemagne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • 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
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Uh, well I must warn you I haven't tested it. But reverse_opinion = { who = ROOT value = 40 } is used to check for opinions in events and such, so I imagine it should work here. Please do test it before you make it public. :p

.
it theoretically seems to work, at least based on the code :laugh:
incidentally, you can't directly "mess around with the AI", at least not with ck2 anyway.
 

Lysistrata

Πρωθυπουργός της Αυτοκρατορίας Ρωμαίος
51 Badges
Feb 2, 2013
2.706
1.132
  • Victoria 2: A House Divided
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
I'm trying to make the Janissary Corps as a mercenary band only available to an empire-tier Ottoman Empire title I've made, which will basically be the Ottoman Sultanate's equivalent of the Roman Empire.

The only problem is, I don't know how to make them only available to a title that probably won't exist for most of a game. I've tried "allow = { { primary_title = e_ottoman } }" but for some reason that results in them becoming the de jure liege of the entire game - that's everything, even landless titles.

I've considered making them a creation event, similar to what the Varangian Guard will have in TOG, but I don't know how to make events. Any suggestions?
Bump