Do you want to change it so a ruler
won't or
can't use the embargo under those circumstances? If you want to stop it from being possible altogether, replace the can_use section of the embargo CB with this:
Code:
can_use = {
ROOT = {
independent = yes
NOT = { has_embargo = FROM }
}
FROM = {
OR = {
AND = {
is_merchant_republic = yes
NOT = { reverse_opinion = { who = ROOT value = 40 } }
}
AND = {
higher_tier_than = DUKE
any_realm_lord = {
is_merchant_republic = yes
NOT = { reverse_opinion = { who = ROOT value = 40 } }
}
}
}
}
}
The code
reverse_opinion = {who = ROOT value = 40} basically asks "Does ROOT (the person using the CB, the person for whom the event fires, the decision taker, etc.) have an opinion of this character that is equal or greater to 40?". If the value is 40 or higher, the condition is satisfied. You want the CB to be unable to be used if that's the case, so I enclosed it in
NOT = { }. I also added an
AND = { } so that the CB would only be usable if a republic was independent and had the CB user had a low opinion, or if the republic was not independent and the CB user had a low opinion. This is necessary because those two options (either independent or not) were enclosed in an
OR = { }.