Post by krase on Jan 19, 2018 4:59:46 GMT
I used to use the Valyrian blood mod, specifically the egg cache version of it. Egg caches are essentially not needed anymore cause you can have many eggs now, but i was wondering if someone could help me fix this targeted decision.
Now I'm pretty sure there isnt a remove_artifact command, and also i can imagine it wouldnt preserve parentage. My knowlodge in modding is very limited, is there a way to fix this decision to take eggs from family members if youre the dynasty head?
Cheers
targetted_decisions = {
take_dragon_egg_player = {
filter = all
ai_target_filter = all
from_potential = {
NOT = { trait = dragon_egg }
is_ruler = yes
ai = no
dynasty_head = { character = PREV }
OR = { #Dragonlord Family
any_friend = { is_alive = yes trait = dragon }
any_close_relative = { any_friend = { is_alive = yes trait = dragon } }
any_dynasty_member = { any_friend = { is_alive = yes trait = dragon } }
}
}
potential = {
OR = {
dynasty = FROM
is_close_relative = FROM
}
NOT = { culture_group = unoccupied_group }
NOT = { culture_group = winter_group }
NOT = { character = FROM }
}
allow = {
has_artifact = dragon_egg
NOT = { war_with = FROM }
}
effect = {
dragon = {
limit = { ROOT = { has_character_flag = dragon_egg_mother_@PREV } }
FROM = { set_character_flag = dragon_egg_mother_@PREV }
ROOT = { clr_character_flag = dragon_egg_mother_@PREV }
}
FROM = { add_trait = dragon_egg }
ROOT = { remove_trait = dragon_egg }
}
revoke_allowed = {
always = no #Not used in vanilla
}
ai_will_do = {
factor = 0
}
}
}
Now I'm pretty sure there isnt a remove_artifact command, and also i can imagine it wouldnt preserve parentage. My knowlodge in modding is very limited, is there a way to fix this decision to take eggs from family members if youre the dynasty head?
Cheers