Where to find IDs / Skills / Equipment/ Rakatatatikititum[]
The XML files inside "Mount & Blade II Bannerlord\Modules\SandBoxCore\ModuleData\" contains almost all data relevant to the game (NPC / hero skills and equipment, village names and their IDs, etc.). The following pages are merely an extraction of that data:
Useful Commands[]
Declaring peace with all minor factions:
campaign.make_peace_with_every_faction
Declaring war with all major factions:
campaign.start_player_vs_world_truce
Declaring peace between major faction and player faction: For example, name of your faction is "Imperium Calradum" and you are at war with the Western Empire, you can make peace with the faction by using the following command:
campaign.declare_peace westernempire ImperiumCalradum
Note that if the name of your kingdom contains a space, then leave that out of the command as shown in the example. This console command give peace without any tributes as far as I know. I find this command quite useful since the state of the game there are so many war declarations without actual cause that I just had to find out how it actually worked.
List of all Commands[]
You can find a comprehensive list of the IDs of all factions, items, troops, etc. here.
Command | Arguments | Info | Example |
---|---|---|---|
campaign.activate_all_policies_for_player_kingdom | |||
campaign.add_attribute_points_to_hero | [Number] | Adds attribute points to the player | |
campaign.add_building_level | [SettlementName] | [Building] | Levels up a building in the "Manage castle" or "Manage town" window | campaign.add_building_level JogurysCastle | Wall |
campaign.add_caravan_to_hero | none | Adds a random caravan to the player party. | |
campaign.add_companion | none | Adds a random companion to the player party. | |
campaign.add_focus_points_to_hero | [Number] | Adds focus points to the player | |
campaign.add_gold_to_all_heroes | [Number] | ||
campaign.add_gold_to_hero | [Number] | ||
campaign.add_horse | [Number] | Adds mules to the player's inventory | |
campaign.add_influence | [Number] | Adds influence to the player | |
campaign.add_morale_to_party | [Number] | Adds morale to the player's party | |
campaign.add_prisoner | [Number] | [TroopName] | Adds prisoner Looters to the player if no TroopName is given | |
campaign.add_progress_to_current_building | [SettlementName] | [Progress (0-100)] | Adds a percentage of progress to a building in the "Manage castle" or "Manage town" window | |
campaign.add_random_hero_to_party | Adds a random companion to the player's party | ||
campaign.add_random_prisoner_hero | Adds a random prisoner lord from the game to the player | ||
campaign.add_renown_to_clan | [Number] | Adds renown to the player clan | |
campaign.add_skill_xp_to_hero | [SkillName] [Number] [HeroName] | Without arguments, adds 100 xp to all player skills. XP is not forcibly added but instead calculated normally with the learning rate shown in the character window | campaign.add_skill_xp_to_hero Trade 10000 |
campaign.adopt_hero | [HeroName] | Makes the player the father of that hero. | |
campaign.ai_attack_party | [AttackerHeroName] | [HeroName] | Force AI to hunt down and attack the other. Only works if the parties are enemies. | campaign.ai_attack_party Monchug | Lucon |
campaign.ai_defend_settlement | [HeroName] | [SettlementName] | Forces AI to defend a specific settlement | |
campaign.ai_goto_settlement | [HeroName] | [SettlementName] | Forces AI to travel to a specific settlement (not instantly) | |
campaign.ai_raid_village | [HeroName] | [VillageName] | Forces AI to raid a village | |
campaign.ai_siege_settlement | [HeroName] | [SettlementName] | Forces AI to siege a settlement | |
campaign.boost_cohesion_of_all_armies | Maximizes the Cohesion of all armies | ||
campaign.boost_cohesion_of_army | Maximizes the Cohesion of the current army you are in | ||
campaign.calculate_distance_from_main_party | [PartyName] | Gives distance (units unknown) from player to hero's party | campaign.calculate_distance_from_main_party Monchug's Party |
campaign.change_clan_leader | [Clan Name] | Changes the clan leader to a random member of the clan. | |
campaign.change_current_building | [SettlementName] | [BuildingTypeName] | ||
campaign.change_hero_relation | [Value] [HeroName]
or [Value] [All] |
Change relation with a specific hero or with all heroes. The player's Charm level is used to calculate total value. | |
campaign.change_main_hero_age | [Number greater than 15] | Change the player's age | |
campaign.check_village_bandit | |||
campaign.clear_settlement_defense | |||
campaign.complete_active_quest | |||
campaign.conceive_child | |||
campaign.control_party_ai_by_cheats | |||
campaign.create_faction_army | |||
campaign.create_perk_main_hero | |||
campaign.create_player_kingdom | |||
campaign.declare_peace | [ Faction1 ] [ Faction2 ] | Declares peace between two factions. | |
campaign.declare_war | [ Faction1 ] [ Faction2 ] | Declares war between two factions. | |
campaign.destroy_clan | |||
campaign.destroy_kindgom | Effects on campaign? | ||
campaign.destroy_party | |||
campaign.difficulty | |||
campaign.election_chooser_cheat | |||
campaign.election_supporter_cheat | |||
campaign.enable_party_count | |||
campaign.expel_clan_from_kindgom | |||
campaign.fill_party | |||
campaign.fill_party_alt_solution_test | |||
campaign.fill_party_tableau_test | |||
campaign.find_alley_owners_with_more_than_one_alley | |||
campaign.find_hero | |||
campaign.find_issue | |||
campaign.find_mobile_party | |||
campaign.find_settlement | |||
campaign.free_player_through_barter | |||
campaign.get_character_id_from_character_code | |||
campaign.get_conversations_tags | |||
campaign.get_criminal_ratings | |||
campaign.get_game_progress | |||
campaign.get_heroes_at_age | |||
campaign.get_infested_hideout | |||
campaign.get_invalid_family_members | |||
campaign.get_lords_inside_settlement | |||
campaign.get_main_party_position | |||
campaign.get_settlement_common_area_states | |||
campaign.get_stance_between_factions | |||
campaign.give_all_crafting_materials_to_main_party | |||
campaign.give_item_to_main_party | |||
campaign.give_money_to_main_party | |||
campaign.give_settlement_to_player | [SettlementName] | campaign.give_settlement_to_player "Ab Comer Castle" | |
campaign.give_troops | [ TroopID ] [Number] | ||
campaign.give_troops_xp | |||
campaign.give_workshop_to_player | |||
campaign.give_xp_to_main_party | |||
campaign.go_to_settlement | |||
campaign.grow_player_babies_to_child | |||
campaign.grow_player_children_to_teen | |||
campaign.grow_player_teen_to_adult | |||
campaign.heal_main_party | |||
campaign.hide_hideouts | |||
campaign.is_hero_suitable_for_marriage_with_player | |||
campaign.join_kingdom | |||
campaign.kill_capturer_party | |||
campaign.kill_hero | |||
campaign.lead_your_faction | |||
campaign.leave_faction | |||
campaign.leave_faction_by_rebellion | |||
campaign.list_active_quests | |||
campaign.list_all | [ Type ] | Types are: Settlements, Kingdoms, Villages, Heroes, Factions, Armies, Parties | |
campaign.list_children_heroes_suitable_for_marriage | |||
campaign.list_heroes_suitable_for_marriage | |||
campaign.list_heroes_without_party | |||
campaign.list_home_settlement_of_player | |||
campaign.list_player_traits | |||
campaign.list_tournaments | |||
campaign.list_trade_rumors | |||
campaign.make_hero_fugitive | |||
campaign.make_hero_wounded | |||
campaign.make_main_hero_ill | |||
campaign.make_peace_with_every_faction | none | Makes peace between the player clan and all player clans (including minor factions). Note: This does not declare peace between the player faction and all major factions if the player has created his own kingdom. | |
campaign.marry_player_with_hero | |||
campaign.move_camera_between_fights | |||
campaign.move_camera_between_fights_automatically | |||
campaign.move_time_forward | |||
campaign.multiply_campaign_speed | |||
campaign.normalize_hideouts | |||
campaign.open_town_mission_spawn_at_workshop | |||
campaign.print_all_issues | |||
campaign.print_issue_statistics | |||
campaign.print_issues | |||
campaign.print_party_count_statistics | |||
campaign.print_party_prisoners | |||
campaign.print_player_progress | |||
campaign.print_projects_in_settlement | |||
campaign.print_settlement_goods | |||
campaign.print_workshop_info | |||
campaign.print_workshops_in_settlement | |||
campaign.rebellion_enabled | |||
campaign.refresh_icon | |||
campaign.refresh_parties | |||
campaign.remove_tracked_object | |||
campaign.reset_player_skills_level_and_perks | |||
campaign.reset_tracker | |||
campaign.set_all_skills_main_hero | |||
campaign.set_army_notifications | |||
campaign.set_banner_editor_is_enabled | |||
campaign.set_crafting_is_enabled | |||
campaign.set_criminal_rating | |||
campaign.set_desertion_enabled | |||
campaign.set_face_gen_is_enabled | |||
campaign.set_hero_age | |||
campaign.set_intensity | |||
campaign.set_kingdom_notifications | |||
campaign.set_main_hero_age | |||
campaign.set_main_hero_stats_to_mid_game | |||
campaign.set_main_party_attackable | |||
campaign.set_midgame_archetype | |||
campaign.set_mood | |||
campaign.set_parties_visible | |||
campaign.set_player_reputation_trait | |||
campaign.set_player_siege_as_sally_out | |||
campaign.set_quest_debug_mode | |||
campaign.set_skill_companion | |||
campaign.set_skill_main_hero | |||
campaign.set_skills_of_hero | |||
campaign.set_town_test_scene | |||
campaign.set_village_test_scene | |||
campaign.show_character_feats | |||
campaign.show_current_location_heroes | |||
campaign.show_direction_of_player_around_settlement | |||
campaign.show_direction_of_settlement_around_main_party | |||
campaign.show_hideouts | |||
campaign.show_party_morale_detail | |||
campaign.show_party_size_limit_detail | |||
campaign.show_possible_battle_scenes | |||
campaign.show_prisoners | |||
campaign.start_barter_with_hero | |||
campaign.start_barter_with_lucon | |||
campaign.start_conversation | |||
campaign.start_election_to_change_policy | |||
campaign.start_election_to_declare_war | |||
campaign.start_election_to_make_peace | |||
campaign.start_king_selection_decision | |||
campaign.start_player_vs_world_truce | - | Makes peace with all major factions. | |
campaign.start_player_vs_world_war | |||
campaign.start_rebellion_in_settlement | |||
campaign.start_test_conversation_mission | |||
campaign.start_tournament | |||
campaign.start_world_war | |||
campaign.take_hero_prisoner | |||
campaign.teleport_hero_to_settlement | |||
campaign.throw_prisoner_to_settlement | |||
campaign.toggle_add_castles_to_villages_cheat | |||
campaign.track_object | |||
campaign.unlock_all_crafting_pieces | - | Unlocks all parts for smithing. | broken with 1.6.0 update |