The code must first enable cheat mode. The method to enable it is as follows: Open my document - engine_config under Mount and Blade II BannerlordConfigs and modify cheat_mode = 0 to cheat_mode = 1. The document is read-only. It is best to open it again to confirm.
crafting.unlock_all_parts Unlocks all parts.
[] No need to enter, the middle must be numbers or English
campaign.give_item_to_main_party space [equipment code] to weapon.
like:
campaign.give_item_to_main_party_with_modifier crossbow_a
The weapon code is at the following address:
Mount & Blade II BannerlordModulesSandBoxCoreModuleDataspitems.xml
Must be translated according to the corresponding Chinese version:
Mount & Blade II BannerlordModulesSandBoxCoreModuleDataLanguagesCN
campaign.give_troops_xp space [value] Give experience points to the troops under your command.
campaign.give_troops space [troops code] space [number] to soldiers.
Such as: campaign.give_troops khuzait_horse_archer 12 Twelve khuzait horse archers.
imperial_elite_cataphract Imperial elite armored cavalry.
vlandian_banner_knight Vlandian Banner Knight.
khuzait_khans_guard Khuzait Khan's personal guard.
aserai_mameluke_heavy_cavalry Aserai Mameluke heavy cavalry.
Youxia.com
battanian_fian Battanian Fiona Warrior.
vlandian_sharpshooter Vlandian sharpshooter.
imperial_legionary Imperial legionnaire.
imperial_sergeant_crossbowman Imperial crossbowman sergeant.
vlandian_sergeant Vlandian Sergeant.
campaign.change_hero_relation space [value] space [character name, must be in English].
like:
campaign.change_hero_relation 50 Rhagaea Increases friendship with the Queen of the Southern Empire by 50.
cheat_mode 1 After cheating is turned on, open the inventory directly and all items can be traded. If you don’t want it anymore, you can turn cheat_mode 0 off.
Increase skill experience
Campaign.add_skill_xp_to_hero [skill name] [xp amount].
like
Campaign.add_skill_xp_to_hero Crossbow 5000000.
After you can change to English, look at the skill bar and input in English.
add soldiers
campaign.give_troops help look at the code.
The code also replaces English spaces with underscores. You can change the English interface. You can right-click the encyclopedia while looking at the military units and enter them. However, some troops do not know why they have added a successful prompt but cannot find it, such as the female swordsman.
It is recommended to only use the code given.
Modify relationship
campaign.change_hero_relation [Increased favorability] [Character object name, you can also use all].
Add reputation experience
campaign.add_renown_to_clan [reputation experience].
Here is a list of Mount & Blade 2 Bannerlord cheat instructions, I hope it will be helpful to everyone playing the game.