PTT_events.txt
--------------------------------------------------------------------------------------------------------------------
PTT_on_actions.txt
--------------------------------------------------------------------------------------------------------------------
As I said yesterday, I want to modify my portraits mod according to an EIF mod event, I just tested the event trigger, which is basically perfect.
But obviously, this event will not be triggered by a death character, this causes the ancestors of all existing characters to still use the old portrait, looks like a genetic mutation.
Through the use of "gfx_culture" , I'm sure dead characters can still "interact" with players in some cases, it shows that there must be a way in theory for the dead character to trigger events. But, how should this be achieved? How can an event be triggered by a dead character?
Code:
namespace = PTT
character_event = {
id = PTT.0
hide_window = yes
is_triggered_only = yes
trigger = {
OR = {
is_alive = yes
}
}
immediate = {
if = {
limit = {
OR = {
AND = {
graphical_culture = byzantinegfx
is_female = yes
}
AND = {
graphical_culture = crimeangfx
is_female = yes
}
AND = {
graphical_culture = croatsouthslavicgfx
is_female = yes
}
AND = {
graphical_culture = dalmatiangfx
is_female = yes
}
AND = {
graphical_culture = italiangfx
is_female = yes
}
AND = {
graphical_culture = levantinegfx
is_female = yes
}
AND = {
graphical_culture = outremergfx
is_female = yes
}
AND = {
graphical_culture = persiangfx
is_female = yes
}
AND = {
graphical_culture = romangfx
is_female = yes
}
AND = {
graphical_culture = serbsouthslavicgfx
is_female = yes
}
AND = {
graphical_culture = southerngfx
is_female = yes
}
}
}
set_graphical_culture = greek # byzantinegfx
break = yes
}
if = {
limit = {
OR = {
AND = {
graphical_culture = bodpagfx
is_female = yes
}
AND = {
graphical_culture = chinesegfx
is_female = yes
}
}
}
set_graphical_culture = han # chinesegfx
break = yes
}
if = {
limit = {
OR = {
AND = {
graphical_culture = easterngfx
is_female = yes
}
AND = {
graphical_culture = easternslavicgfx
is_female = yes
}
AND = {
graphical_culture = magyargfx
is_female = yes
}
AND = {
graphical_culture = ugricgfx
is_female = yes
}
AND = {
graphical_culture = westernslavicgfx
is_female = yes
}
}
}
set_graphical_culture = russian # easternslavicgfx
break = yes
}
if = {
limit = {
OR = {
AND = {
graphical_culture = cumangfx
is_female = yes
}
AND = {
graphical_culture = mongolgfx
is_female = yes
}
AND = {
graphical_culture = turkishgfx
is_female = yes
}
}
}
set_graphical_culture = mongol # mongolgfx
break = yes
}
if = {
limit = {
OR = {
AND = {
graphical_culture = celticgfx
is_female = yes
}
AND = {
graphical_culture = englishgfx
is_female = yes
}
AND = {
graphical_culture = frankishgfx
is_female = yes
}
AND = {
graphical_culture = germangfx
is_female = yes
}
AND = {
graphical_culture = normangfx
is_female = yes
}
AND = {
graphical_culture = norsegfx
is_female = yes
}
AND = {
graphical_culture = occitangfx
is_female = yes
}
AND = {
graphical_culture = saxongfx
is_female = yes
}
AND = {
graphical_culture = trueoccitangfx
is_female = yes
}
AND = {
graphical_culture = westerngfx
is_female = yes
}
}
}
set_graphical_culture = norse # norsegfx
break = yes
}
if = {
limit = {
OR = {
AND = {
graphical_culture = africangfx
is_female = yes
}
AND = {
graphical_culture = andalusiangfx
is_female = yes
}
AND = {
graphical_culture = arabicgfx
is_female = yes
}
AND = {
graphical_culture = aztecholygfx
is_female = yes
}
AND = {
graphical_culture = berbergfx
is_female = yes
}
AND = {
graphical_culture = egyptiangfx
is_female = yes
}
AND = {
graphical_culture = indiangfx
is_female = yes
}
AND = {
graphical_culture = mesoamericangfx
is_female = yes
}
AND = {
graphical_culture = muslimgfx
is_female = yes
}
AND = {
graphical_culture = southindiangfx
is_female = yes
}
AND = {
graphical_culture = westafricangfx
is_female = yes
}
}
}
set_graphical_culture = tamil # southindiangfx
break = yes
}
}
}
PTT_on_actions.txt
Code:
on_startup = {
events = {
PTT.0
}
}
on_chronicle_start = {
events = {
PTT.0
}
}
on_yearly_pulse = {
events = {
PTT.0
}
}
on_employer_change = {
events = {
PTT.0
}
}
on_host_change = {
events = {
PTT.0
}
}
on_birth = {
events = {
PTT.0
}
}
on_adulthood = {
events = {
PTT.0
}
}
on_marriage = {
events = {
PTT.0
}
}
on_pregnancy = {
events = {
PTT.0
}
}
on_death = {
events = {
PTT.0
}
}
As I said yesterday, I want to modify my portraits mod according to an EIF mod event, I just tested the event trigger, which is basically perfect.
But obviously, this event will not be triggered by a death character, this causes the ancestors of all existing characters to still use the old portrait, looks like a genetic mutation.
Through the use of "gfx_culture" , I'm sure dead characters can still "interact" with players in some cases, it shows that there must be a way in theory for the dead character to trigger events. But, how should this be achieved? How can an event be triggered by a dead character?
Last edited: