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

DanRozario

Private
6 Badges
Sep 5, 2016
21
1
  • Crusader Kings II
  • Europa Universalis IV
  • War of the Roses
  • Stellaris
  • Crusader Kings III
  • Crusader Kings II: Sword of Islam
Hi folks, I'm just trying to make a small event (as part of a slightly "not as small" mod) that will have the character at hand grant a random demesne title to a random dynasty member, given my established conditions. Running the event in game, however, does not produce a single result. I've run it through the validator and it gives me no errors as the script stands.
Here it is:

namespace = bgm

character_event = {
id = bgm.1

is_triggered_only = yes
hide_window = yes

trigger = {
demesne_size = 2
tier = count
independent = no
}

immediate = {
random_demesne_title = {
limit = {
can_be_given_away = yes
tier = count
is_feudal = yes
location = {
is_capital = no
}
}
grant_title = random_dynasty_member
}
}
}

I'm very new to modding so I'm sure there's something in here that is in fact absurdly placed. Hope someone can help out :)
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Hi folks, I'm just trying to make a small event (as part of a slightly "not as small" mod) that will have the character at hand grant a random demesne title to a random dynasty member, given my established conditions. Running the event in game, however, does not produce a single result. I've run it through the validator and it gives me no errors as the script stands.
Here it is:

namespace = bgm

character_event = {
id = bgm.1

is_triggered_only = yes
hide_window = yes

trigger = {
demesne_size = 2
tier = count
independent = no
}

immediate = {
random_demesne_title = {
limit = {
can_be_given_away = yes
tier = count
is_feudal = yes
location = {
is_capital = no
}
}
grant_title = random_dynasty_member
}
}
}

I'm very new to modding so I'm sure there's something in here that is in fact absurdly placed. Hope someone can help out :)
Random dynasty member cannot be used as RHS scope.
You would need to scope to the dynasty member and then back to ROOT and then find the title to grant and use PREV to target the dynasty member when you grant the title.