Hello modders of TWC!
During these days i have been brainstorming about some features used in the Americas Campaign. Since i haven't found a thread about this topic i decided to show you my findings.
Opening the descr_strat.txt file and looking at the european faction section i have noticed a particular string:
Code:
faction spain, balanced smith
ai_label default
denari 30000
denari_kings_purse 5000
name_faction spy aztecs
settlement
;;;;;;;;;;;;;;;;;;;;;;;
faction england, balanced smith
ai_label default
dead_until_resurrected
denari 10000
denari_kings_purse 1000
name_faction spy aztecs
;;;;;;;;;;;;;;;;;;;;;
faction france, balanced smith
ai_label default
dead_until_resurrected
denari 10000
denari_kings_purse 1000
name_faction spy aztecs
Look at the string in red; every time these factions recruit a spy, the name of the agent will be picked from the aztec name list in descr_names.txt
At this point I wondered if this feature works with other characters too; so i did a couple of tests on a fresh install of Gigantus's Bare Geomod:
The first try was with the Holy Roman Empire faction (hre) to see if the feature works with other factions:
My example code:
Running a campaign i found that the code actually works as seen in the Americas Campaign; in this case every spy recruited by the HRE will spawn with a random name from the timurids name list in descr_names.txt
Then i tried to replace "spy" with other character types:
In my tests i have chosen the timurids but i guess that every faction name listed in descr_sm_faction.txt will work.
With additional testing i found that more than one string can be added to a faction in descr_strat.txt
For example:
The game seem also to accept diffent entries as well:
I haven't tested these character types: princess, inquisitor, heretic, witch
A special case is the "named character" type:
Important note: If you link the name of a specific character type to a different faction and there is a character of the same type already coded in descr_strat.txt it must have a name picked from that specific faction, otherwise it will appear in game but it won't have a name.
For example in the Americas Campaign as i showed you the spy names are linked to the aztec names, because of this the starting spy assigned to spain is coded with an aztec name:
Code:
name_faction spy aztecs
character Cocozca, spy, male, age 23, x 101, y 30
traits GoodSpy 3 , NaturalGuide 1
I hope i was clear, if you have questions just ask
What do you think about this feature?
Greetings,
Warcrafthero