AI INFLUENCE — CHANGELOG v3.2.4
Added: AI prompt now includes information about active diplomatic events relevant to the NPC (events involving NPC's kingdom or major world events).
Added: Quirks (speech patterns) are now automatically generated by AI when a character is first created, similar to personality and backstory. AI creates 1-3 unique speech patterns based on character's personality, culture, role, and age.
Added: Added new character_speech_quirks field to JSON structure (REQUIRED on first interaction). AI independently determines unique speech mannerisms for the character.
Added: Added NPC captives information to the prompt. NPCs now know about their prisoners (relatives, friends, and other lords) through a new "Your Captives" section and can mention them in conversation.
Added: When a forced marriage involves the player, the vanilla wedding scene (scn_cutscene_wedding) is shown, bypassing vanilla compatibility checks.
Added: NPC contexts now log player-led prison break rescues (ReleasedAfterEscape) into RecentEvents with settlement/faction/culture/owner details so it surfaces in prompts.
Fixed: Kingdoms can no longer attempt to expel a clan from themselves. The expel_clan action now automatically clears target_kingdom_id, as it is an internal kingdom action, not a diplomatic action directed at another kingdom.
Fixed: Updated AI prompt to explicitly state that expel_clan action requires target_kingdom_id = null. Added example usage of expel_clan with correct JSON format.
Fixed: Added validation after parsing AI response that automatically clears target_kingdom_id for expel_clan action if AI incorrectly specified it.
Fixed: Kingdoms can no longer make multiple diplomatic statements in a single round of one event. Added check to ensure each kingdom can only respond once per round.
Fixed: Fixed issue with parallel generation of ruler statements for different events. Added lock system (_isGeneratingStatements) for sequential event processing. Events are now processed one at a time per cycle, preventing conflicting statements from one kingdom for different events.