AI personality modding template

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

Sadino

Watch out! It's the fuzz!
92 Badges
May 12, 2009
261
273
  • Victoria 2: Heart of Darkness
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Impire
  • Rome: Vae Victis
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Humble Paradox Bundle
  • Europa Universalis III Complete
  • 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: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Hearts of Iron III: Their Finest Hour
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Awesome!

Do they otherwise follow the template? So if say, we make a fanatic militarist type fallen empire that simply ignores your existence until you become a worthy adversary, would you just go setting them as 'honorbound' and just tweak the values like 'bravery' and such or do you need to do something else so they properly act like the 'base' fallen empires?
 

moglus

Resident Cat-Hoarder
101 Badges
Jan 2, 2011
1.027
3.122
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • 500k Club
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Europa Universalis III: Chronicles
  • Hearts of Iron III Collection
  • Rome Gold
  • Sengoku
  • Crusader Kings Complete
  • Sword of the Stars
  • Commander: Conquest of the Americas
  • Cities: Skylines
  • Surviving Mars
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders III
  • Warlock: Master of the Arcane
  • Majesty 2
  • Magicka
  • Prison Architect
  • Empire of Sin
  • Tyranny: Archon Edition
  • Pillars of Eternity
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Shadowrun: Dragonfall
  • Shadowrun Returns

How does that tie in with things like the species creator at the start of the game? i'm guessing it won't be as simple as changing:

Code:
trigger = { 
is_country_type = fallen_empire 
}

to

Code:
trigger = {
is_country_type = fallen_empire
}
OR = {
ai = no
}
}

to make something like a fallen empires shipset available to the player? (bare with me if the code is is a mess, operating off of ck2/eu4 knowledge here)

(ps. why wont it let me indent in code here?? :mad: much rage)
 
  • 2
Reactions:

VI Imre

Lt. General
76 Badges
Oct 6, 2010
1.556
560
  • Imperator: Rome Deluxe Edition
  • Victoria 3 Sign Up
  • 500k Club
You can play Ironman with mods but can't get achievements.

What about name lists? I really hope that you have moved them to a cosmetics folder from 'Common'.
 

Sadino

Watch out! It's the fuzz!
92 Badges
May 12, 2009
261
273
  • Victoria 2: Heart of Darkness
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Impire
  • Rome: Vae Victis
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Humble Paradox Bundle
  • Europa Universalis III Complete
  • 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: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Hearts of Iron III: Their Finest Hour
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Well these are all AI personality types, so I don't think you have to specify it as 'unavailable to the player'. Simply by being AI, it's unavailable to the player.
 
  • 4
Reactions:

moglus

Resident Cat-Hoarder
101 Badges
Jan 2, 2011
1.027
3.122
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • 500k Club
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Europa Universalis III: Chronicles
  • Hearts of Iron III Collection
  • Rome Gold
  • Sengoku
  • Crusader Kings Complete
  • Sword of the Stars
  • Commander: Conquest of the Americas
  • Cities: Skylines
  • Surviving Mars
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders III
  • Warlock: Master of the Arcane
  • Majesty 2
  • Magicka
  • Prison Architect
  • Empire of Sin
  • Tyranny: Archon Edition
  • Pillars of Eternity
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Shadowrun: Dragonfall
  • Shadowrun Returns
Well these are all AI personality types, so I don't think you have to specify it as 'unavailable to the player'. Simply by being AI, it's unavailable to the player.

I know, i wasn't asking about personality types tho ;) Wiz is responding on a thread modding, it's ma best chance for an answer, can't blame me for trying :p
 
  • 1
Reactions:

ahhheygao

Double-Peace Stegosaurus
54 Badges
Jan 2, 2013
3.027
5.849
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Conclave
  • 500k Club
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Jade Dragon
  • Imperator: Rome Sign Up
  • Crusader Kings II: The Republic
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • War of the Roses
  • Steel Division: Normand 44 Sign-up
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Res Publica
  • 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
  • Cities: Skylines
  • Leviathan: Warships
  • Europa Universalis III
  • Europa Universalis III Complete
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Pillars of Eternity
Not hard at all, it's all controlled through script.
I presume Fallen Empires' personalities just have most of their behaviors set to "no" and lowered willingness to do anything... and then for their specific quirk/awaken triggers, the events will just check AI personality, e.g. type = keepers_of_knowledge?
 
  • 1
Reactions:

Wizzington

Game Director (Victoria 3)
Paradox Staff
41 Badges
Nov 15, 2007
12.513
137.622
  • Hearts of Iron II: Armageddon
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sengoku
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • March of the Eagles
  • Majesty 2
  • Magicka
  • Heir to the Throne
  • Arsenal of Democracy
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Deus Vult
  • East India Company
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Prison Architect
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
I presume Fallen Empires' personalities just have most of their behaviors set to "no" and lowered willingness to do anything... and then for their specific quirk/awaken triggers, the events will just check AI personality, e.g. type = keepers_of_knowledge?

Pretty much.
 
  • 13
  • 3
Reactions:

Ifreann

Captain
43 Badges
Apr 7, 2015
343
1.364
  • Europa Universalis IV: Res Publica
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Third Rome
  • Impire
  • 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
  • Europa Universalis IV
  • Prison Architect
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Humanoids Species Pack
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Stellaris - Path to Destruction bundle
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris Sign-up
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: El Dorado
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Age of Wonders III
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
Great, thanks! Time to start scripting... I'll be turning the Blorgs into a "friendly" Fallen Empire!
It is now my dream for the Blorg to meet and befriend the Fallen Blorg.
 
  • 4
Reactions:

Kliwarrior

General
85 Badges
Oct 27, 2003
2.169
1.970
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Synthetic Dawn
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma Pre-order
  • Crusader Kings II: Holy Fury Pre-order
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Lithoids
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Rights of Man
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • VtM - Bloodlines 2 Blood Moon Edition
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Victoria 2
  • Rome Gold
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
The "fanatic_befrienders" AI will be used only if assigned to a specific species, or if you just design it ( = put the file in the right folder) , it will be a chance that a random species will use it ?
 

ahhheygao

Double-Peace Stegosaurus
54 Badges
Jan 2, 2013
3.027
5.849
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Conclave
  • 500k Club
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Jade Dragon
  • Imperator: Rome Sign Up
  • Crusader Kings II: The Republic
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • War of the Roses
  • Steel Division: Normand 44 Sign-up
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Res Publica
  • 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
  • Cities: Skylines
  • Leviathan: Warships
  • Europa Universalis III
  • Europa Universalis III Complete
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Pillars of Eternity
You... you'll make this available to the rest of us.. right?
If it passes my stringent QA, yes.

It'd take some time studying the codes and testing, but my plan for the Blorg Fallen Empire is:
Two personality types, 50/50 chance.

Type 1: The Blorgs have made too many mediocre friends in the past and suffered too many heartbreaks, so now they've become highly selective--only the best potential candidates will do for the Blorgs. And when they do eventually find that ideal friend... creepy stalker time!

Type 2: The Blorgs have become jaded after most of their beloved former friends left and/or died off... and they eventually become tsundere toward all these young upstart and i-it's not like they want to be friends or anything! But if they ever see someone else form a huge Alliance and Federation or have tons of Vassals and Protectorates, they become super jelly. Hmmph, how dare these whippersnappers not invite us to the party?!

The "fanatic_befrienders" AI will be used only if assigned to a specific species, or if you just design it ( = put the file in the right folder) , it will be a chance that a random species will use it ?
No, and yes.

Just look at the allow and weight_modifier in Wiz's code for fanatic_befrienders:
Code:
    allow = {
        NOT = { is_country_type = fallen_empire }
        has_ethic = "ethic_militarist"
        has_ethic = "ethic_fanatic_xenophile"
        has_trait = "trait_repugnant"
        has_trait = "trait_solitary"
        has_trait = "trait_venerable"
    }

    weight_modifier = {
        weight = 100
    }

It basically says if ANY randomly generated species JUST SO HAPPENS to have the exact same ethos and traits as the Blorgs did, then they will have an extremely high chance to be Fanatic Befriender personality.
 
Last edited:
  • 3
  • 2
Reactions:

Kordishal

Second Lieutenant
48 Badges
Jan 3, 2013
113
140
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Majesty 2
  • Magicka
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis IV
  • Imperator: Rome Sign Up
  • Stellaris: Megacorp
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Stellaris: Ancient Relics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
The "fanatic_befrienders" AI will be used only if assigned to a specific species, or if you just design it ( = put the file in the right folder) , it will be a chance that a random species will use it ?

Any empire with the exact ethos, trait and election-type would become this AI-personality.
 
  • 2
Reactions:

desiriel

7th Crucis Lancers RCT
112 Badges
Jan 7, 2010
236
345
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders: Planetfall - Revelations
  • Imperator: Rome Sign Up
  • Victoria 2
  • Victoria 3 Sign Up
  • Surviving Mars
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Parklife
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Conclave
  • Imperator: Rome Deluxe Edition
  • Shadowrun Returns
  • Stellaris: Apocalypse
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Necroids
  • Age of Wonders: Planetfall
  • BATTLETECH: Flashpoint
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Federations
  • BATTLETECH: Season pass
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Crusader Kings III: Royal Edition
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Natural Disasters
  • BATTLETECH - Backer
  • Shadowrun: Dragonfall
  • Stellaris: Distant Stars
  • Cities: Skylines - Green Cities
  • Stellaris: Lithoids
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Damn Wiz, you're tempting me to start modding in Stellaris and I'm already lacking time enough in my life to sleep and eat (maybe I could during either...).
 
  • 2
Reactions: