I've recentley been trying to make an triggered event that would spawn my character an actual sibling and not just a dynasty member but i cant get the game to recongnize my character as the brother.
Also i've been working on an event to spawn a son or daughter ( 2 seperate events specified towards gender, same with the sibling events) The problem with this event, although it recognizes them as my children I can't name them
Sibling event coding: (dynasty and parents were created by me in the respective .txt files)
character_event = {
id = 808080999
desc = "You Have A Sister"
picture = GFX_evt_pregnancy
is_triggered_only = yes
option = {
name = "You Have A Sister!"
spouse = {
create_character = {
age = 0
female = yes
dynasty = 808080
set_mother = 8080802
set_father = 8080801
}
}
}
}
Coding for children events:
namespace = son
# on_son
character_event = {
id = 808080996
desc = "son"
picture = GFX_evt_pregnancy
is_triggered_only = yes
option = {
name = "It's a boy!"
spouse = {
create_character = {
age = 0
female = no
dynasty = ROOT
}
new_character = {
set_mother = PREV
set_father = ROOT
immediate =
# Chronicle entry
if = {
limit = {
OR = {
real_father = { event_target:chronicle_player = { character = PREV } }
event_target:chronicle_player = {
any_child = { character = ROOT }
}
}
}
character_event = { id = CM.19011 days = 2 } # Delay to allow for naming of child.
}
}
}
Could you tell me what to add and where, to get the outcome im looking for?
This is my first attempt at "moding" if this is considered that.
Also i've been working on an event to spawn a son or daughter ( 2 seperate events specified towards gender, same with the sibling events) The problem with this event, although it recognizes them as my children I can't name them
Sibling event coding: (dynasty and parents were created by me in the respective .txt files)
character_event = {
id = 808080999
desc = "You Have A Sister"
picture = GFX_evt_pregnancy
is_triggered_only = yes
option = {
name = "You Have A Sister!"
spouse = {
create_character = {
age = 0
female = yes
dynasty = 808080
set_mother = 8080802
set_father = 8080801
}
}
}
}
Coding for children events:
namespace = son
# on_son
character_event = {
id = 808080996
desc = "son"
picture = GFX_evt_pregnancy
is_triggered_only = yes
option = {
name = "It's a boy!"
spouse = {
create_character = {
age = 0
female = no
dynasty = ROOT
}
new_character = {
set_mother = PREV
set_father = ROOT
immediate =
# Chronicle entry
if = {
limit = {
OR = {
real_father = { event_target:chronicle_player = { character = PREV } }
event_target:chronicle_player = {
any_child = { character = ROOT }
}
}
}
character_event = { id = CM.19011 days = 2 } # Delay to allow for naming of child.
}
}
}
Could you tell me what to add and where, to get the outcome im looking for?
This is my first attempt at "moding" if this is considered that.