Character modding

From Imperator Wiki
Revision as of 19:45, 6 February 2020 by Stars and Bars (talk | contribs)
Jump to navigation Jump to search


Characters

Pre-defined characters are handled by the character_setup.csv, it is very important to keep the same number of commas for any additional entries if your editing tool doesn't keep it straight for you like it would something like excel. For traits, to add multiple traits you use a | to separate different traits. You don't have to define everything for a character, the game will fill in as much as it can, but it is wise to do as much as possible. If you want to give a character particular dna, it is very useful to use the portrait_editor (pe) console command to get a dna string that's satisfactory.

#Country,ID,Name,Family,Gender,Culture, Religion,Martial,Charisma,Finesse,Zeal,Wealth,Loyalty,Popularity,Birthday,Father,Mother,Spouse,Vanity,Traits,Party,Offices,ruler,DNA,

Character interactions

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