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

Ninja35

Private
2 Badges
Nov 19, 2020
22
0
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
there is a mod called romance of the three kingdoms and i would really like to have kids with my harem instead of just those extra consort so i dont have child of concubine from my heir here is what i have so far
Code:

### IMPERIAL DELIGHT ###
#Empress chooses a girl
character_event={
id=EMP.2
desc=EVTDESC_EMP.2
title=EVTTITLE_EMP
picture=GFX_evt_lovers

is_triggered_only=yes

immediate={
random_courtier={
limit={
prisoner=no
has_epidemic=no
is_ill=no
trait=inner_court
is_pregnant=no
NOT={ has_character_flag=lady_retired }
NOT={ has_character_flag=harem_ref }
}
save_event_target_as=target_lover
}
}

option={ #Accept Girl
name=OK
any_courtier={
limit={
trait=inner_court
has_character_flag=harem_ref
}
clr_character_flag=harem_ref
}
event_target:target_lover={
character_event={ id=EMP.3 }
}
}

option={ #REFUSE Girl
name=NOTHX
event_target:target_lover={
set_character_flag=harem_ref
}
character_event={ id=EMP.2 }
}
}

### IMPERIAL DELIGHT ###
#Ping Concubine
character_event={
id=EMP.3

is_triggered_only=yes

hide_window=yes

immediate={
wealth=5
religion_head={
wealth=-5
character_event={ id=EMP.4 }
}
}
effect = {
impregnate = THIS
hidden_tooltip = {
add_trait = pregnant
}
}
}

### IMPERIAL DELIGHT ###
#Empress chooses a girl
character_event={
id=EMP.4
desc=EVTDESC_EMP.4
title=EVTTITLE_EMP
picture=GFX_evt_lovers

is_triggered_only=yes

option={ #Visits concubine
name=OK
FROM={ character_event={ id=WoL.98 } }
}
}


can someone help and tell me what's wrong
]here is the full document where to place this as it sometimes impregnated them with themselves
 

Attachments

  • 0_emperor_events.txt
    79,2 KB · Views: 0
Last edited:
In EMP.3, you have an effect = {} block. I have never seen this before in an event.

I believe the commands to execute should be in an immediate, option, or after block.

In addition, in Emp.3, the ROOT scope is the cocubine. When you call impregnate=THIS, it will impregnate the concubine with themselves. If you want the character that EMP.2 fired for to impregnate the concubine, you need to use impregnate=FROM.

impregnate = scope will impregnate the current scope, in your case ROOT, with the scope on the right hand side. FROM references the ROOT scope of the previous event in the chain.

edit: please don't make duplicate threads, especially when someone is trying to help you already.
 
Last edited:
In EMP.3, you have an effect = {} block. I have never seen this before in an event.

I believe the commands to execute should be in an immediate, option, or after block.

In addition, in Emp.3, the ROOT scope is the cocubine. When you call impregnate=THIS, it will impregnate the concubine with themselves. If you want the character that EMP.2 fired for to impregnate the concubine, you need to use impregnate=FROM.

impregnate = scope will impregnate the current scope, in your case ROOT, with the scope on the right hand side. FROM references the ROOT scope of the previous event in the chain.

edit: please don't make duplicate threads, especially when someone is trying to help you already.
can you show me maybe script it for me as im not the owner and new to modding

edit; i made another because someone said i should post this on that

EDIT:EDIT oh i just realized u said what to use but to make sure please show me with the script
 
If you change EMP.3 to the following, it should fix the issues I mentioned. If there are other issues in the script, it might still not work though.

character_event={
id=EMP.3
is_triggered_only=yes
hide_window=yes

immediate={
wealth=5
religion_head={
wealth=-5
character_event={ id=EMP.4 }
}
impregnate = FROM
hidden_tooltip = {
add_trait = pregnant
}
}
}

I don't know if it is necessary to add the pregnant trait, you could try removing that line and seeing if the game adds it automatically or not.

I am also not sure why the religion head is referenced. If the idea is to fire the event for the character of EMP.2, if would be better to used FROM instead of religion_head.
 
If you change EMP.3 to the following, it should fix the issues I mentioned. If there are other issues in the script, it might still not work though.

character_event={
id=EMP.3
is_triggered_only=yes
hide_window=yes

immediate={
wealth=5
religion_head={
wealth=-5
character_event={ id=EMP.4 }
}
impregnate = FROM
hidden_tooltip = {
add_trait = pregnant
}
}
}

I don't know if it is necessary to add the pregnant trait, you could try removing that line and seeing if the game adds it automatically or not.

I am also not sure why the religion head is referenced. If the idea is to fire the event for the character of EMP.2, if would be better to used FROM instead of religion_head.

The religion head is the emperor heavens mandate but yeah, thank you for helping