• 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.

SAS

20+ Years on the Forum
Moderator
204 Badges
Jan 13, 2002
8.845
1.017
  • 200k Club
  • 500k Club
  • Paradox Order
  • Europa Universalis: Rome Collectors Edition
  • Imperator: Rome Deluxe Edition
  • March of the Eagles
sas.1 = {
type = country_event
placement = ROOT

title = sas.1.t
desc = sas.1.d
flavor = sas.1.f

event_image = {
video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
}

on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

icon = "gfx/interface/icons/event_icons/event_portrait.dds"

duration = 3

trigger = {
is_player = yes
NOT = { has_variable = sas_start }
}

immediate = {
set_variable = {
name = sas_start
value = yes
}
}

I can manually fire it and the effect (not shown) works. Any ideas?
 
Code:
sas.1 = {
    type = country_event
    placement = ROOT
  
    title = sas.1.t
    desc = sas.1.d
    flavor = sas.1.f
  
    event_image = {
        video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
    }

    on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
    on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

    icon = "gfx/interface/icons/event_icons/event_portrait.dds"
  
    duration = 3
  
    trigger = {
        is_player = yes
        NOT = { has_variable = sas_start }
    }

    immediate = {
        set_variable = {
            name = sas_start
            value = yes
        }
    }

I can manually fire it and the effect (not shown) works. Any ideas?
What is supposed to fire the event? MTTH has been removed from the new engine and all events have to be fired from somewhere
 
What is supposed to fire the event? MTTH has been removed from the new engine and all events have to be fired from somewhere
It fires to a set of options to give bonus, the modifier works as intended, an I can manualy fire it. I want it to fire on startup, you know the best way to get it to fire?
 
Ahh ... I get it, I will add a file in the "on_action" folder.
 
Actually I heard that Victoria 3 has no on_startup for some reason
 
Oh maybe it's just not used in vanilla then?
 
Oh maybe it's just not used in vanilla then?
I used this and it fires:

on_research_technology_started = {
effect = {
NOT = { has_variable = sas_start }
trigger_event = sas.1
}
}
 
I see