pharaox / ek2_fixes

EK2 Unofficial Fixpack
0 stars 0 forks source link

`Script system error` errors for `any_realm_county` being used in a wrong scope #19

Closed pharaox closed 1 year ago

pharaox commented 1 year ago

CK3 Version: 1.8.2

EK2 Version: 0.12.1

Summary: There are messages in error.log similar to this one:

[00:06:05][jomini_script_system.cpp:263]: Script system error!
  Error: any_realm_county trigger [ Wrong scope for trigger: landed title, expected character ]
  Script location: file: common/character_interactions/ek_religious_interactions.txt line: 637

These errors are caused by any_realm_county being used in the scope of a title. In the last ai_accept modifier of duel_for_claim_strong_interaction, any_realm_county is used in scope:target, which is wrong, it should be used in the recipient scope (the default scope for ai_accept) instead. As a result, this modifier is not evaluated properly, which would cause the AI not to care more for their last county as originally intended.