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

vammydude

Private
18 Badges
Dec 26, 2015
12
0
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Charlemagne
Can someone tell me why the game keeps saying "We must select a valid casus belli to declare war" whenever I try to use this casus belli I modded? The character does have the "Dragonrider" trait, but I can't use the casus belli for some reason.



Dragon_Conquest = {
name = CB_Dragon_Conquest
war_name = WAR_NAME_Dragon_Conquest
sprite = 8
truce_days = 31
is_permanent = yes
is_holy_war = no
check_de_jure_tier = DUKE # this scans all dejure duchies for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_use_gui = {
trait = Dragonrider
}
ROOT = {
trait = Dragonrider
}
can_use = {
trait = Dragonrider
}
ROOT = {
trait = Dragonrider
}

location = {
any_neighbor_province = {
OR = {
AND = {
has_owner = yes
owner = {
OR = {
character = ROOT
is_liege_or_above = ROOT
}
}
}
AND = {
is_land = no
any_neighbor_province = {
OR = {
AND = {
has_owner = yes
owner = {
OR = {
character = ROOT
is_liege_or_above = ROOT
}
}
}
AND = {
is_land = no
any_neighbor_province = {
owner = {
OR = {
character = ROOT
is_liege_or_above = ROOT
}
}
}
}
}
}
}
}
}
}
}
}
}
on_success = {
any_attacker = {
limit = { character = ROOT }
participation_scaled_piety = 100
participation_scaled_prestige = 50
}
any_attacker = {
limit = { NOT = { character = ROOT } }
hidden_tooltip = {
participation_scaled_piety = 100
participation_scaled_prestige = 50
}
}
FROM = { piety = -100 }
FROM = { prestige = -50 }
}
on_success_title = {
custom_tooltip = {
text = religious_cb_succ_tip
hidden_tooltip = {
ROOT = {
vassalize_or_take_under_title = {
title = PREV
enemy = FROM
same_religion = yes # Only vassalize rulers of my religion
is_religious = no
type = invasion
}
}
}
}
}
on_fail = {
ROOT = { piety = -200 }
ROOT = { prestige = -250 }
}
on_reverse_demand = {
ROOT = {
transfer_scaled_wealth = {
to = FROM
value = 4.0
}
}
any_defender = {
limit = { character = FROM }
participation_scaled_piety = 200
participation_scaled_prestige = 100
}
any_defender = {
limit = { NOT = { character = FROM } }
hidden_tooltip = {
participation_scaled_piety = 200
participation_scaled_prestige = 100
}
 
Last edited:

Please use Code boxes, manually or via the Insert option.
For readability and in general. Finding mistakes is then usually easier,...like missing brackets.