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

Yuwei5

Recruit
16 Badges
Dec 9, 2016
4
1
  • Crusader Kings II
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Sengoku
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
Like a group of say five pictures, and whenever the event occurs one of them is randomly displayed, or do I have to make the event five times and associate one picture each?
 
  • 1
Reactions:

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
I haven't tried, but apparently you can override the picture in a desc = { } block.
And in case multiple desc = { } block would match based on their triggers, one will be chosen randomly.

Here's one of the (rare) vanilla examples with picture inside desc = { }, in ze_lunatic.txt:
Code:
### Horse Chancellor
character_event = {
   id = ZE.15000
   border = GFX_event_normal_frame_religion
   picture = GFX_evt_courier

   desc = {
       trigger = {
           has_dlc = "Horse Lords"
           is_nomadic = yes
       }

       text = EVTDESC6317
       picture = GFX_evt_horse_friend
   }
   desc = {
       trigger = {
           NAND = {
               has_dlc = "Horse Lords"
               is_nomadic = yes
           }
       }

       text = EVTDESC6317
       picture = GFX_evt_courier
   }
(...)
 

Yuwei5

Recruit
16 Badges
Dec 9, 2016
4
1
  • Crusader Kings II
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Sengoku
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
Thank you. You're cool.

Update: I couldn't make it work, or I did it incorrectly. I put 5 desc with the same triggers but different pictures then tested the event 10 times and all 10 it just showed the picture last on the list.
 
Last edited:

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
Thank you. You're cool.

Update: I couldn't make it work, or I did it incorrectly. I put 5 desc with the same triggers but different pictures then tested the event 10 times and all 10 it just showed the picture last on the list.
You could try and add an immediate block that has a random list that will set one of five character flags and then have each of your different event picture descs check for one of those flags so you will always get a random one if the game is not correctly picking a random one.
Before you do that are you checking the event giving a different picture with the same character on the same day as I imagine if you do that the reason you are getting the same one is because the random seed has not changed. Try checking with a variety of characters on different days and you may get it to work properly