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

Rob de Hard

I said ink, not drink!
7 Badges
Jul 21, 2004
617
7
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • War of the Roses
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings Complete
I am editing charevents 1160 and 1161 and want to change the default dialogue box contents for the event from 'Indulge the impulse, resist the impulse etc' to my own text.

Reading the event script:

#####################################
# A pretty wench catches your eyes #
#####################################
character_event = {
id = 1160

picture = "event_intrigue2"

trigger = {
condition = { type = ruler }
condition = { type = gender value = male }
condition = { type = age value = 16 }
condition = { type = not value = { type = age value = 80 } }
condition = { type = not value = { type = trait value = chaste } }
condition = { type = not value = { type = trait value = celibate } }
}

mean_time_to_happen = {
months = 360

modifier = {
condition = { type = trait value = depression }
factor = 2
}
modifier = {
condition = { type = trait value = detached_priest }
factor = 1.5
}
modifier = {
condition = { type = trait value = energetic }
factor = 0.8
}
modifier = {
condition = { type = trait value = illness }
factor = 0.8
}
modifier = {
condition = { type = trait value = indulgent }
factor = 0.6
}
modifier = {
condition = { type = trait value = lustful }
factor = 0.4
}
modifier = {
condition = { type = trait value = mastermind_theologian }
factor = 3
}
modifier = {
condition = { type = trait value = modest }
factor = 1.2
}
modifier = {
condition = { type = trait value = plagueinfested}
factor = 10
}
modifier = {
condition = { type = trait value = pneumonia }
factor = 5
}
modifier = {
condition = { type = trait value = scholarly_theologian }
factor = 2
}
modifier = {
condition = { type = trait value = temperate }
factor = 1.5
}
modifier = {
condition = { type = trait value = zealous }
factor = 2
}
modifier = {
condition = { type = any_friend condition = { type = gender value = female } } # Has lover already
factor = 2.0
}
modifier = {
condition = { type = spouse condition = { type = is_rival } } # Marital problems
factor = 0.5
}

}

action_a = {#It is my right!
ai_chance = 25
effect = { type = create_courtier value = bastard }
effect = {
type = random
chance = 25
effect = {
type = add_trait
value = lustful
}
}
}

action_b = {#It is a sin, but then life is short ..
ai_chance = 25
effect = {
type = random
chance = 10
effect = {
type = add_trait
value = reckless
}
}
}

action_c = {#What do priests know of love?
ai_chance = 25
effect = {
type = random
chance = 10
effect = {
type = add_trait
value = indulgent
}
}
}
action_d = {#I pledge myself to celibacy!
ai_chance = 25
effect = { type = piety value = 500 }
effect = {
type = random
chance = 25
effect = {
type = add_trait
value = celibate
}
}
}
}

Where the text is commented out with the hash is what I want to actually appear in the diologue not 'Indulge the Impulse'.

I can't find anywhere in the script the variables for the dialogue box contents - anyone tell me where to find them? Are they in another file?
 
The text for events is in one of the csv files in \config. No telling on which one, just search file contents for the event number or text.

They're of the format:
Code:
EVT_1234_NAME;event text;;;;;;;;;;X
ACTIONNAME1234A;action a text;;;;;;;;;;X
ACTIONNAME1234B;action b text;;;;;;;;;;X

Events with no actions (using immidate instead) have just the name.

Text in the event files themselves is ignored and serves only as comments.