Author Topic: Modding VC: basic tutorials and Q&A thread  (Read 59127 times)

0 Members and 2 Guests are viewing this topic.

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: Modding VC: basic tutorials and Q&A thread
« Reply #435 on: August 26, 2019, 04:13:21 PM »
"game_get_party_companion_limit"

^

Code: [Select]
      (assign, ":fyrd", 0),
      (assign, reg35, 0),
      (try_for_range, ":cur_center", walled_centers_begin, walled_centers_end), #kingdom
        (party_slot_eq, ":cur_center", slot_town_lord, "trp_player"),
        (try_begin), #towns
          (party_slot_eq, ":cur_center", slot_party_type, spt_town),
          (val_add, ":fyrd", 80),
        (else_try), #castles forts
          (val_add, ":fyrd", 40),
        (try_end),
      (try_end),
      (val_add, reg35, ":fyrd"),
      (val_add, reg0, ":fyrd"),

80 and 40 are the bonus for towns/castles.

Banok

  • Knight
  • *
  • GHARR PARROT!
    • View Profile
  • Faction: Neutral
  • MP nick: Banok / Ishido
  • WBNWM&BVC
Re: Modding VC: basic tutorials and Q&A thread
« Reply #436 on: September 02, 2019, 07:25:12 PM »
"game_get_party_companion_limit"

^


80 and 40 are the bonus for towns/castles.

Super helpful Kalarhan, thanks.

My other question is about how to change limit to garrison sizes.

If I understand correctly "party_templates" (PT) determines which troops garrisons get ie. 4 to 8 trp_norse.

then "cf_reinforce_party -1" in scripts will determine when party/garrison is reinforced, and presumably which PT. but is this within a limit? what is the limit set in VC for villages, castles towns?

hvitserk115

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Modding VC: basic tutorials and Q&A thread
« Reply #437 on: September 03, 2019, 04:55:16 AM »
<REPOST>
Firstly, i love throwing spears in M&B VC RE vanilla and dark age.
But unfortunately, my favourites which instantly remove shields and kill on strike - only 2 be held in one weapon slot.
I know this is very noobish, but can i do an edit to increase the number of spears the item provides? If so,
How can i do this? I remember that in the cheat menu there is a spear item with 100 spears in it. Can i edit these ones damage and shield bonus? How?
Do i need python, or is it just a simple notepad .txt edit?
-instructions please? :party:

Thanks,
Hvitserk115.


kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: Modding VC: basic tutorials and Q&A thread
« Reply #438 on: September 03, 2019, 04:48:35 PM »
I know this is very noobish, but can i do an edit to increase the number of spears the item provides?

looks like you didnt read the links to tutorials, etc. So try to use Morgh's to increase ammo ...

you can find the thread here https://forums.taleworlds.com/index.php/board,22.0.html

if you, however, want to learn how to mod and use modsys then check module_items.py and increase ammo there. Follow the guides on how to setup, download and compile the code.



My other question is about how to change limit to garrison sizes.
check [VC Tweaks Tools]. You can find a tweak for garrison in there. Use it as a reference if you are not interested in the tool itself.

Code: [Select]
# TWEAK 1: REDUCE GARRISON LIMITS FROM ALL TOWNS AND FORTS
                                        # On vanilla towns have a higher limit than forts, and both are a function of
                                        # player level (higher level allows for more troops)
                                        # and prosperity of the center (how rich).
                                        # Max is 650 (forts) and 850 (towns).
                                        # This tweak will change the limit, and town/forts with too many troops
                                        # will lose them over time (for all factions)
TWEAK_GARRISON_LIMIT_FOR_FORTS = 650    # Default: 650
TWEAK_GARRISON_LIMIT_FOR_TOWNS = 850    # Default: 850
« Last Edit: September 03, 2019, 04:51:23 PM by kalarhan »