This is a mod. It has its own functions, but I also hope it is an API. You can spend money to recruit some troops in the set settlements. As long as you have money, you can recruit troops, which will greatly reduce the difficulty of the game. At least this time AI can't grab recruits with you.
Requirements
This mod does not have any known dependencies other than the base game.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 1.8.0.1000
Changed MMAConfig.xml File's Structure, Old version Config file will be auto update when loading a save.
Fixed a bug that when exit a save and then load another save, the gamemenu will be lost
Fixed bugs when recruit companion.
Now you can create your custom GameMenu by use MMA.
Now you can create a logic expression as the Enable/Disable Conditions for the game menu option that go into your game menu.
Version 1.6.1.0011
new you can use cheat mode, change ModuleData/MMASetting.xml.in cheat mode you can buy troops without gold.
now new hero have their occupation - wanderer
in MMA that in town, there is a new option you can use your prisoner to gain Xp for your soilder, you can turn off this feature in MMASetting.xml
the feature that make prisoner useful will remove all prisoners in your party, give your party (prisoner's level * number of prisoner * EXP_GAIN_RATE) Xp in total
EXP_GAIN_RATE can be changed in MMASetting.xml
Version 1.6.1.0010
New Attribute IsOptional
If you create recruitment options(the Mercenary) for other mods, but the player does not install that mod, set IsOptional = "true" so that the program will not make errors.
Reupload: fix a bug
Version 1.6.1.0009
Adjusted the logic of XML reading
Still compatible with documents created for older versions of MMA.
Now you can use: InTown, InCastle, InVillage = "true" / "false" to specify the settlement type. The Attribute SettlementType is still enable, but is read only if all three new Attributes are false or default.
Mercenaries can now be recruited as companions,To make a mercenary a hero, you need the Attribute CanCreateHero to be true.
You can use IsMercenary to set whether troops are allowed to be recruited,And use IsPrisoner to set whether it is allowed to be Buy as a prisoner
When the name of the childNode of <office> is "Mercenary", the Attribute IsMercenary of this childNode is locked to true
When the name of the childNode of <office> is "Prisoner", the Attribute IsPrisoner of this childNode is locked to true
When the name of the childNode of <office> is "Hero" or "Companion" , the Attribute CanCreateHero of this childNode is locked to true
Attribute OfficeType is still available,When it is set to "merge", Attribute IsMercenary of all child nodes of this office will be locked to true, but Attributes IsPrisoner and CanCreateHero will not be affected
Version 1.6.1.0008
Writemode adds a new option: Remove
Now perform exceptional handling for XML reading. When there is an XML Exception, the game will not crash and can continue to execute. You can view the error report in ModuleData / Exception.txt.
Offices without ID are no longer allowed. These offices will not be used.
Version 1.6.1.0007
New xml-attributes AmountMin and AmountMax, refer to the file localMMAConfig.xml
Adjust the default value of attribute 'Cost' to 1000. If you do not set cost or set it incorrectly, the default value will be applied.
Attribute 'Cost' is automatically set to 1000 when it is less than or equal to 0
Reupload: fix a bug
Version 1.6.1.0006-alpha
Beta version removed
Fixed the bug that only one xml file can be read (new bug caused by bug repair in version 0005)
Version 1.6.1.0006-Beta
By setting WriteMode, you can now overwrite the previous office with the new office.
Version 1.6.1.0005
Fixed the bug of duplicate menu when reading the archive again
Added attribute “OfficeType”
Prisoners can now be purchased from the mercenary Association
Updated language files
Version 1.6.1.0004
It is now allowed to configure your office with a file with the suffix mmaconfig.xml. Please put this file in the moduledata folder of your mod. The directory looks like this:Mouules/yourMod/ModuleData/yourModMMAConfig.xml,For the preparation of the XML file, please refer to the comments in my localmmaconfig.xml.
Updated language file
Version 1.6.1.0003
Allows to use settlementtype to set office, including town, castle, village, and default settings
Allows to set filter criteria using cultureid
Allows to set filter criteria using mapfactionid
Allows to set filter criteria using settlementid
Change the xmlnode menu to xmlnode office,Id as primary key
Version 1.6.1.0002
Allow to filter office by Castle, town and village
This version is a beta version and has not been uploaded
Version 1.6.1.0001
Added Chinese and English language files
Now you can use cultureid to filter office
GitHub:MoMercenaryAssociation I will not be maintaining this mod for a while, if you need the source code, please pull it from the link, I have set it as public, you are welcome to push your own branch. 在一段时间中我将不会再维护这个mod,如果你需要源码,请从链接拉取,我已经将它设置为公开,欢迎你推送自己的分支。
Mo Mercenary Association, in story setting, is Mo lengling founded the association 20 years ago. Its institutions are all over the continent of karadia. You can recruit these powerful mercenaries as long as you pay enough money. Stronger mercenaries need more money.
to modder: By creating a file named "xxxMMMAConfig. XML" in the moduledata folder, you can configure your own office and mercenary, and support the configuration of office opening conditions through culture, mapformation, settlement and settlement type.The string 'xxx' can be any string
This is my first mod with DLL. There may be many vulnerabilities. I can't guarantee that it will run perfectly, but I will continue to maintain this project.