• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Status
Not open for further replies.

Mhoirbheinn

Captain
66 Badges
Sep 17, 2020
402
904
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 3 Sign Up
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
  • Victoria 2
Short summary of your issue
AI can declare artifact wars for personal artifact claims it can not receive on victory, causing fruitless artifact wars to cycle launch

Game Version
1.6

What OS are you playing on?
Windows

What platform are you using?
Steam

What DLC do you have installed?
Royal Court,

Do you have mods enabled?
No

Have you tried verifying your game files (Steam only)?
Yes

How much "pain" is this causing you?
8

Please explain the issue you experienced in the most condensed way possible
The artifact war casus belli allows the AI to declare an artifact war for any artifact the character has a personal claim on. However on_victory the AI will only receive artifacts that it has a personal claim on that are tier four rarity or above, not cursed, and able to be used by the character.

The AI will launch fruitless artifact wars over trinkets in can not receive on victory, and at the conclusion of the war, the same conditions of personal claim over trinket remains to relaunch the same fruitless artifact war over the same trinket again and again.

Please explain how to reproduce the issue
Easier to review the code below.

Alternatively start the game in console mode with a first character. Create a common tier one artifact or trinket with a second neighbouring character. In the console give your first character a personal claim on the common tier artifact/trinket held by the second neighbour, then declare an artifact war on the neighbour over the tier one artifact/trinket, noting the game allows you to go to war over this personal claim on the common artifact/trinket.

Now switch player to the second neighbouring common artifact/trinket holder and surrender. On conclusion of the war in a victory for the first character as an AI attacker, the common tier artifact/trinket the war was declared over will remain with the losing second character defender and will not be transferred to the first attacking AI character victor: the artifact war was fruitless.

This then sets the conditions for the same artifact war to cycle relaunch over and over with the same common artifacts/trinkets at the conclusion of the truce, with the same fruitless result repeating itself again and again.

Is there anything else you think could help us identify/replicate the issue?
The problem is a discordance in the conditions for declaring the artifact war over personal claims as compared to the conditions for the awarding of artifacts to the AI on victory in an artifact war over personal claims. The solution is to make the conditions for personal claims match, as they already do for house claims.

From the artifact_war casus belli, there are no limts to what artifact with a personal claim can be used to justify an artifact war:
Code:
#From \common\casus_belli_types\01_ep1_wars.txt
#Line 7

    allowed_against_character = {
        scope:attacker = {
            OR = {
                any_personal_claimed_artifact = {
                    artifact_owner = {
                        is_ruler = yes
                        target_is_same_character_or_above = scope:defender
                    }
                }
#Continues with conditions for house claims

However on_victory, only artifacts with personal claims that are tier four or above, are not cursed, and are able to be used by the AI character, are transferred to the victorious attacker.
Code:
#From \common\casus_belli_types\01_ep1_wars.txt
#Line 82

    on_victory = {
        scope:attacker = { show_pow_release_message_effect = yes }
        
        # transfer artifacts
        scope:attacker = {
            every_personal_claimed_artifact = {
                limit = {
                    trigger_if ={
                        limit = {
                            scope:attacker = { is_ai = yes }
                        }
                        NOT = { has_variable = cursed_artifact }
                        artifact_rarity >= 4 #More than masterwork
                        scope:attacker = {
                            can_benefit_from_artifact = prev
                        }
                    }
                    artifact_owner = {
                        is_ruler = yes
                        target_is_same_character_or_above = scope:defender
                    }
                }
                set_owner = {
                    target = scope:attacker
                    history = {
                        type = conquest
                        actor = scope:defender
                        recipient = scope:attacker
                    }
                }
                if = {
                    limit = {
                        NOT = { 
                            scope:defender = { has_personal_artifact_claim = prev }
                        }
                    }
                    scope:defender = { add_personal_artifact_claim = prev }
                }
            }

The solution is to bring the on_victory conditions into the allowed_against_character block so that artifact wars can only be declared by the AI for artifacts it can actually be rewarded with on_victory. I do this in my Artifact Claims Nerf mod, the full modded casus belli file is attached:
Code:
#From \common\casus_belli_types\house_claim_artifact_nerf_casus_belli.txt
#Line 7/9

    allowed_against_character = {
        scope:attacker = {
            OR = {
                any_personal_claimed_artifact = {
                    #Modded so AI can only declare war for illustrious or famed artifacts it can use
                    trigger_if = {
                        limit = {
                            scope:attacker = { is_ai = yes }
                        }
                        NOT = { has_variable = cursed_artifact }
                        artifact_rarity >= 4 #More than masterwork
                        scope:attacker = {
                        can_benefit_from_artifact = prev
                        }
                    }
                    artifact_owner = {
                        is_ruler = yes
                        target_is_same_character_or_above = scope:defender
                    }
                }

This matches the rules for artifact wars over house claims and prevents fruitless AI artifact wars cycle launching on fixated targets without possibility of resolution.

I have attached a save game
No

Upload Attachment
File(s) attached
 

Attachments

  • house_claim_artifact_nerf_casus_belli.txt
    9,3 KB · Views: 0
  • 3
  • 2Like
  • 1
Reactions:
Status
Not open for further replies.