人物修改

本页面所适用的版本可能已经过时,最后更新于1.4


Characters

Pre-defined characters are located the in /game/setup/characters/ folder. 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.

"TAG"={
	country="TAG"
	ID={
		first_name="xxx"
		family = c:TAG.fam:xxx
		birth_date=
		culture="xxx"
		religion="xxx"
		no_stats=yes
		add_martial=x
		add_charisma=x
		add_finesse=x
		add_zeal=x
		no_traits=yes
		add_trait="xxx"
		add_gold=xxx
		add_popularity=xx
		c:TAG={
			set_as_ruler=char:ID
		}
		dna="xxx"
	}
}

Example:

"ARM"={
	country="ARM"
	49={
		first_name="Orontes"
		family = c:ARM.fam:Orontid
		birth_date=418.7.8
		culture="armenian"
		religion="zoroaster"
		no_stats=yes
		add_martial=6
		add_charisma=8
		add_finesse=5
		add_zeal=8
		no_traits=yes
		add_trait="unnoticeable"
		add_gold=500
		add_popularity=80
		c:ARM={
			set_as_ruler=char:49
		}
		dna="IvUi9ZyfnJ/UpNSkAmgCaAKIAogClgKWAoUChQJwAnACdQJ1AokCiQJpAmkClwKXA60DrQKAAoACrwKvApUClQAvAC8CbgJuAn4CfgKRApEClAKUAocChwJxAnECjgKOAoYChgJzAnMDrQOtACMAIwJrAmsChAKEApICkgKIAogCewJ7AoMCgwJpAmkCcwJzAnQCdAKZApkCjQKNAWMBYwOyA7ICcwJzAooCigKGAoYCkQKRAnoCegF0AXQBdwF3AogCiAOjA6MClwKXAm0CbQKFAoUChwKHAEgASAKUApQEzATMAoUChQIXAhcCtgK2AHIAcgF5AXkAAwADAMYAxgKvAq8AxgDGAXABcACuAK4ABgAGAGwAbAB/AH8A0gDSAAcABwFWAVYBPQE9ApYClgAQABAA3wDfAosCiwB/AH8AlwCXAX0BfQB/AH8BIgEiAscCxwCtAK0AsQCxBPIE8gCTAJMCigKKBMcExwMGAwYLVgtWAH8AfwVDBUMGngaeAb4BvgNBA0EEngSeAdgB2AAAAAAAAAAAAAAAAA=="
	}
}

Character attributes

The following attributes can be used to define characters:

Attribute Description Example
first_name Name of Character first_name="Alexander"
family Family of an living character. "c:" is the tag of the country, "fam:" is the name of the family. family = c:EPI.fam:Aiakidai
family_name Family of an dead or unimportant character. family_name="Argead"
nickname The nickname of an character. See more at Cognomen. nickname = "NICKNAME_II"
birth_date Date of the birth of an character. Please note, that the birth date is in Ab Urbe Condita in a YY.MM.DD format. birth_date=418.7.8
death_date Date of the birth of an character. Please note, that the birth date is in Ab Urbe Condita in a YY.MM.DD format death_date=429.7.8
culture Culture of an character. See Culture. culture="macedonian"
religion Religion of an character. See Religion. religion="roman_pantheon"
female Declare that the character is a female female=yes
no_stats Character will start with 0 Martial, 0 Finesse, 0 Charisma and 0 Zeal. See Stats no_stats=yes
add_martial Add a declared number of Martial Martial.png stat to the character add_martial=8
add_finesse Add a declared number of Finesse Finesse.png stat to the character add_finesse=5
add_charismaa Add a declared number of Charisma Charisma.png stat to the character add_charisma=3
add_zeal Add a declared number of Zeal zeal修正 stat to the character add_zeal=1
no_traits Character will have no starting traits. See Traits no_traits=yes
add_trait Adds an trait. See Characters add_trait="ambitious".
add_gold Sets the amount of starting personal wealth Wealth add_gold=100
add_popularity Sets the amount of starting popularity Popularity.png add_popularity=50
add_prominence Sets the amount of starting prominence Prominence.png add_prominence=50
set_as_ruler Set character as the ruler of the tag
c:EPI={
    set_as_ruler=char:1
}
set_as_coruler Set character as the coruler of the tag
c:EPI={
    set_as_coruler=char:1
}
dna Defines the look of an character. Use the portrait editor, to see the dna. dna=""
father Defines the father of an character. The number is the id of the father. father="char:35"
mother Defines the mother of an character. The number is the id of the mother. mother="char:36"

Character interactions

#<interaction_name> = {
#	
# message = yes/no  #default yes
#	on_other_nation = yes/no
#	on_own_nation = yes/no
#	
#	
#	potential_trigger = {
#		scope:actor = {
#			#country 
#		}
#		scope:target = {
#			#character
#		}
#	}
#
#	allowed_trigger = {
#		scope:actor = {
#			#country 
#		}
#		scope:target = {
#			#character
#		}
#	}
#	
#	character_actor_trigger = {
#		trigger checked to build target list for all characters in actor (country)
#	}
#	
#	character_target_trigger = {
#		trigger checked to build target list for all characters in target's (employer-country)
#	}
#	
#	effect = {
#		scope:actor = {
#			pay_price = <interaction_price>
#		}
#	}
#
#}