|
Post by caeserion on Jul 17, 2019 23:22:14 GMT
I want to create a trait that blocks dragons from being tamed - as in any time a character tries to even search for dragons to tame the dragon is rendered 'invisible'. Its not setting taming chance to -9999x because that means characters would keep trying but would keep getting injured/dying in the process. What would I have to do to do this? It would be a hidden trait so I'm not worried about icons and stuff
In a similar vein I want to create a trait that blocks people from being able to tame dragons.Any ideas?
|
|
Toccs
Moderator
Posts: 474
|
Post by Toccs on Jul 19, 2019 0:21:38 GMT
- Create a generic trait like "dragon_tamer" but don't give it to any character or create any events that assign it so absolutely no one anywhere will have it.
- Then set the "dragon_tamer" trait as a requirement for the dragon taming options to be available.
The end result is that no character will be able to attempt to tame a dragon as they will never meet the requirement of having that trait. But should you wish to tame one yourself or have a character try, you can simply console the "dragon_tamer" trait to the relevant character and the option will appear.
|
|
|
Post by caeserion on Jul 19, 2019 0:30:10 GMT
- Then set the "dragon_tamer" trait as a requirement for the dragon taming options to be available.
This is the part I want to know how to do. What do I write in the code for the trait?
|
|
Toccs
Moderator
Posts: 474
|
Post by Toccs on Jul 19, 2019 0:46:26 GMT
In dragon_decisions.txt you will find the decision to start the taming process. It will look like this.
tame_dragon_dec = { is_high_prio = yes potential = { #ai = no any_friend = { trait = dragon is_alive = yes } NOT = { can_use_dragon_abilities_trigger = yes } NOT = { trait = dragon } OR = { NOT = { has_character_flag = choose_wild_dragon_action } had_character_flag = { flag = choose_wild_dragon_action days = 500 } } NOT = { has_character_flag = dany_no_tame_dragon } NOT = { has_game_rule = { name = dragon_hatching_taming value = off } } } allow = { conditional_tooltip = { trigger = { has_game_rule = { name = dragon_hatching_taming value = valyrian_only } } OR = { culture_group = valyrian is_divine_blood_dynasty_trigger = yes any_artifact = { has_artifact_flag = dragonhorn } } } any_friend = { trait = dragon is_alive = yes age = 2 } age = 14 prisoner = no NOT = { in_battle = yes } NOT = { has_severe_disability_trigger = yes } has_epidemic = no } effect = { set_character_flag = choose_wild_dragon_action character_event = { id = dragon.12 days = 1} } ai_check_interval = 3 ai_will_do = { factor = 1000 } }
Add the line "trait = dragon_tamer" to the "potential" section so that section will look like this.
potential = { #ai = no trait = dragon_tamer any_friend = { trait = dragon is_alive = yes } NOT = { can_use_dragon_abilities_trigger = yes } NOT = { trait = dragon } OR = { NOT = { has_character_flag = choose_wild_dragon_action } had_character_flag = { flag = choose_wild_dragon_action days = 500 } } NOT = { has_character_flag = dany_no_tame_dragon } NOT = { has_game_rule = { name = dragon_hatching_taming value = off } } }
You're new dragon_tamer trait should now be a requirement to use that decision which is where the whole taming event chain starts from.
|
|