• 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.
I'm having a hard time finding character id's. Any advice?

Search for title, for example who owns the duke of york, so go to the title section and do a search for d_york and it will give you the id of who is currently is holding it!

Now search for that id, and you can edit the options for him in the save file, or to use the id commands earlier in the thread.
 
#character
on_yearly_pulse = {
random_events = {

# Feudal Life Events
100 = 4000
100 = 4005
100 = 4010
100 = 4015
100 = 4020
100 = 4035
100 = 4036
100 = 4040
100 = 4045
100 = 4050
100 = 4055
100 = 4060
100 = 4085
100 = 4110
100 = 4115
100 = 4120
100 = 4125
100 = 4130
100 = 4135
100 = 4145
100 = 4150
100 = 4155
100 = 4175
100 = 4180
100 = 4185
100 = 4190
100 = 4195
100 = 4200
100 = 4205
100 = 4210
100 = 4215

# Married Life Events
100 = 30000
100 = 30001
100 = 30004
100 = 30020
100 = 30021
100 = 30025
100 = 30030
100 = 30040
100 = 30045
100 = 30050
100 = 30051
100 = 30052
100 = 30055
100 = 30056
100 = 30057
100 = 30058
100 = 30059
100 = 30060
100 = 30063
100 = 30066
100 = 30069
100 = 30072
100 = 30075
100 = 30085
100 = 30100
100 = 30105

#Lovers Events
100 = 64000
100 = 64005
100 = 64006
100 = 64010
100 = 64015
100 = 64025
100 = 64030
100 = 64035
100 = 64040

#Job Flavour Events
100 = 75020
100 = 75030
100 = 75040
100 = 75050
100 = 75060
100 = 75065
100 = 75070
100 = 75075
100 = 75080
100 = 75085
100 = 75090
100 = 75095
100 = 75105
100 = 75110
100 = 75120

#Dynasty requests
250 = 66000
250 = 66100

#Hedge Knights Events
100 = 71000
100 = 71006

#Rumours Events
10 = 69000
10 = 69003
10 = 69010
10 = 69014
10 = 69020
10 = 69023
10 = 69030
10 = 69037
10 = 69040
10 = 69043
10 = 69050
10 = 69052
10 = 69054
10 = 69056
10 = 69058
10 = 69060
10 = 69063
10 = 69070
10 = 69073

#Court Events
100 = 73000
100 = 73001
100 = 73002
100 = 73003
100 = 73004
100 = 73005
100 = 73006
100 = 73007
100 = 73008
100 = 73009
100 = 73010

#Religious Events
100 = 39230

#Bastard Events
100 = 76000
100 = 76005
100 = 76010
100 = 76015
100 = 76020
100 = 76025
100 = 76030
100 = 76035
100 = 76040

#Ward Events
100 = 78000
100 = 78005
100 = 78010
100 = 78015
100 = 78020
100 = 78025
100 = 78030

5000 = 0 # Chance of no yearly event
}
}


#character
on_bi_yearly_pulse = {
random_events = {

#Various Traits Events
10 = 65000
10 = 65001
10 = 65003
10 = 65005
10 = 65007
10 = 65009
10 = 65011
10 = 65020
10 = 65021
10 = 65022
10 = 65023
10 = 65030
10 = 65031
10 = 65032
10 = 65033
10 = 65034
10 = 65035
10 = 65036
10 = 65037
10 = 65040
10 = 65041
10 = 65042
10 = 65043
10 = 65044
10 = 65045
10 = 65048
10 = 65049
10 = 65050
10 = 65051
10 = 65052
10 = 65053
10 = 65055
10 = 65057

#Seven Virtues
10 = 3020
10 = 3021
10 = 3022
10 = 3025
10 = 3026
10 = 3030
10 = 3035
10 = 3012
10 = 3013
10 = 3013
10 = 3095
10 = 3080
10 = 3081
10 = 3082
10 = 3083
10 = 3084
10 = 3085
10 = 3120
10 = 3121
10 = 3123
10 = 3124
10 = 3125
10 = 3126
10 = 3200
10 = 3202
10 = 3203
10 = 3205
10 = 3240
10 = 3242
10 = 3243
10 = 3245
10 = 3246
10 = 3247
10 = 3248
10 = 3258
10 = 3160
#10 = 3165 - deleted
10 = 3170
10 = 3175

#Seven Deadly Sins
10 = 3000
10 = 3001
10 = 3005
10 = 3010
10 = 3011
10 = 3040
10 = 3045
10 = 3050
10 = 3055
10 = 3060
10 = 3065
10 = 3070
10 = 3075
10 = 3100
10 = 3105
10 = 3110
10 = 3115
10 = 3180
10 = 3185
10 = 3190
10 = 3195
10 = 3140
10 = 3141
10 = 3142
10 = 3143
10 = 3144
10 = 3145
10 = 3220
10 = 3225
10 = 3230
10 = 3235


#Misc Traits, Paranoid, Honest,Gregagrious, Craven
10 = 3480
10 = 3485
10 = 3490
10 = 3495
10 = 3280
10 = 3282
10 = 3283
10 = 3286
10 = 3710
10 = 3715
10 = 3720
10 = 3725
10 = 3300
10 = 3305
10 = 3310
10 = 3315


#Deceitful
10 = 3260
10 = 3261
10 = 3262
10 = 3263


#Lifestyle events
10 = 3520
10 = 3525
10 = 3530
10 = 3535
10 = 3540
10 = 3543
10 = 3546
10 = 3550
10 = 3555
10 = 3560
10 = 3563
10 = 3568
10 = 3570
10 = 3575
10 = 3585
10 = 3590
10 = 3593
10 = 3600
10 = 3605
10 = 3610
10 = 3615
10 = 3620
10 = 3625
10 = 3630
10 = 3635
10 = 3640
10 = 3645
10 = 3650
10 = 3655
10 = 3665
10 = 3660

2000 = 0 # Chance of no bi-yearly event
}
}

#character
on_five_year_pulse = {
random_events = {
#---- misc traits needing revision below...



#Brave
10 = 3320
10 = 3325
10 = 3330
10 = 3335

#Shy
10 = 3340
10 = 3345
10 = 3350
10 = 3355

#Ambitious
10 = 3360
10 = 3365
10 = 3370
10 = 3375

#Content
10 = 3380
10 = 3385
10 = 3390
10 = 3395

#Arbitrary
10 = 3400
10 = 3405
10 = 3410
10 = 3415

#Just
10 = 3420
10 = 3425
10 = 3430
10 = 3435

#Cynical
10 = 3440
10 = 3445
10 = 3450
10 = 3455

#Zealous
10 = 3460
10 = 3465
10 = 3470
10 = 3475

#Trusting
10 = 3500
10 = 3505
10 = 3510
10 = 3515

#Personality Traits
10 = 1000
10 = 1001
10 = 1002
10 = 1003
10 = 1004
10 = 1005
10 = 1006
10 = 1007
10 = 1008
10 = 1009
10 = 1010
10 = 1011
10 = 1012
10 = 1013
10 = 1014
10 = 1015
10 = 1016
10 = 1017
10 = 1018
10 = 1019
10 = 1028
10 = 1029
10 = 1030
10 = 1031
10 = 1032
10 = 1033
10 = 1034
10 = 1035
10 = 1036
10 = 1037
10 = 1038
10 = 1039
10 = 1040
10 = 1041
10 = 1042
10 = 1043
10 = 1044
10 = 1045
10 = 1046
10 = 1047
10 = 1048
10 = 1049
10 = 1050
10 = 1051
10 = 1052
10 = 1053
10 = 1054
10 = 1057
10 = 1058

40 = 0
}
}

#character
on_decade_pulse = {

}

# For characters 2 to 16 years old
on_yearly_childhood_pulse = {
random_events = {
# Childhood Personality Events

#Age 6-16, aiming to get at least 4 traits before adult.
100 = 1500
100 = 1510
100 = 1520
100 = 1530
100 = 1540
100 = 1550
100 = 1560
100 = 1570
100 = 1580
100 = 1590
100 = 1600
100 = 1610
100 = 1620
100 = 1630
100 = 1640
100 = 1650
100 = 1660
100 = 1670
100 = 1680
100 = 1690
100 = 1700
100 = 1710
100 = 1720
100 = 1730
100 = 1965

#Toddler flavour events (age 2-5), not very common, but some will get them.
10 = 1900
10 = 1901
10 = 1902
10 = 1903
10 = 1904

#Young children flavour events, (age 6-10), not very common, but some will get then..
20 = 1905
20 = 1906
20 = 1907
20 = 1908
20 = 1909
20 = 1910
20 = 1911
20 = 1912

#Youngsters flavour events (age 11-15), not very common, but some will get then..
50 = 1913
50 = 1914
50 = 1915
50 = 1916
50 = 1917
50 = 1918
50 = 1919
50 = 1920
50 = 1921
50 = 1922
50 = 1923
50 = 1924
50 = 1925
50 = 1926
50 = 1927
50 = 1928
50 = 1929
50 = 1930
50 = 1931
50 = 1932
50 = 1933
50 = 1934
50 = 1935

1500 = 0
}
}

#on combat pulse
on_combat_pulse = {
random_events = {
3000 = 0
10 = 242 # Killed
20 = 243 # Wounded
10 = 244 # Maimed
5 = 245 # Serious head injury
20 = 246 # Improves martial education
10 = 247 # Flat improvement to martial skill

10 = 248 # Knowledge boost in capital from battle.
10 = 255 # Marshal: Unnecessary violence
15 = 270 # Gain Brave
15 = 271 # Gain Craven
10 = 272 # Gain Wroth
10 = 273 # Gain Patient

}
}

#on siege pulse
on_siege_pulse = {
random_events = {
200000 = 0
100 = 62000
100 = 62001
100 = 62002
100 = 62003
100 = 62004
100 = 62005
100 = 62006
100 = 62007
100 = 62008
100 = 62009
100 = 62010
25 = 62014
100 = 62015
1 = 62011
1 = 62012
1 = 62013
}
}

#character
on_battle_won = {
random_events = {
1000 = 0
10 = 260 # Heroism shown
10 = 261 # Soldier Distinguish himself.
100 = 8310 # Crusader becomes zealous
}
}

on_battle_won_leader = {

}

#character
on_battle_lost = {
random_events = {
1000 = 0
50 = 250 # Imprisoned by the enemy
50 = 8320 # Crusader becomes cynical
}
}

on_battle_lost_leader = {

}

#on_siege_won = {
#
#}

on_siege_won_leader = {
events = {
8330 # Conquers the crusade target
}
random_events = {
300 = 0
100 = 8340 # Finds the Spear of Destiny / Holy Lance
100 = 8342 # Finds the Holy Grail
500 = 8345 # Sack of Jerusalem

}
}

#on_siege_lost = {
#
#}

on_siege_lost_leader = {
events = {
8350 # Loses the crusade target's capital
}
}


#character
on_failed_assassination = {
random_events = {
85 = 156 # No harm done
10 = 157 # Wounded
5 = 158 # Maimed
}
}

#character
on_failed_assassination_disc = {
random_events = {
85 = 159 # No harm done
10 = 160 # Wounded
5 = 161 # Maimed
}
}

#character
on_assassination = {
events = {
162
}
}

#character
on_assassination_disc = {
events = {
163
}
}

#character
on_bastard_birth = {
events = {
300 # A Bastard is born
}
}

#character (at 2 months)
on_pregnancy = {
events = {
400 # Pregnancy in matrimony
401 # Pregnancy out of wedlock
}
}

#character (at 2 months)
on_bastard_pregnancy = {
events = {
402 # Pregnancy in matrimony, with another father!
}
}

#character
on_mission_creation = {
events = {
200 # Crusade against Muslims
201 # Holy War against Pagans
320 # Jihad against Christians
}
}

# Character.
on_marriage = {
events = {
500 # Royal Marriage Aid Duty
}
}

#character. Triggers if someone tries to imprison someone landed and fails. This leads to an automatic war declaration(independece)
on_avoided_imprison_started_war = {
events = {
150 # Avoided imprison, declared independece
}
}

#character. Triggers if someone becomes imprisoned by the diplo-action
on_became_imprisoned = {
events = {
151 # Was imprisoned
}
}

#character. Triggers if someone tries to imprison someone unlanded and fails. Character is exiled to another country
on_avoided_imprison_fled_country = {
events = {
152
}
}

#character. Triggers if someone is released from prison
on_released_from_prison = {
events = {
153
}
}

#character. Triggers if someone is executed
on_executed = {
events = {
154
}
}

#character. Triggers if someone is exiled
on_exiled = {
events = {
155
}
}

on_death = {
events = {
8250
24500
24502
}
random_events = {
10 = 24505
10 = 24510
100 = 0
}
}

on_merc_rampage = {
events = {
38050
}
}

on_merc_leave = {
events = {
38051
}
}

on_merc_turn_coat_from = {
events = {
38052
}
}

on_merc_turn_coat_to = {
events = {
38053
}
}

on_holy_order_leave = {
events = {
38054
}
}

on_letter_event_message = {
events = {
1
}
}

on_character_event_message = {
events = {
2
}
}

###########################
# DIPLOMATIC NOTIFICATIONS
###########################

DEMAND_RELIGIOUS_CONVERSION_INTERACTION_ACCEPT_EVENT = {
events = {
202
}
}

DEMAND_RELIGIOUS_CONVERSION_INTERACTION_DECLINE_EVENT = {
events = {
203
}
}

REVOKE_TITLE_INTERACTION_ACCEPT_EVENT = {
events = {
204
}
}

REVOKE_TITLE_INTERACTION_DECLINE_EVENT = {
events = {
205
}
}

OFFER_PEACE_INTERACTION_ACCEPT_EVENT = {
events = {
206
}
}

OFFER_PEACE_INTERACTION_DECLINE_EVENT = {
events = {
207
}
}

SEND_GIFT_INTERACTION_ACCEPT_EVENT = {
events = {
208
}
}

SEND_GIFT_INTERACTION_DECLINE_EVENT = {
events = {
209
}
}

OFFER_VASSALIZATION_INTERACTION_ACCEPT_EVENT = {
events = {
210
}
}

OFFER_VASSALIZATION_INTERACTION_DECLINE_EVENT = {
events = {
211
}
}

ARRANGE_BETROTHAL_INTERACTION_ACCEPT_EVENT = {
events = {
212
}
}

ARRANGE_BETROTHAL_INTERACTION_DECLINE_EVENT = {
events = {
213
}
}

OFFER_SUCCESSION_MARRIGE_INTERACTION_ACCEPT_EVENT = {
events = {
214
}
}

OFFER_SUCCESSION_MARRIGE_INTERACTION_DECLINE_EVENT = {
events = {
215
}
}

OFFER_MARRIGE_INTERACTION_ACCEPT_EVENT = {
events = {
216
}
}

OFFER_MARRIGE_INTERACTION_DECLINE_EVENT = {
events = {
217
}
}

RANSOM_CHARACTER_INTERACTION_ACCEPT_EVENT = {
events = {
218
}
}

RANSOM_CHARACTER_INTERACTION_DECLINE_EVENT = {
events = {
219
}
}

EDUCATE_CHARACTER_INTERACTION_ACCEPT_EVENT = {
events = {
220
}
}

EDUCATE_CHARACTER_INTERACTION_DECLINE_EVENT = {
events = {
221
}
}

ABANDON_AMBITION_INTERACTION_ACCEPT_EVENT = {
events = {
222
}
}

ABANDON_AMBITION_INTERACTION_DECLINE_EVENT = {
events = {
223
}
}

STOP_BACKING_AMBITION_INTERACTION_ACCEPT_EVENT = {
events = {
224
}
}

STOP_BACKING_AMBITION_INTERACTION_DECLINE_EVENT = {
events = {
225
}
}

JOIN_AMBITION_INTERACTION_ACCEPT_EVENT = {
events = {
226
}
}

JOIN_AMBITION_INTERACTION_DECLINE_EVENT = {
events = {
227
}
}

GRANT_LANDED_TITLE_INTERACTION_ACCEPT_EVENT = {
events = {
228
}
}

GRANT_LANDED_TITLE_INTERACTION_DECLINE_EVENT = {
events = {
# 229
}
}

APPOINT_TO_OFFICE_INTERACTION_ACCEPT_EVENT = {
events = {
230
}
}

APPOINT_TO_OFFICE_INTERACTION_DECLINE_EVENT = {
events = {
231
}
}

ASK_FOR_INVASION_INTERACTION_ACCEPT_EVENT = {
events = {
232
}
}

ASK_FOR_INVASION_INTERACTION_DECLINE_EVENT = {
events = {
233
}
}

ASK_FOR_DIVORCE_INTERACTION_ACCEPT_EVENT = {
events = {
234
}
}

ASK_FOR_DIVORCE_INTERACTION_DECLINE_EVENT = {
events = {
235
}
}

ASK_FOR_EXCOMMUNICATION_INTERACTION_ACCEPT_EVENT = {
events = {
236
}
}

ASK_FOR_EXCOMMUNICATION_INTERACTION_DECLINE_EVENT = {
events = {
237
}
}

CALL_ALLY_INTERACTION_ACCEPT_EVENT = {
events = {
238
}
}

CALL_ALLY_INTERACTION_DECLINE_EVENT = {
events = {
239
}
}

DECLARE_WAR_INTERACTION_ACCEPT_EVENT = {
events = {
240
241
}
}

INVITE_TO_COURT_INTERACTION_ACCEPT_EVENT = {
events = {
280
}
}

INVITE_TO_COURT_INTERACTION_DECLINE_EVENT = {
events = {
281
}
}

ASK_FOR_VASSALIZATION_INTERACTION_ACCEPT_EVENT = {
events = {
282
}
}

ASK_FOR_VASSALIZATION_INTERACTION_DECLINE_EVENT = {
events = {
283
}
}

ASK_TO_LIFT_EXCOMMUNICATION_INTERACTION_ACCEPT_EVENT = {
events = {
284
}
}

ASK_TO_LIFT_EXCOMMUNICATION_INTERACTION_DECLINE_EVENT = {
events = {
285
}
}

ASK_TO_RANSOM_CHARACTER_INTERACTION_ACCEPT_EVENT = {
events = {
286
}
}

ASK_TO_RANSOM_CHARACTER_INTERACTION_DECLINE_EVENT = {
events = {
287
}
}

# never triggered, but reserved for CB use
on_warleader_death = {
events = {
251
}
}

# Respond to a proposed change of law
on_approve_law = {
events = {
290
}
}

# Respond to a proposed change of de jure law
on_approve_de_jure_law = {
events = {
291
292
}
}

# When rebels appear
on_rebel_revolt = {
events = {
600
}
}

# When province defects to rebels
on_defect_to_rebels = {
events = {
610
}
}

# When rebels disperse
on_defect_from_rebels = {
events = {
615
}
}

# When a mission succeeds
on_mission_success = {
events = {
620
}
}

# When a mission fails
on_mission_failure = {
events = {
621
}
}
 
You have to open the save file, I usually use textpad. Finding your ruler is easy because they have his ID right at the top. I'll use Duke Owain as an example, his ID is 507441, so to find his entry I'll search for "507441= and it'll get him for me. Under his entry you can find the ID for his parents, his siblings, and his spouse, just search from them the same way. If you're trying to find someone else I usally use a search for their name and use the birthdate as the confirmation. Again using Owain as an example, I'll do a search for "Owain". There's several that'll come up so before looking I'll get his birthday from the game (mouse over his age and it'll give the birthday). In Owain's case, his b-day is June 28, 1072 so I'll search for Owain's until I find one that has 1072.6.28 as the birth date and there's my target.

Hopefully that'll help?

Thanks a lot guys. I was searching fo the duke of Bedford. Found d_bedford and looked there but no luck. Will search for names. Cheers.
 
Demo event
Hi. I have no view on cheating so if this is unwanted then please modderate it out since the console was disabled in the demo. I like playing with the code and numbers of this game. I started playing with this script in the demo and there are plenty of things you can do. To the point. I made one event for the demo that contains allot of options for Mathilda. It is sett to go off two times at the start of the game between age 20 and 23 but that can be changed to whatever or just turn off the trigger. I got some ideas and help from this thread and i thought you might have use for this event(mainly impregnating and killing) or part of it for cheating or use part of the code for making script mods. It is still a work in progress so some parts might be missing and i am sorry for my poor english. It began as a small test event but as i went along i found more things that it could do. So it is a bit messy. Not too messy i hope. The idea of the script is that you can use it to fire a new script when you press an option. The first event is the event menu and you have to go back there to close the event, unless the event kills you ;) . Since it seems the limit is 4 options on every page i used the last option to go back to the previous event or further back. And from there you can fire all the other events or take paths to them. Sometimes an option will change something and at the same time fire a new event. copy the code text into a file in the /events folder and it should work. If it works for the vanilla game then you can fire it using the console command. Start event is 800060


List of what it can do and notes.

Skills = changing diplomacy, martial, stewardship, intrigue and learning
Health = change health +1 -1 or +10000
Fertility chance = add fertility lots, some or remove alot
Impregnate = Spouse (always the woman. One kid pr click(sometimes twin) and no bad traits added, thanks Battlecry), lover, impregnate by liege(seem to work on same gender, miracle)
Traits = add seven virtues or sins and a couple other good ones.
Health traits = remove all bad ones, including incapable. Includes an instant self kill event and one event that gives possessed and lunatic traits for some fun events.
Career = Lets you change your career trait to the best one in the career you want. Or try to have all five on your own risk.
Cash, prestige and piety = no explaining needed
Religion = Change your religion, its moral authority, kill the head of the religion (change religion, change its authority to minimum creates lots of heresys), last option lets you activate the three holy orders early. Makes them accessible to be hired. The Shiiite muslims gets one holy order from the start that i have seen.
Culture = change your culture to one of the 50 you can choose from. Some options change your culture while taking you further to choose from more.
Free Troops = Used the mongol event to give you free troops in galleys for no upkeep. Spawns near Norway.
Courtiers = Adds 5 skilled courtiers instead of changing skills on your current ones, each with their own specialty. Tried to give them ok traits. Another option adds a skilled wife and the last one gives you a kindsman if you need an extra dynasty member.
Relations = added a relations option. Gives improved relations for life with your vassals, kids, liege, spouse, head of church. It is repeatable so you can stack it.
Technology = two options. One gives you max stats in 1 random civ, mil and eco tech in your capital. The other tech option does the same to whatever region you are in. So you can lead troops to every region you own and fire the event there. It seems you have to start the event from the start over again to get new randoms.
Claims = This option gives you an instant claim straight away of your choosing. The location is decided by where you have your chancellor. Three options lets you choose between claims to the county, dutchy or the kingdom.
Kill people = This option was inspired by this thread and this and the impregnate options are why im posting this event here. This option kills people with one click. Be carefull so you dont kill yourself with any of these options. You can choose from these options so far: The owner of the province where your spymaster or marshal is currently(probably the best option to kill any ruler in the game, can probably be reworked to kill the heir, children, spouse or other court members of that ruler too). Spouse, lover, lovers spouse, liege, lieges spouse, your heir(usefull to get rid of a useless heir), all your children, all female children, people who you have given a couple of the honorary titles. any of your or your lieges councill members. Open up that job you always wanted :p all vassals, a random vassal or a random vassal that dont like you, your guardian, your regent, and a random child of the regent.

I think that is all so far.

This isn't getting enough love, I was going to do something similar but on a much, much less grand scale. This is amazing. Thanks!
 
Is there a way to edit the laws to remove the Basque requirement from Absolute-Cognatic? I seriously do not understand why it's a requirement, many other cultures have had female rulers without being of Basque descent...
 
Is there a way to edit the laws to remove the Basque requirement from Absolute-Cognatic? I seriously do not understand why it's a requirement, many other cultures have had female rulers without being of Basque descent...

Erm, yes, but you can still get plenty of female rulers without being "Absolute" cognatic, which makes men and women equal for the succession as is the case in modern day Scandinavia. Men had preference in those nations, but the available heirs ended up being daughters, thus resulting in a Queen.

All you need to do is go into the Decisions folder, open succession_laws.txt and delete the line with "culture = basque" down in true_cognatic_succession. What you're referring to doesn't have to do with having this law, though.
 
I miss the all powerful 'die' cheat from the first CK. Lol. Just pull up any bodies page and...die! It was good times. Nothing like that in ck2 right?

I believe it's kill ID.
 
What would be the format if you want to fire off the guardian events? For example, event ID 2000 fires about your ward being gluttonous or temperate. But, if you manually fire it, it alters your player character (the guardian).