I'm working on a mod, but I've encountered an issue that I cannot resolve on my own.
So I've added a culture, a trait, an event, and an on_actions call to fire said event, but the event is never fired. The event works perfectly fine if I call it via the console, but for some reason the on_actions won't fire it.
The event code is in a file named "sergal_on_action_events.txt" and it looks like this:
And the on_actions file is named "SERGAL_on_actions.txt" and its code looks like this:
Could someone please tell me what I've done wrong?
Edit: on_yearly_pulse correctly fires the event, so the issue seems to be with on_startup. Has anyone else encountered this issue?
So I've added a culture, a trait, an event, and an on_actions call to fire said event, but the event is never fired. The event works perfectly fine if I call it via the console, but for some reason the on_actions won't fire it.
The event code is in a file named "sergal_on_action_events.txt" and it looks like this:
Code:
namespace = sergalevent
#Gives Sergals the Sergal trait
character_event = {
id = sergalevent.1
hide_window = yes
is_triggered_only = yes
trigger = {
culture = oldsergal
NOT = { trait = sergal_trait }
}
immediate = {
add_trait = sergal_trait
}
}
And the on_actions file is named "SERGAL_on_actions.txt" and its code looks like this:
Code:
#character
on_startup = {
events = {
sergalevent.1
}
}
#character
on_yearly_pulse = {
events = {
sergalevent.1
}
}
Could someone please tell me what I've done wrong?
Edit: on_yearly_pulse correctly fires the event, so the issue seems to be with on_startup. Has anyone else encountered this issue?
Last edited: