actually studying event files
provincial_conversion_events.txt:
This does work?
After reading through the stickied posts 'Event scripting: tricks and traps explained' and 'Events Scripting 1.03 style' I don't undersand this. According to
'event effect.txt':
The 'trait' condition belongs to the character events, while the province conversion events are province_x_province events. According to the explanations and the 'event effect.txt' file, the character conditions can't be used with this events. These conditions belong to a character contxt, so here should be a context switch. Thus a context switching for the province_x_province events should be used according to 'event effect.txt':
like here, other modifier in same file and same event
provincial_conversion_events.txt, province_x_province_event id = 1084
Another question:
realm_disruption_events.txt:
I think the optically beautifully matching lines
condition = { type = not value = { type =
condition = { type = not value = { type =
cause a wrong assumption that they are correct if we look fastly over the lines. But the 'not' condition in the first line applies to the diplomacy of the liege. If I stop the fast looking and thinking, than I would guess, that it is intended that the 'not' condition in the second line should likewise apply to the diplomacy of the chancellor_csc of the liege. But this 'not' condition should be after the chancellor_csc condition:
In the original version the 'not' condition in the second line applies to the chancellor_csc instead, thus the diplomacy value is not negated as it should be, but the chancellor value. In my understanding this applies to characters who are not chancellor but have a diplomacy value above 7. That's not the same as having chacellors with diplomacy below 7.
provincial_conversion_events.txt:
Code:
#########################################
# PROVINCE RELIGIOUS CONVERSION SERIES #
#########################################
#########################################
# Mass-scale Conversions # by Guinnessmonkey #
#########################################
#########################################
# Catholic Conversions #
#########################################
[COLOR=DarkOrange]province_x_province_event[/COLOR] = { # Catholic religion (spreading)
id = 1084
.
.
.
# Ruler character traits modifiers
modifier = {
condition = { [COLOR=DarkOrange]type = to condition = { type = trait[/COLOR] value = zealous } }
factor = 0.6
}
This does work?
After reading through the stickied posts 'Event scripting: tricks and traps explained' and 'Events Scripting 1.03 style' I don't undersand this. According to
'event effect.txt':
====================
= CHARACTER EVENTS =
====================
--------------
- Conditions -
--------------
Character conditions:
---------------------
.
.
.
type = trait value = [trait type]
The 'trait' condition belongs to the character events, while the province conversion events are province_x_province events. According to the explanations and the 'event effect.txt' file, the character conditions can't be used with this events. These conditions belong to a character contxt, so here should be a context switch. Thus a context switching for the province_x_province events should be used according to 'event effect.txt':
===================
= PROVINCE EVENTS =
===================
--------------
- Conditions -
--------------
.
.
.
-----------------------------
- Context Switch Conditions -
-----------------------------
type = owner
like here, other modifier in same file and same event
provincial_conversion_events.txt, province_x_province_event id = 1084
Code:
modifier = {
condition = {
[COLOR=DarkOrange]type = to
condition = {
type = owner[/COLOR]
condition = {
type = or
condition = { type = title value = HOSP }
condition = { type = title value = TEUT }
condition = { type = title value = TEMP }
}
}
}
factor = 0.5
}
Another question:
realm_disruption_events.txt:
Code:
#################################
#################################
## Realm Disruption Events ##
## By Byakhiam and Chris Stone ##
## Added May 05 ##
#################################
#################################
#############################################################
# Catholic vassals in Middle East or North Africa break free from distant lieges
character_event = {
id = 6102
.
.
.
mean_time_to_happen = {
.
.
.
modifier = {
condition = { type = liege
condition = { type = or
condition = { type = diplomacy value = 9 }
condition = { type = chancellor_csc condition = { type = diplomacy value = 12 } }
}
}
factor = 2.0
}
modifier = {
condition = { type = liege
condition = { type = and
[COLOR=DarkOrange]condition = { type = not value = { type = diplomacy value = 5 } }
condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 7 } } }[/COLOR]
}
}
factor = 0.5
}
.
.
.
I think the optically beautifully matching lines
condition = { type = not value = { type =
condition = { type = not value = { type =
cause a wrong assumption that they are correct if we look fastly over the lines. But the 'not' condition in the first line applies to the diplomacy of the liege. If I stop the fast looking and thinking, than I would guess, that it is intended that the 'not' condition in the second line should likewise apply to the diplomacy of the chancellor_csc of the liege. But this 'not' condition should be after the chancellor_csc condition:
Code:
modifier = {
condition = { type = liege
condition = { type = or
[COLOR=DarkOrange]condition = { type = diplomacy value = 9 }[/COLOR]
[COLOR=DarkOrange]condition = { type = [/COLOR][COLOR=Sienna]chancellor_csc[/COLOR][COLOR=DarkOrange] condition = { type = diplomacy value = 12 } }[/COLOR]
}
}
factor = 2.0
}
modifier = {
condition = { type = liege
condition = { type = and
[COLOR=DarkOrange]condition = [/COLOR][COLOR=Red]{ type = not value = [/COLOR][COLOR=DarkOrange]{ type = diplomacy value = 5 } }[/COLOR]
[COLOR=DarkOrange]condition = { type = [/COLOR][COLOR=Sienna]chancellor_csc[/COLOR][COLOR=DarkOrange] condition = [/COLOR][COLOR=Red]{ type = not value = [/COLOR][COLOR=DarkOrange]{ type = diplomacy value = 7 } } }[/COLOR]
In the original version the 'not' condition in the second line applies to the chancellor_csc instead, thus the diplomacy value is not negated as it should be, but the chancellor value. In my understanding this applies to characters who are not chancellor but have a diplomacy value above 7. That's not the same as having chacellors with diplomacy below 7.