OSP Kit SP MB Warband - Native Command Line - Modmerger pack

正在查看此主题的用户

Shcherbyna

Sergeant
Intro:


[OSP] Native Command Line v1.1 Download page

* Is a fork of StudyMod part, so is for players who don't use StudyMod

MB Warband v1.1xx

ru-board: http://rusmnb.ru/index.php?topic=18529.0

Is a mechanism that allows you to add text commands to the game for new actions, magic, cheats, talks, etc... Works only on scenes.

[Left Alt] - show Command Line
[Right Alt] - hide Command Line
[key_UP] - return last command or "cheatmenu" at start



Command Line commands:
+ help - show all the commands
+ cheatmenu - alternative of "[Ctrl] + [~]" (if it not working)

Cheats for developers:
+ heal - heal player agent on scene
+ mass spell - kill all enemies on the scene
+ gold - get 10000 of gold
+ gtl - get tournament list

Edit the script "command_line_analyzer" to add a new commands. util_cmd_code_generator.py generates a digital code.

Advanced Cheatmenu you can take here: http://shcherbyna.my-board.org/en/game_dev/mb_warband/advanced_cheatmenu

=== Install ===

* Installed ModMerger must be. (http://www.mbrepository.com/file.php?id=2151)

1) Copy resources & textures to Warband/Modules/YourMod/
2) Edit module.ini
3) Copy to Module_system/.. Japan_OSP-folder
4) Edit modmerger_options.py
5) Build module by build_module.bat

Open Command Line by [Left Alt]-key, to write the command you wish or press [key_Up] to restore previous command or "cheatmenu" at start.
 
由板主最后编辑:
+ new debug command "get booksellers list" or "gbl" - shows towns names that holding a booksellers

Replace script "script_command_line_get_tournaments_list" => "script_command_line_get_town_slot_info":
commandLine_scripts.py 说:
#script_command_line_analyzer:
  # INPUT: None
  # OUTPUT: None

  ("command_line_analyzer",
...
...
        (else_try), # Debug info
            (this_or_next|eq, "$cmd_code", 9801), # get tournaments list
            (eq, "$cmd_code", 869), # "gtl"
            (call_script, "script_command_line_get_town_slot_info", slot_town_has_tournament),
        (else_try),
            (this_or_next|eq, "$cmd_code", 9356), # get booksellers list
            (eq, "$cmd_code", 653), # "gbl"
            (call_script, "script_command_line_get_town_slot_info", slot_center_tavern_bookseller),
...
...

# script_command_line_get_town_slot_info: Shows towns names that holding a tournaments|booksellers
  # INPUT: arg1 = town_slot_name
  # OUTPUT: None

  ("command_line_get_town_slot_info",
    [
        (store_script_param_1, ":slot_no"),
(str_store_string, s1, "@-- None --"),
(try_for_range, ":center_no", towns_begin, towns_end),
(party_get_slot, ":info", ":center_no", ":slot_no"), # slot_town_has_tournament
(try_begin),
(gt, ":info", 0),
                (str_store_party_name, s1, ":center_no"),
(display_message, "@{s1}"),
(try_end),
(try_end),
  ]),
 
后退
顶部 底部