Will CK3 use the same general scripting language as CK2? I expect anything affecting the map or provinces will have to be completely redone, but will it use the same general model for things like events and decisions?
monarchy_events.1 = {
type = country_event
title = "monarchy_events.1.t"
desc = "monarchy_events.1.desc"
picture = proscription
left_portrait = root.current_ruler
right_portrait = scope:legitimacy_denier
trigger = {
is_monarchy = yes
any_character = {
is_pretender = yes
exists = father
NOT = {
is_child_of = root.current_ruler
}
father = {
exists = father
NOT = {
is_child_of = root.current_ruler
}
}
loyalty < 50
}
legitimacy > 10
}
immediate = {
random_character = {
limit = {
is_pretender = yes
exists = father
loyalty < 50
NOT = {
is_child_of = root.current_ruler
}
father = {
exists = father
NOT = {
is_child_of = root.current_ruler
}
}
}
save_scope_as = legitimacy_denier
}
}
option = { # ignore it
name = "monarchy_events.1.a"
add_legitimacy = subtract_legitimacy_large
}
option = { # publicly repudiate the claims
name = "monarchy_events.1.b"
remove_stability_effect = yes
scope:legitimacy_denier = {
add_loyalty = subtract_loyalty_medium
}
}
}
CK2 Scripting or: How I Learned to Stop Worrying and Love FROMFROMFROMFROMHonestly, I'm kind of glad for that. Having to reference other scopes using PREV was really awkward and you could only do 4 PREVs in a row before they just stopped working, and then you have to completely rework your scope chain and save event targets and so forth to get around that.
And hopefully they'll have self-explanatory names now.Well, since at least in that Imperator script there is still root, there might still be a from, but hopefully instead of FROMFROMFROMFROM it will be something more reasonable like from.from.from.from with unlimited froms. The only places I really needed multiple FROMs in CK2 was when there was an on_action event that had some scope predefined as FROMFROM or FROMFROMFROM or something.