"This" just means the current scope, so for example FROM = { set_defacto_liege = THIS } would set FROM's liege as itself aka making it independent.The event section in question (from vanilla event GR.11):
As far as I know the behavior of THIS isn't documented so I don't know if this is correct or not, but it seems that THIS is pointing to any_vassal in the first two instances (any_war not changing it), and ROOT in the last. I hope @blackninja9939 will be able to clarify.Code:liege = { any_vassal = { limit = { in_revolt = yes any_war = { defender = { character = ROOT } attacker = { character = THIS } } } set_defacto_liege = THIS } } set_defacto_liege = THIS
So in what you posted it looks for every vassal of your liege who is in a revolt and a war where the defender is from and said vassal is the attacker. If they are then they are made independent.