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

Magtaius

Recruit
49 Badges
Feb 18, 2017
8
0
  • War of the Vikings
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Horse Lords
  • Magicka 2 - Signup Campaign
  • Europa Universalis IV: Res Publica
  • Magicka
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • BATTLETECH: Heavy Metal
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Crusader Kings III
  • Stellaris
  • Europa Universalis IV
  • War of the Roses
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Crusader Kings II: Conclave
  • BATTLETECH
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • BATTLETECH: Flashpoint
  • Imperator: Rome
  • BATTLETECH: Season pass
Hello everyone,

I wanted to inquire if anyone would be able to assist with creating a simple mod which adds a specific trait to a specific dynasty ID on birth.

I would like to add the trait 'Strong' to characters of dynasty ID 3333 with an event trigger on birth. Please note this would mainly be for AI and not for player dynasties.

Any help is highly appreciated.

Best regards,
Magtaius
 
You'll need a simple event.
Code:
character_event = {
  id = 3333
  hide_window = yes
  is_triggered_only = yes

  trigger = {
    dynasty = 3333
  }

  immediate = {
    add_trait = strong
  }
}
And triggers it with on_actions, on_birth precisely.
In "\common\on_actions\01_on_actions.txt"
Code:
# character
on_birth = {
  events = {
    3333 # Custom birth event
  }
}
That's all.