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

DYLAN_1

Sergeant
25 Badges
Aug 4, 2014
70
39
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome
  • Surviving Mars: Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Res Publica
  • Imperator: Rome Sign Up
  • Age of Wonders III
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Magicka
I am trying to imprison a historical character through a hidden event that fires w/ the on_war_ended_victory on_action.

This is what I have...


Code:
character_event = {
    id = ais.2000
   
    hide_window = yes

    is_triggered_only = yes
   
    trigger = {
        AND = {
            character = 77043
            has_landed_title = e_iron_throne
        }
    }

immediate = {

        c_317 = {imprison = c_77043}
     
    }

I've also tried the following variations:

Code:
    immediate = {
        imprison = c_317 #
    }
   
    immediate = {
        c_317 = {
            imprison = ROOT/FROM/PREV
        }
    }
 
I am trying to imprison a historical character through a hidden event that fires w/ the on_war_ended_victory on_action.

This is what I have...


Code:
character_event = {
    id = ais.2000
  
    hide_window = yes

    is_triggered_only = yes
  
    trigger = {
        AND = {
            character = 77043
            has_landed_title = e_iron_throne
        }
    }

immediate = {

        c_317 = {imprison = c_77043}
    
    }

I've also tried the following variations:

Code:
    immediate = {
        imprison = c_317 #
    }
  
    immediate = {
        c_317 = {
            imprison = ROOT/FROM/PREV
        }
    }
The c_ prefix is for counties, character ids require no prefix.
You want something like

Code:
character_event = {
    id = ais.2000
  
    hide_window = yes

    is_triggered_only = yes
  
    trigger = {
        AND = {
            character = 77043
            has_landed_title = e_iron_throne
        }
    }

immediate = {

        317 = {imprison = 77043}
    
    }

which should make the character with the id 317 imprison 77043.

Also, the ROOT/FROM/PREV is supposed to indicate that you can use ROOT or FROM or PREV (or any other character scope) in that position, see the wiki for an explanation of how to use them.