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

ShadowNinja909

Second Lieutenant
79 Badges
Nov 4, 2014
195
255
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • 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: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Stellaris: Federations
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Prison Architect
  • Cities: Skylines - Natural Disasters
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV
  • Cities: Skylines
  • Rome: Vae Victis
  • Victoria 2
  • Supreme Ruler: Cold War
  • Rome Gold
  • Magicka
I have a decision which converts Feudal vassals to Clan and I'd like the prestige cost to scale with the amount of feudal vassals. I've tried making a scripted effect but have no idea how to use it in the decision. The wiki says the values in cost = { } can be script values, but I'm not entirely sure what this means or how to implement it.

Here's the scripted effect if its needed:
Code:
feudal_to_clan_prestige_cost = {
    set_variable = {
        name = feudal_to_clan_cost
        value = 0
    }
    any_vassal = {
        limit = { government_has_flag = government_is_feudal }
        change_variable = {
            name = feudal_to_clan_cost
            add = 150
        }
    }
    remove_variable = feudal_to_clan_cost
}

I'm assuming the things under any_vassal work like a loop and iterate with each vassal, adding 150 to the variable each time. Let me know if this is not the case.
 
Last edited: