SadnessI don't think Clausewitz Engine ever has that, unlike Europa Engine. The standard procedure is to use a global flag.
Basiclyy, how do you create and use global flags? (Like for use for a storyline)
SadnessI don't think Clausewitz Engine ever has that, unlike Europa Engine. The standard procedure is to use a global flag.
Is there a collection of all the event pictures? Currently, they're spread around in the zip files of the DLCs and it's hard to find appropriate pictures for custom events.
I see, thank youGlobal flags don't need to be pre-defined anywhere - just use set_global_flag = flag_name
character_event = {
id = anus_tormentor_jobs.1100
desc = anus_tormentor_jobs_1100
picture = GFX_evt_prison_1
border = GFX_event_normal_frame_intrigue
trigger = {
liege = {
has_character_flag = tormentor_job
num_of_prisoners = 1
}
}
mean_time_to_happen = {
months = 4
}
immediate = {
liege = {
random_realm_character = {
limit = {
prisoner = yes
}
save_event_target_as = recruited_tormentor_target
}
}
}
Yes add "host = ROOT" after "prisoner = yes"Hello again,
i have a member of the court with a minor title who should recieve an event. In this event there should be a third party to come in play: a prisoner.
How do I scope to this prisoner?
Code:character_event = { id = anus_tormentor_jobs.1100 desc = anus_tormentor_jobs_1100 picture = GFX_evt_prison_1 border = GFX_event_normal_frame_intrigue trigger = { liege = { has_character_flag = tormentor_job num_of_prisoners = 1 } } mean_time_to_happen = { months = 4 } immediate = { liege = { random_realm_character = { limit = { prisoner = yes } save_event_target_as = recruited_tormentor_target } } }
Wouldn't that scope also to the prisoners of my vassals?
}
#character
on_yearly_pulse = {
events = {
test.1
}
}
namespace = test
character_event = {
id = test.1
hide_window = yes
is_triggered_only = yes
trigger = {
age = 17
OR = {
trait = A
trait = B
trait = C
trait = D
trait = E
trait = F
trait = G
}
NOT = { trait = X }
}
immediate = {
add_trait = X
}
}
Does the event work if you fire it via the console?I'm having issues getting an event to fire, and would like someone to proofread the code to help me find where I went wrong. This event is supposed to:
1) Check for all character above a minimum age (17).
2) Check all characters for at least one of many possible prerequisite traits (traits A through G)
3) Add a certain trait (X) if the above two conditions are met.
Code:} #character on_yearly_pulse = { events = { test.1 } }
Code:namespace = test character_event = { id = test.1 hide_window = yes is_triggered_only = yes trigger = { age = 17 OR = { trait = A trait = B trait = C trait = D trait = E trait = F trait = G } NOT = { trait = X } } immediate = { add_trait = X } }
If you see where I messed up, or have any general recommendations for a newbie coder, please let me know.
Does the event work if you fire it via the console?
I'm having issues getting an event to fire, and would like someone to proofread the code to help me find where I went wrong. This event is supposed to:
1) Check for all character above a minimum age (17).
2) Check all characters for at least one of many possible prerequisite traits (traits A through G)
3) Add a certain trait (X) if the above two conditions are met.
Code:} #character on_yearly_pulse = { events = { test.1 } }
Code:namespace = test character_event = { id = test.1 hide_window = yes is_triggered_only = yes trigger = { age = 17 OR = { trait = A trait = B trait = C trait = D trait = E trait = F trait = G } NOT = { trait = X } } immediate = { add_trait = X } }
If you see where I messed up, or have any general recommendations for a newbie coder, please let me know.
min_age = 17
trigger = {
OR = {
trait = A
trait = B
trait = C
trait = D
trait = E
trait = F
trait = G
}
}
Pretty sure "host=PREV" actually does what's needed.Yes add "host = ROOT" after "prisoner = yes"
Or maybe "host = FROM"
Oh yeah true enough.Pretty sure "host=PREV" actually does what's needed.
Here's more of a quicky than my last one: Do "is_feudal = yes" and "is_republic = yes" only apply specifically to the feudal and republic governments respectively, or to all governments defined in the respective [...]_governments.txt's?