I've been experimenting with making a few CBs of my own and had a little limited success but I've realized I don't really understand what some of the conditionals and triggers do.
Could someone explain, or direct me to where I can find out, what is the difference between:
can_use
can_use_title
is_valid
is_valid_title
Like, for example, the coastal_republic attack cb:
Seems very redundant. For example, it seems to me that it's saying:
can_use: Can be used by - republics, with their capital in a coastal county.
can_use_title: you have to have at least a county title from a coastal county? or that's what it targets?
is_valid: ?? The same as can_use? What's the difference here?
is_valid_title: Again, the same as can_use_title? What's the difference?
In both can_use and is_valid, it's talking about ROOT, which is the declarant of the war. So I'm not getting the difference there. Any help?
Could someone explain, or direct me to where I can find out, what is the difference between:
can_use
can_use_title
is_valid
is_valid_title
Like, for example, the coastal_republic attack cb:
Code:
can_use = {
ROOT = {
is_republic = yes
capital_scope = {
port = yes
}
}
}
can_use_title = {
tier = COUNT
location = {
port = yes
}
}
is_valid = {
ROOT = {
is_republic = yes
capital_scope = {
port = yes
}
}
}
is_valid_title = {
tier = COUNT
location = {
port = yes
}
}
Seems very redundant. For example, it seems to me that it's saying:
can_use: Can be used by - republics, with their capital in a coastal county.
can_use_title: you have to have at least a county title from a coastal county? or that's what it targets?
is_valid: ?? The same as can_use? What's the difference here?
is_valid_title: Again, the same as can_use_title? What's the difference?
In both can_use and is_valid, it's talking about ROOT, which is the declarant of the war. So I'm not getting the difference there. Any help?