Character modding

From Imperator Wiki
Jump to navigation Jump to search


Characters[edit]

Character interactions[edit]

hold_triumph = {

    on_other_nation = no
    on_own_nation = yes
    
    sound = "event:/SFX/UI/Character/sfx_ui_character_hold_triumph"
    
    potential_trigger = {
        hidden:scope:target = {
            is_alive = yes
        }
    }
    
    allowed_trigger = {
        hidden:scope:actor = {
        
            
        
            can_pay_price = hold_triumph
            
            custom_tooltip = {
                text = "TRIUMPH_RECENTLY_HELD"
            
                NOT = { has_variable = triumph_recently_held }
            }
        }
        scope:target = {
            is_adult = yes
            
            days_since_last_victory < 720
        }
    }
    
    effect = {
        scope:actor = {
            pay_price = hold_triumph
            
            set_variable = {
                name = triumph_recently_held
                value = 1
                days = 365
            }
            
        }
    
        scope:target = {
            add_loyalty = loyalty_huge
            add_popularity = popularity_huge
        }
    }
    
}


Documentation EffectsTriggersModifiersScopesVariablesData TypesLocalisationCustomizable localization
Scripting AIBuildingsCasus belliCharacterCharacter InteractionsCombat TacticsCountriesCultureDecisionsDefinesEconomic PoliciesEventsEthnicitiesGovernmentGovernor PoliciesIdeasModifiersMilitary TraditionsOfficesOn ActionsPartiesPricesPopsReligionScript ValuesScript ModifiersSetupSubject TypesTechnologyTrade goodsTraitsUnits
Map MapTerrain
Graphics 3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
Audio MusicSound
Other Console commandsChecksumMod structureTroubleshooting