Crusader Kings II

Crusader Kings II

View Stats:
Misha Sep 18, 2015 @ 4:19am
is_triggered_only events not working for me please help
hello for some reason is_triggered_only events is not working in my mods
{ character_event = { id = .... }
and
on_action
deosnt work all what it does is giving me a blank event without options with desc having
a random "A" written on it
< >
Showing 1-7 of 7 comments
jamie Sep 18, 2015 @ 10:02am 
you need to have options for your events and the A is because you have nothing there for the name of the event take a look at what i got here and stuff the lay out is what you need but most of this is not but the event name and id title and desc and options are what you need to take a look at. the } may not be in the right place if it has more than one each on of them is to the right the top one to the right the next one one tab over and so on till it hits the left side.

#######################################
#
# Catholic Reforms
# CatR.001 - CatR.500 reserved
#
#######################################

namespace = CatR

### Reforming the western faith

# Reform it!!
narrative_event = {
id = CatR.001
title = EVTNAMECatR.001
desc = EVTDESCCatR.001

picture = GFX_evt_icon

is_triggered_only = yes

option = {
name = EVTOPTACatR.001
religion = catholic_reformed
add_trait = byrhagiose
set_global_flag = catholic_faith_reformed
give_nickname = nick_the_saint
d_catholic_reformed = { grant_title = ROOT }
hidden_tooltip = {
set_character_flag = catr_founder
create_random_priest = {
dynasty = none
random_traits = yes
}
new_character = {
b_hagiasophia = {
grant_title = PREV
}
wealth = 500
opinion = {
who = ROOT
modifier = opinion_creator_of_rel_heal
}
}
}

any_child = {
add_trait = hagios
}
any_courtier = {
religion = catholic_reformed
}
any_dynasty_member = {
religion = catholic_reformed
}
any_vassal = {
religion = catholic_reformed
}
capital_scope = {
religion = catholic_reformed
}
hidden_tooltip = {
any_playable_ruler = {
limit = {
religion = catholic
controls_religion = no
}
narrative_event = { id = CatR.002 }
}
}
}
}
# Convert or Not?
narrative_event = {
id = CatR.002
title = EVTNAMECatR.001
desc = EVTDESCCatR.001

picture = GFX_evt_icon

is_triggered_only = yes

option = { # Yes
name = EVTOPTALoR.211
ai_chance = { factor = 95 }
religion = FROM
any_courtier = {
religion = FROM
}
capital_scope = {
religion = FROM
}
}
option = { # No
name = EVTOPTBLoR.211
ai_chance = { factor = 5 }
}
}
# Warn the the followers of the old catholic church
narrative_event = {
id = CatR.003
title = EVTNAMECatR.003
desc = EVTDESCCatR.003

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OK
name = EVTOPTACatR.003
any_realm_character = {
limit = { religion = catholic }
opinion = { modifier = opinion_religious_agenda who = ROOT years = 50 }
}
}
}
# Let the Purge begin!
narrative_event = {
id = CatR.004
title = EVTNAMECatR.004
desc = EVTDESCCatR.004

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OK
name = EVTOPTACatR.004

if = {
limit = { religion = catholic_reformed }
set_parent_religion = { religion = catholic parent = catholic_reformed }
}
wealth = 1500
religion_authority = {
modifier = catr_expelled_patriarch
years = 30
}
any_vassal = {
limit = { has_landed_title = k_papal_state }
set_defacto_liege = this
THIS = { imprison = ROOT }
}
activate_title = { title = k_papal_state status no }
}
}
character_event = {
id = CatR.005
title = EVTNAMECatR.005
desc = EVTDESCCatR.005

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OK
name = EVTOPTACatR.005
}
}
narrative_event = {
id = CatR.006
title = EVTNAMECatR.006
desc = EVTDESCCatR.006

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OK
name = EVTOPTACatR.006
}
}
narrative_event = {
id = CatR.007
title = EVTNAMECatR.007
desc = EVTDESCCatR.007

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OK
name = EVTOPTACatR.007
}
}
character_event = {
id = CatR.008
title = EVTNAMECatR.008
desc = EVTDESCCatR.008

picture = GFX_evt_icon

is_triggered_only = yes

option = { # SELL OFF TO OTHER COURT
name = EVTOPTACatR.008
ROOT = { banish = yes }
}
}
character_event = {
id = CatR.009
title = EVTNAMECatR.009
desc = EVTDESCCatR.009

picture = GFX_evt_icon

is_triggered_only = yes

option = { # OMG THANKS MATE
spawn_unit = {
owner = ROOT
province = 333
earmark = catr_religious_fanatics
home = ROOT
troops = {
archers = { 500 500 }
light_infantry = { 2500 2500 }
heavy_infantry = { 300 300 }
light_cavalry = { 200 200 }
}
attrition = 1.0
disband_on_peace = yes
maintenance_multiplier = 0.5
}
}
}
Last edited by jamie; Sep 18, 2015 @ 10:04am
Varainger Sep 18, 2015 @ 10:26am 
Place to ask modding questions
https://forum.paradoxplaza.com/forum/index.php?threads/modding-quick-questions.589686/
and don't forget to include at least an example of your script.

Or start a new thread over there in the Modifications subforum.
Last edited by Varainger; Sep 18, 2015 @ 10:27am
Misha Sep 18, 2015 @ 11:30am 
okay i will include an example no need for anther thread
please tell me what did i do wrong

donate_to_caliph = {
potential = {
religion_group = muslim
age = 16
NOT = {
has_character_flag = has_donated
}
}
allow = {
wealth = 100
}
effect = {
ROOT = {
character_event = { id = AFF.1 }
}
}
}
character_event = {
id = AFF.1
title = t.AFF.1
desc = d.AFF.1

is_triggered_only = yes

immediate = {
}

option = {
name = O1.AFF.1
hidden_tooltip = {
religion_head = {
character_event = { id = AFF.2 }
}
}
}
}
character_event = {
id = AFF.2
title = t.AFF.2
desc = d.AFF.2

is_triggered_only = yes

immediate = {
}

option = {
name = EVTOPTAAFF.2
wealth = 100
hidden_tooltip = {
FROM = {
character_event = { id = AFF.3 }
}
}
}
}
character_event = {
id = AFF.3
title = t.AFF.3
desc = d.AFF.3

is_triggered_only = yes

immediate = {
}
option = {
name = Great
piety = 500
decadence = -100
set_character_flag = has_donated
}
}
jamie Sep 18, 2015 @ 2:28pm 
this is what i edit for you on what you need or it wont show up or fire is there decisions that go with this? if there is then you need to put in them to. you need to have them to localisation is need to in cvs format or it wont show up. this is just the events what happen when you hit the decision button you will need plus you will need gfx/interface files so they have the button for decisions ex: decision_icon_byr_purge_orthodox pus you will need decision_icons.gfx when make a mod make new .gfx ex: UoC_decision_icons.gfx inside of theat you need to have

ex:

spriteTypes = {

spriteType = {
name = "GFX_mend_great_schism"
texturefile = "gfx\\interface\\decision_icon_mend_great_schism.dds"
}
}


this is only if you have decisions you want to put in.


down here i made the changes that are need. but the things i talked about above are need if you are making it with decisions you can hae them with out them but you need to make sure they fire in gam by hiting ` to open the thing and then typing event AFF.1 or event AFF.2 or event AFF.3

#######################################
#
# Donate to Caliph
# AFF.001 - AFF.500 reserved
#
#######################################

namespace = AFF

### Donate to Caliph

# donate to caliph!!


donate_to_caliph = {
potential = {
religion_group = muslim
age = 16
NOT = {
has_character_flag = has_donated
}
}
allow = {
wealth = 100
}
effect = {
ROOT = {
character_event = { id = AFF.1 }
}
}
}
character_event = {
id = AFF.1
title = EVTNAMEAFF.1
desc = EVTDESCAFF.1

is_triggered_only = yes

immediate = {
}

option = { #OK
name = EVTOPTAAFF.1
hidden_tooltip = {
religion_head = {
character_event = { id = AFF.2 }
}
}
}
}
character_event = {
id = AFF.2
title = EVTNAMEAFF.2
desc = EVTDESCAFF.2

is_triggered_only = yes

immediate = {
}

option = { #OK
name = EVTOPTAAFF.2
wealth = 100
hidden_tooltip = {
FROM = {
character_event = { id = AFF.3 }
}
}
}
}
character_event = {
id = AFF.3
title = EVTNAMEAFF.3
desc = EVTDESCAFF.3

picture = GFX_evt_icon

is_triggered_only = yes

immediate = {
}
option = { #OK
name = EVTOPTAAFF.3
piety = 500
decadence = -100
set_character_flag = has_donated
}
}
Last edited by jamie; Sep 18, 2015 @ 2:33pm
Salartarium Sep 18, 2015 @ 3:50pm 
I believe its a bug in 2.4
Tymefor Sep 18, 2015 @ 5:02pm 
ya 2.4 problem
Misha Sep 18, 2015 @ 11:43pm 
no i checked the wiki turned out that i had to but a namespace
namespace = AFF
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Sep 18, 2015 @ 4:19am
Posts: 7