Officer editingOkay, I'll first start with the officers. I'll take Zetta's Yang Song code in his guide and colour the bytes I have to say something about. That's the code as presented in the guide:
Yang 00 00 00 00 00 00 00 00 Song 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b9 01 00 ba 00 a7 00 d7 00
01 48 02 06 08 ff ff
01 ff ff ff ff 0d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 24 00 24
00 03 49
ff ff 61 40 1f 00 00 00 00 00 00 02 05 1c 22 05 04 04 04 04 04
0a ff
02 00 02 0200 00 0d 00
03 00 00 6a 73 74 ff 74 74 ff ff ff ff ff ff
20 00 00 00
DeathThis byte codes how the officer died. Choices are 00 for natural and 01 for unnatural. Officers who died an unnatural death will live around 10 years past their year of death.
ClanThis here codes the officer's clan. It's usually the officer's own number, but if there are more family members, it's usually the oldest or most famous person in the clan who is chosen here. For example, if you put 57 01 here, your officer will belong to Cao Cao's clan. Things the clan bytes affect:
- If one of the clan members is a ruler, the officer will join him when he comes to age
- Marriage and Oaths between clan members are impossible
- Officers will assist each other in battle
- Special quotes during duels etc.
GenerationThis codes an officer's generation. It's probably used for special quotes and officers' addresses. Cao Cao has 01 here, Cao Pi for example has 02 and Cao Rui 03.
DependenceThese bytes codes what I call "Dependence". If you insert an officer's number here, your officer will join the force the other officer serves when he comes to age. These bytes are used rarely, in fact Ma Dai seems to be the only one to use it. He has Ma Teng here, so he'll join the force Ma Teng serves as if he was one of his sons.
(It's a good way to make all of those Xiahous automatically join Cao Cao's force in the early scenarios.)
BirthplaceThis byte codes the officer's birthplace. It's used for example in debate recruiting events, the officer will always (?) suggest to recruit someone who has the same birthplace. If the officer's local affiliation is high, he should go back here when the force he serves is defeated and he escapes.
00 = You Province (Xiangping, Beiping, Ji)
01 = Ji & Bing Province (Nanpi, Pingyuan, Jinyang, Ye)
02 = Qing & Xu Province (Beihai, Xiapi, Xiaopei, Shouchun)
03 = Yan & Yu Province (Puyang, Chenliu, Xuchang, Runan)
04 = Sili (Luoyang)
05 = Jingzhao (Wan, Chang'an, Shangyong)
06 = Liang Province (Anding, Tianshui, Wuwei)
07 = Yang Province (Jianye, Wu, Huiji, Lujiang, Chaisang)
08 = Jingbei (Jiangxia, Xinye, Xiangyang)
09 = Jingnan (Jiangling, Changsha, Wuling, Guiyang, Lingling)
0a = Yi Province (Yong'an, Hanzhong, Zitong, Jiangzhou, Chengdu)
0b = Nanzhong (Jianning, Yunnan)
AspirationZetta already mentions the Aspiration code in his guide and gives a few examples of what bytes to use in order to get specific aspirations. But there's more to it than that.
02 00 02 02 ## ## ## ##
03 00That's the code. The ## bytes are unused and code the character's voice and such, as seen in the guide.
Favourite Debate topicThis byte codes the officer's favourite debate topic. It might make cards of this topic stronger, give more of those cards, give better cards, or whatever. I don't really know what it is for at the moment.
00 = Fact
01 = Logic
02 = Time
Virtue This byte codes the officer's virtue. The higher the virtue, the less frequent loyalty drops will be and the officer will less likely betray his ruler. It might affect how much loyalty is gained via the Reward command and perhaps even the success rate of challenging the officer to a duel.
00 = Very Low
01 = Low
02 = Normal
03 = High
04 = Very High
Ambition This codes the officer's ambition. Officers with high ambition will gain less loyalty when rewarding them, loyalty drops might be more frequent (?) and the officer will more likely create his own force when sitting in a free city. Values are the same as Virtue.
Rank Selection This byte codes how the AI ruler will appoint officers.
00 = Stat (Officers with best stats get the best ranks)
01 = Results (I think those who destroy the most units or do well in battle will be promoted)
02 = Deeds (Officers with highest deeds get the better ranks)
03 = Virtue (Officers with high (?) virtue get high ranks)
04 = Special (I guess the ruler will more likely appoint family members/liked officers to higher ranks and might not give disliked officers any ranks)
Strategic Tendency That's important for AI rulers and viceroys. It basically codes their aggressiveness to some extend and what they aim for first.
00 = Unify China
01 = Unify Region/Area (will be explained in the force code part later)
02 = Unify Province (see Birthplace byte)
03 = Unchange (basically sit around and do nothing or expand very slowly)
Local AffiliationI think this codes what happens if the force the officer serves gets destroyed. Some officers return to their birthplaces, others can be found at the other edge of the map.
00 = Important
01 = Normal
02 = Ignore
Need confirmation on this one though.
ModelZetta did a small mistake here when he last edited the guide. The order of the model parts is the following:
Stance - Headwear - Face - Body - Cape - Arms - Boots - Arrows - ?? - ?? - Weapon - Horse
See
this thread for the codes. Zetta's guide has the codes for weapon and horse models.
It appears that choosing a weapon model will yield its benefits in duels. Choosing a horse model might even give the horse item benefits.
Guilde CardsZetta calls it "Action" byte in his guide, setting the officer to Available or Done. That's incorrect though.
This byte codes what guile cards are available to the officer. You basically have to know these codes:
00 = None
08 = Yell
10 = Reflect
20 = Ignore
40 = Calm
80 = Frenzy
Now if you want to have two of these guile cards available, you'll have to add up their hex numbers. So if you want Reflect and Calm to be available, it's 10 + 40 = 50. Insert 50 here and you'll have both cards.
If you choose to combine so many that the result becomes a 3 digit number, you'll have to use the hex letters. That means 100 = a0, 110 = b0, 120 = c0, etc.
If you want Yell, Calm and Frenzy available, you'll have to add 8 + 40 + 80 = 128, which makes it c8.
The highest possible value is 158 (f8), which makes all cards available (and thus the officer doesn't need a book item).
So, that's all as far as officer editing is concerned. I'll continue tomorrow with the Force Code parts that still need explanation, then I'll move on to the districts.
EDIT: Added Generation byte. Missed it somehow.