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

Andrelvis

The Last Ghibelline
76 Badges
Apr 30, 2006
5.598
9.962
  • 500k Club
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings III
  • Europa Universalis III Complete
  • 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
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
revoke_allowed is not needed, it is a legacy thing from very old versions and even then only on laws.

So no reason to ever have it on anything really, it will still work if you do have it but it does nothing

Thanks for the explanation! I had thought it did nothing, but was a required block anyway.
 

HeightofMediocrity

Recruit
83 Badges
Aug 29, 2016
1
0
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Imperator: Rome
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings III Referal
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders III
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: First Colony Edition
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders: Planetfall Sign Up
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Cradle of Civilization
  • Shadowrun: Dragonfall
  • Stellaris: Distant Stars
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Golden Century
  • Prison Architect: Psych Ward
  • Prison Architect
  • Stellaris: Apocalypse
  • Shadowrun: Hong Kong
  • Shadowrun Returns
  • Sword of the Stars
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Empire of Sin
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
So I've never made a mod before but I've been thinking about this for a while. I searched in multiple areas and no one seems to have attempted it afaik.

I want to make the Seduce option from the Seduction focus always available to anyone of age regardless of their Focus. (If they have WoL of course.)

Is such a thing even possible? Bonus points in that I've been playing the AGOT mod and a certain 18+ mod and would ideally like it to be compatible with those but I understand that's a whole can of worms because not everyone is familiar with those. (Sorry for the censoring, I just don't know if mentioning the name of the 18+ mod is okay. It is off-site. If anyone would like me to specify I would be happy to PM you or something if that's okay with the forum moderators of course, I don't mean to cause trouble.)

Kind regards to whomever reads this!
 

jfull27

Recruit
80 Badges
Jul 13, 2017
6
0
  • Stellaris: Leviathans Story Pack
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Shadowrun Returns
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Crusader Kings II: Way of Life
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Apocalypse
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings Complete
  • Prison Architect
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Cities in Motion 2
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Dharma
  • Europa Universalis 4: Emperor
  • Imperator: Rome - Magna Graecia
  • Europa Universalis IV: Dharma Pre-order
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury Pre-order
  • Europa Universalis IV
  • Crusader Kings III
  • Cities in Motion
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Shadowrun: Dragonfall
  • Victoria 2
  • Europa Universalis IV: Rule Britannia
  • Imperator: Rome Sign Up
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Imperator: Rome Deluxe Edition
  • Mount & Blade: With Fire and Sword
So I've never made a mod before but I've been thinking about this for a while. I searched in multiple areas and no one seems to have attempted it afaik.

I want to make the Seduce option from the Seduction focus always available to anyone of age regardless of their Focus. (If they have WoL of course.)

Is such a thing even possible? Bonus points in that I've been playing the AGOT mod and a certain 18+ mod and would ideally like it to be compatible with those but I understand that's a whole can of worms because not everyone is familiar with those. (Sorry for the censoring, I just don't know if mentioning the name of the 18+ mod is okay. It is off-site. If anyone would like me to specify I would be happy to PM you or something if that's okay with the forum moderators of course, I don't mean to cause trouble.)

Kind regards to whomever reads this!
Yeah, look up the Focus Plus mod on the steam workshop.
 

AndersonKlass

Recruit
29 Badges
Aug 29, 2013
6
0
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • 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
  • Crusader Kings III
  • Crusader Kings II: Jade Dragon
  • Tyranny - Bastards Wound
  • Tyranny - Tales from the Tiers
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
I'm trying to make a small event involving finding a rubix cube like item. When you find the cube you can ask someone to solve it for you. Depending on who they are I want there to be two different descriptions. One will say something along the lines of "The old man used his experience to solve the cube" etc etc.

The problem is that even if the person over 50 is selected the initial description always appears. Can anyone see what I am doing wrong here? Thank you.

Code:
desc = {
        text = rubix.Z16
        trigger = {
            FROM = {
                min_age = 16
                max_age = 50
                host = { character = ROOT }
            }
        }
    }


desc = {
        text = rubix.Z50
        trigger = {
            FROM = {
                min_age = 50
                max_age = 100
                host = { character = ROOT }
            }
        }
    }
 

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • 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
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
max_age and min_age are only used in pre-triggers. Instead the first should be
Code:
trigger = {
    FROM = {
        age = 16
        age <= 50
        host = { character = ROOT }
    }
}
With the second one being similar, but with the numbers swapped out.
 

crowdemon

Lt. General
47 Badges
May 13, 2013
1.330
1.238
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • 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: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings III
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cossacks
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Call to arms event
As @HandicapdHippo said, you need a filter and probably an AI filter. Other targetted decisions also have this:

Code:
       revoke_allowed = {
           always = no
       }

A from_potential block might also be required.

I'm still having trouble with this one.

Code:
prisoner_of_war = {
        filter = all
        from_potential = {
        }
        potential = {
        ai = no
        }
        allow = {
        ai = no
        }
        effect = {
        any_province = {
        if = {
            limit = { is_occupied = FROM }
            imprison = ROOT
            }
        }
        }       
        ai_will_do = {
        factor = 0
        }
    }
 

Auirus

First Lieutenant
80 Badges
Dec 10, 2016
217
1
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Republic
  • Crusader Kings II: Conclave
  • Stellaris: Apocalypse
  • Stellaris: Ancient Relics
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Green Cities
  • BATTLETECH: Season pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Necroids
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Dharma
  • Imperator: Rome - Magna Graecia
  • Cities: Skylines - Parklife
  • Prison Architect
  • BATTLETECH: Flashpoint
  • Europa Universalis IV
  • Crusader Kings III
  • Hearts of Iron IV: No Step Back
  • Europa Universalis 4: Emperor
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Victoria 2
  • Europa Universalis IV: Golden Century
  • BATTLETECH - Digital Deluxe Edition
  • Warlock: Master of the Arcane
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • BATTLETECH: Heavy Metal
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
I'm still having trouble with this one.

Code:
prisoner_of_war = {
        filter = all
        from_potential = {
        }
        potential = {
        ai = no
        }
        allow = {
        ai = no
        }
        effect = {
        any_province = {
        if = {
            limit = { is_occupied = FROM }
            imprison = ROOT
            }
        }
        }   
        ai_will_do = {
        factor = 0
        }
    }

Use this:
Code:
prisoner_of_war = {
        filter = all
        only_playable = yes
        ai = no
      
        from_potential = { ai = no }
        potential = { is_landed = yes }
        allow = {
            any_demesne_province = { controlled_by = FROM }
        }
        effect = { imprison = FROM }
}

1. you can use ai = no as a pretrigger to disable the AI from using it.
2. from_potential is the conditions for a character to have the decision available to him/her, in this case you the player
3. potential checks the target you right click on, in this case the person you're sieging
4. is_occupied only accepts yes or no. you'll want to use controlled_by instead
5. You're trying to imprison a province in ur original code, and using imprison = ROOT would have the character imprison themselves in this case.
6. you dont need an ai_will_do if the AI can't use the decision. Doesn't hurt, but doesn't do anything either.
 

Andrelvis

The Last Ghibelline
76 Badges
Apr 30, 2006
5.598
9.962
  • 500k Club
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings III
  • Europa Universalis III Complete
  • 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
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Are dynamic variable names (like dynamic flags, making use of "@" in their name) possible?
 

crowdemon

Lt. General
47 Badges
May 13, 2013
1.330
1.238
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • 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: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings III
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cossacks
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Call to arms event
It only allows me to capture the holder of the title, not everybody else, is there another way to change that?
If one of his or her holdings (not capital) is under my control, then nothing should happen, since they are not there.

However, if it is their capital holdings that are under my control, then I should able to capture them.
 

CorpusIurisCivilis

First Lieutenant
41 Badges
Aug 3, 2017
277
47
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Stellaris: Lithoids
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • BATTLETECH
  • BATTLETECH: Heavy Metal
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: The Republic
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Heya folks! Is someone willing to give my "Western Roman Empire" mod a look to check for any faults?
Much appreciated.

The mod contains the Title for the Western Roman Empire along with some attempts at decisions and events for the new title
 
Last edited:

zdavid345

Recruit
20 Badges
Jul 3, 2018
1
0
  • War of the Roses
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV
  • Crusader Kings II
  • 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
  • Knights of Honor
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Hey guys, I'm working on my first mod and need some help with modding "create a new vassal"

I'm trying to make it so that if you are of a certain religion group anybody you create with the "create a new vassal" option will spawn with a certain trait. I'm pretty sure I could get it working if I could just find where the code for "create a new vassal" is located, but I've searched around and have absolutely no idea.

Any help you guys could offer would be great!
 

Puczek

Private
18 Badges
Oct 14, 2015
23
0
  • Magicka 2
  • Crusader Kings III
  • Prison Architect
  • Imperator: Rome
  • Cities: Skylines - Parklife
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Magicka: Wizard Wars Founder Wizard
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV
  • Cities in Motion
  • Magicka
  • Crusader Kings II
  • Cities in Motion 2
Hey guys, I'm working on my first mod and need some help with modding "create a new vassal"

I'm trying to make it so that if you are of a certain religion group anybody you create with the "create a new vassal" option will spawn with a certain trait. I'm pretty sure I could get it working if I could just find where the code for "create a new vassal" is located, but I've searched around and have absolutely no idea.

Any help you guys could offer would be great!
Try using command to make new character, then scope it, give him selected titles and finally make it your vassal. Character creating command have option to add selected traits as far as I know.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
Does this line of code mean that I, the creator of the title, need to hold them? Or can it be that a vassal of mine holds them as well?

AND = {
has_landed_title = d_jerusalem
has_landed_title = d_baghdad
has_landed_title = d_athens
 

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • 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
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
Hey guys, I'm working on my first mod and need some help with modding "create a new vassal"

I'm trying to make it so that if you are of a certain religion group anybody you create with the "create a new vassal" option will spawn with a certain trait. I'm pretty sure I could get it working if I could just find where the code for "create a new vassal" is located, but I've searched around and have absolutely no idea.

Any help you guys could offer would be great!
If you are referred to the button when you right-click on a holding, that's hard-coded. In that case, you'll need to create a maintenance event to add the traits.

Does this line of code mean that I, the creator of the title, need to hold them? Or can it be that a vassal of mine holds them as well?

AND = {
has_landed_title = d_jerusalem
has_landed_title = d_baghdad
has_landed_title = d_athens
You need to hold them personally. For vassals to hold them too, you could try
Code:
AND = {
    d_jersusalem = { de_jure_liege_or_above = PREV }
    d_baghdad = { de_jure_liege_or_above = PREV }
    d_athens = { de_jure_liege_or_above = PREV }
}
There may be better ways to do it, but I just woke up.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • 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
  • Europa Universalis IV: El Dorado
  • Victoria 2
Thank you, that will help out tremendously.
 

UnderPL

Private
2 Badges
Jun 9, 2017
11
0
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
I have this little snippet that randomize religions for rulers and provinces. It works but I want it to make the rulers religion the same as his province. If he's Hindu, I want all of his province to be hindus, if he's sunni muslim, his provinces should also be muslim.

Is there a way to do that?

Code:
random_religion = {
       potential = {
           ai = no
       }

       allow = {
           always = yes
       }

       effect = {
           hidden_tooltip = {
               any_character = {
                   random_list = { # Randomize Religion
                       30 = { religion = sunni }
                       30 = { religion = catholic }
                       10 = { religion = jewish }
                       6 = { religion = hindu }
                       6 = { religion = buddhist }
                       3 = { religion = zoroastrian }
                       3 = { religion = west_african_pagan_reformed }
                       3 = { religion = norse_pagan_reformed }
                       3 = { religion = slavic_pagan_reformed }
                       3 = { religion = tengri_pagan_reformed }
                       3 = { religion = zun_pagan_reformed }   
                   }
               }
               any_province = {
                   random_list = { # Randomize Religion
                       30 = { religion = sunni }
                       30 = { religion = catholic }
                       10 = { religion = jewish }
                       6 = { religion = hindu }
                       6 = { religion = buddhist }
                       3 = { religion = zoroastrian }
                       3 = { religion = west_african_pagan_reformed }
                       3 = { religion = norse_pagan_reformed }
                       3 = { religion = slavic_pagan_reformed }
                       3 = { religion = tengri_pagan_reformed }
                       3 = { religion = zun_pagan_reformed }   
                   }
               }

           }
       }

       revoke_allowed = {
           always = no
       }

        ai_will_do = {
            factor = 0
        }
   }