FANDOM


This page is intended as a guide to the popular Developer Console Mod.

Where to find IDs / Skills / EquipmentEdit

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 CommandsEdit

Declaring peace with all minor factionsEdit

campaign.make_peace_with_every_faction

Declaring peace with all major factionsEdit

campaign.start_player_vs_world_truce

List of all Commands Edit

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
campaign.add_building_level
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 ]
campaign.add_gold_to_all_heroes
campaign.add_gold_to_hero
campaign.add_horse
campaign.add_influence  [ Number ]
campaign.add_morale_to_party  [ Number ]
campaign.add_prisoner none
campaign.add_progress_to_current_building
campaign.add_random_hero_to_party
campaign.add_random_prisoner_hero
campaign.add_renown_to_clan  [ Number ]
campaign.add_sample_children_to_main_character
campaign.add_skill_xp_to_hero
campaign.adopt_hero [ HeroName ] Makes the player the father of that hero.
campaign.ai_attack_party
campaign.ai_defend_settlement
campaign.ai_goto_settlement
campaign.ai_raid_village
campaign.ai_siege_settlement
campaign.boost_cohesion_of_all_armies
campaign.boost_cohesion_of_army
campaign.burn_village
campaign.calculate_distance_from_main_party
campaign.call_faction_heroes_to_settlement
campaign.cancel_active_quest
campaign.change_clan_leader [ Clan Name ] Changes the clan leader to a random member of the clan.
campaign.change_current_building
campaign.change_faction_relation
campaign.change_hero_relation
campaign.change_main_hero_age
campaign.check_camp_locations
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
crafting.unlock_all_parts - Unlocks all parts for smithing.
Community content is available under CC-BY-SA unless otherwise noted.