Recruiting Troops in Castles

Users who are viewing this thread

Damnation

Sergeant at Arms
Hello everybody,
now I don't know if this is covered somewhere in any of the guides and documentations, i at least didn't find it, but I'm sick of having to train my troops for months before I get a usable army. How do I enable the recruitment of advanced units in castles? Can somebody please be so kind and explain it to me? I have no former mod experience...

Edit: Changed the message icon.
 
Ok, I did this a couple of days ago to practice my Python.. Altough I did it for 'town_trade'..

Here I go:




1. Open "module_game_menus"



2. Search for:
Code:
    "town_trade",0,



3. You'll find a section that looks like this:
  (
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),



4. Replace it with:
  (
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## You have added a new menu.
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),

      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),



5. Search for:
Code:
    "town_trade_assessment_begin",0,



6. It will look something like this:
(an excerpt from 2 sections)
  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
    ]
  ),

  (
    "town_trade_assessment",mnf_disable_all_keys,
    "As the party member with the highest trade skill ({reg2}), {reg3?you try to figure out:{s1} tries to figure out} the best goods to trade in. {s2}",
    "none",
    [(call_script, "script_get_max_skill_of_player_party", "skl_trade"),
    (assign, ":max_skill", reg0),
    (assign, ":max_skill_owner", reg1),
(lines: 8253 - 8281 for un-edited module_game_menus)..



7. Change it to:
  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
      ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),

    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_farmers",[],"Hire farmers.",
      [
          (jump_to_menu,"mnu_town_hire_farmers"),
        ]),
      ("hire_cutthroats",[],"Hire villains, cutthrroats and looters.",
      [
          (jump_to_menu,"mnu_town_hire_cutthroats"),
        ]),
      ("hire_knights",[],"Hire knights in shiny armour.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_farmers",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("farmer1",[],"1 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 1),
          (troop_remove_gold, "trp_player", 100),
        ]),
      ("farmer5",[],"5 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 5),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("farmer10",[],"10 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 10),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_cutthroats",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("looter1",[],"1 Looter.",
      [
          (party_add_members, "p_main_party", "trp_looter", 1),
          (troop_remove_gold, "trp_player", 150),
        ]),
      ("looter5",[],"5 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 5),
          (troop_remove_gold, "trp_player", 750),
        ]),
      ("looter10",[],"10 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 10),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit1",[],"1 Bandit.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 1),
          (troop_remove_gold, "trp_player", 300),
        ]),
      ("bandit5",[],"5 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 5),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit10",[],"10 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 10),
          (troop_remove_gold, "trp_player", 3000),
        ]),
      ("brigand1",[],"1 Brigand.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 1),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("brigand5",[],"5 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 5),
          (troop_remove_gold, "trp_player", 2500),
        ]),
      ("brigand10",[],"10 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 10),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("nord_archer",[],"10 Nord archer",
      [
          (party_add_members, "p_main_party", "trp_nord_archer", 10),
          (troop_remove_gold, "trp_player", 7000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),


  (
    "town_trade_assessment",mnf_disable_all_keys,
    "As the party member with the highest trade skill ({reg2}), {reg3?you try to figure out:{s1} tries to figure out} the best goods to trade in. {s2}",
    "none",
    [(call_script, "script_get_max_skill_of_player_party", "skl_trade"),
    (assign, ":max_skill", reg0),
    (assign, ":max_skill_owner", reg1),
(You just can't go without the regret assess trade button..  :lol: )



8. That's pretty much it.. You can change where you want to see this menu by editing the location of the "hire_troops" menu in step 4..

You can also edit what type of troops you want to hire, how much they cost and how many you want to hire by editing the details in step 7:

- Edit the text coloured green to whatever type of troop you want..
- Edit the text coloured purple for how many troops you want to hire each click..
- Edit the text coloured blue for how much you want them to cost..


PS: Can anyone help me with a 'random script' for the 'ask about' menu in step 7.. How do i arrange it so that the list of troops i find is randomly generated, and that higher priced groups are more rare.. And that types of troops depends on renown..  :???: :?:



Thymo
 
Np  :wink:


And.. Does anyone know wheter editing/creating "slots" (like "(party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),") is possible.. I'm pretty sure it's impossible, but I was hoping for someone to prove me wrong..  :roll:

This is an example of a 'slot'..

mb3zo6.jpg
 
Thanks a lot, though I'm pretty surprised that this hasn't been asked more often before.

There's just one more thing. I've incorporated the script into the module_game_menus, now when I try to start the game though it stops at 3/4 of the loading screen (loading setting data) and gives me this error message: Unexpected End of File while reading file: Modules\Native\menus.txt

Any idea what this could be?

menu_arena_duel_fight 0 You_and_your_opponent_prepare_to_fight_for_honour. none 0 1
mno_continue  0  Continue...  2 2060 1 864691128455135265 2048 0  .
menu_simple_encounter 4352 {s2}_You_have_{reg10}_troops_fit_for_battle_against_their_{reg11}. none 139 2133 2 144115188075856032 144115188075856286 2133 2 144115188075856033 -1 1 1 936748722493063377 4 0 31 2 144115188075856034 1 2133 2 144115188075856034 0 2133 2 144115188075856035 0 2133 2 144115188075856036 0 4 0 541 3 144115188075856032 4 5 521 3 1224979098644774912 144115188075856032 5 2281 3 1224979098644774913 1224979098644774912 144115188075856032 4 0 2147483678 2 1224979098644774913 4 2133 2 144115188075856035 1224979098644774912 2133 2 144115188075856036 1 3 0 3 0 4 0 32 2 144115188075856085 0 2133 2 144115188075856035 144115188075856085 2133 2 144115188075856036 2 1663 2 144115188075856035 1 2320 2 1 1585267068834414734 1106 1 216172782113783949 5 0 31 2 144115188075856036 1 1663 2 144115188075856035 0 2320 2 1 1585267068834414734 1106 1 216172782113783950 3 0 1 3 936748722493063267 0 0 1 1 936748722493063378 2133 2 144115188075855937 0 2133 2 144115188075856037 0 4 0 32 2 144115188075856289 0 2133 2 144115188075856037 1 3 0 4 0 2147483678 2 144115188075856289 0 2133 2 144115188075855937 1 4 0 39 0 2133 2 144115188075856038 1 3 0 3 0 2133 2 144115188075856039 2 1 2 936748722493063215 144115188075856286 5 0 4 0 31 2 144115188075856038 1 1 2 936748722493063239 648518346341351433 2133 2 1224979098644774914 72057594037927936 1 2 936748722493063239 648518346341351434 2105 2 1224979098644774914 72057594037927936 1 2 936748722493063239 648518346341351424 2133 2 1224979098644774915 72057594037927936 1 2 936748722493063239 648518346341351439 2105 2 1224979098644774915 72057594037927936 2121 3 1224979098644774916 1224979098644774914 10 2147483678 2 1224979098644774915 1224979098644774916 2133 2 144115188075856038 0 3 0 31 2 144115188075855899 1 2040 0 3 0 4 0 132 1 144115188075856286 2330 2 1 144115188075856286 4 0 31 2 144115188075856036 0 2320 2 2 1585267068834414735 5 0 31 2 144115188075856036 1 2330 2 3 144115188075856035 2320 2 2 1585267068834414736 5 0 31 2 144115188075856036 2 2330 2 3 144115188075856035 2320 2 2 1585267068834414737 3 0 3 0 4 0 1 2 936748722493063239 648518346341351439 2133 2 1224979098644774917 72057594037927936 2133 2 1224979098644774918 0 4 0 31 2 144115188075856016 1 31 2 1224979098644774917 0 2133 2 1224979098644774918 1 5 0 31 2 144115188075856041 1 2147483680 2 144115188075856318 0 30 2 144115188075856317 1 2133 2 1224979098644774918 1 3 0 1073741855 2 1224979098644774918 1 31 2 144115188075855912 1 2133 2 144115188075856040 -1 2060 1 864691128455135271 5 0 1 2 936748722493063239 648518346341351424 2133 2 72057594037927939 72057594037927936 2133 2 1224979098644774919 0 4 0 31 2 144115188075856016 -1 31 2 72057594037927939 0 2133 2 1224979098644774919 1 5 0 31 2 144115188075856041 1 30 2 144115188075856318 1 2147483680 2 144115188075856317 0 2133 2 1224979098644774919 1 3 0 1073741855 2 1224979098644774919 1 31 2 144115188075855914 1 2133 2 144115188075856040
^
Those are my last lines of menus.txt.
 

Try implementing it again.. I had no problems with it, and if you get any problems try sending the "module_game_menus.py" to me..  :wink:

Warning: LOTS of text..
  (
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## Thymo, added a new menu..
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),

  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
      ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_farmers",[],"Hire farmers.",
      [
          (jump_to_menu,"mnu_town_hire_farmers"),
        ]),
      ("hire_cutthroats",[],"Hire villains, cutthrroats and looters.",
      [
          (jump_to_menu,"mnu_town_hire_cutthroats"),
        ]),
      ("hire_knights",[],"Hire knights in shiny armour.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_farmers",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("farmer1",[],"1 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 1), ## Must cost gold! Fix this ASAP!
          (troop_remove_gold, "trp_player", 100),
        ]),
      ("farmer5",[],"5 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 5),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("farmer10",[],"10 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 10),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_cutthroats",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("looter1",[],"1 Looter.",
      [
          (party_add_members, "p_main_party", "trp_looter", 1),
          (troop_remove_gold, "trp_player", 150),
        ]),
      ("looter5",[],"5 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 5),
          (troop_remove_gold, "trp_player", 750),
        ]),
      ("looter10",[],"10 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 10),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit1",[],"1 Bandit.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 1),
          (troop_remove_gold, "trp_player", 300),
        ]),
      ("bandit5",[],"5 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 5),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit10",[],"10 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 10),
          (troop_remove_gold, "trp_player", 3000),
        ]),
      ("brigand1",[],"1 Brigand.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 1),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("brigand5",[],"5 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 5),
          (troop_remove_gold, "trp_player", 2500),
        ]),
      ("brigand10",[],"10 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 10),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("nord_archer",[],"10 Nord archer",
      [
          (party_add_members, "p_main_party", "trp_nord_archer", 10),
          (troop_remove_gold, "trp_player", 7000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_trade_assessment",mnf_disable_all_keys,
    "As the party member with the highest trade skill ({reg2}), {reg3?you try to figure out:{s1} tries to figure out} the best goods to trade in. {s2}",
    "none",
    [(call_script, "script_get_max_skill_of_player_party", "skl_trade"),
    (assign, ":max_skill", reg0),
    (assign, ":max_skill_owner", reg1),

    (assign, ":num_best_results", 0),
    (assign, ":best_result_1_item", -1),
    (assign, ":best_result_1_town", -1),
    (assign, ":best_result_1_profit", 0),
    (assign, ":best_result_2_item", -1),
    (assign, ":best_result_2_town", -1),
    (assign, ":best_result_2_profit", 0),
    (assign, ":best_result_3_item", -1),
    (assign, ":best_result_3_town", -1),
    (assign, ":best_result_3_profit", 0),
 
Thymo said:

Try implementing it again.. I had no problems with it, and if you get any problems try sending the "module_game_menus.py" to me..  :wink:

Warning: LOTS of text..
  (
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## Thymo, added a new menu..
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),

  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
      ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_farmers",[],"Hire farmers.",
      [
          (jump_to_menu,"mnu_town_hire_farmers"),
        ]),
      ("hire_cutthroats",[],"Hire villains, cutthrroats and looters.",
      [
          (jump_to_menu,"mnu_town_hire_cutthroats"),
        ]),
      ("hire_knights",[],"Hire knights in shiny armour.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_farmers",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("farmer1",[],"1 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 1), ## Must cost gold! Fix this ASAP!
          (troop_remove_gold, "trp_player", 100),
        ]),
      ("farmer5",[],"5 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 5),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("farmer10",[],"10 Farmer.",
      [
          (party_add_members, "p_main_party", "trp_farmer", 10),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_cutthroats",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("looter1",[],"1 Looter.",
      [
          (party_add_members, "p_main_party", "trp_looter", 1),
          (troop_remove_gold, "trp_player", 150),
        ]),
      ("looter5",[],"5 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 5),
          (troop_remove_gold, "trp_player", 750),
        ]),
      ("looter10",[],"10 Looters.",
      [
          (party_add_members, "p_main_party", "trp_looter", 10),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit1",[],"1 Bandit.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 1),
          (troop_remove_gold, "trp_player", 300),
        ]),
      ("bandit5",[],"5 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 5),
          (troop_remove_gold, "trp_player", 1500),
        ]),
      ("bandit10",[],"10 Bandits.",
      [
          (party_add_members, "p_main_party", "trp_bandit", 10),
          (troop_remove_gold, "trp_player", 3000),
        ]),
      ("brigand1",[],"1 Brigand.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 1),
          (troop_remove_gold, "trp_player", 500),
        ]),
      ("brigand5",[],"5 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 5),
          (troop_remove_gold, "trp_player", 2500),
        ]),
      ("brigand10",[],"10 Brigands.",
      [
          (party_add_members, "p_main_party", "trp_brigand", 10),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("nord_archer",[],"10 Nord archer",
      [
          (party_add_members, "p_main_party", "trp_nord_archer", 10),
          (troop_remove_gold, "trp_player", 7000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 1000),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 5000),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 10000),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_trade_assessment",mnf_disable_all_keys,
    "As the party member with the highest trade skill ({reg2}), {reg3?you try to figure out:{s1} tries to figure out} the best goods to trade in. {s2}",
    "none",
    [(call_script, "script_get_max_skill_of_player_party", "skl_trade"),
    (assign, ":max_skill", reg0),
    (assign, ":max_skill_owner", reg1),

    (assign, ":num_best_results", 0),
    (assign, ":best_result_1_item", -1),
    (assign, ":best_result_1_town", -1),
    (assign, ":best_result_1_profit", 0),
    (assign, ":best_result_2_item", -1),
    (assign, ":best_result_2_town", -1),
    (assign, ":best_result_2_profit", 0),
    (assign, ":best_result_3_item", -1),
    (assign, ":best_result_3_town", -1),
    (assign, ":best_result_3_profit", 0),

Hmm, re tried it, but I also put in different units to be recruitable.

This should be the whole area of the code that had to be modified, as it looks edited by me:
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## You have added a new menu.
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),

  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
            ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_Sergeants",[],"Hire Sergeants.",
      [
          (jump_to_menu,"mnu_town_hire_Sergeants"),
        ]),
      ("hire_Crossbowmen",[],"Hire Crossbowmen.",
      [
          (jump_to_menu,"mnu_town_hire_crossbowmen"),
        ]),
      ("hire_knights",[],"Hire Knights.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_Sergeants",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("Sergeant1",[],"1 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Sergeant5",[],"5 Sergeants.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Sergeant10",[],"10 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [(
          (jump_to_menu,"mnu_town_hire_troops"),
        ),
    ]
  ),

  (
    "town_hire_Crossbowmen",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("Crossbowmen1",[],"1 Crossbowman.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Crossbowmen5",[],"5 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Crossbowmen10",[],"10 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),

        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),
 
I fixed it!  :cool:

This is the menu that had errors, errors in red..
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## You have added a new menu.
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),

  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
            ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_Sergeants",[],"Hire Sergeants.",
      [
          (jump_to_menu,"mnu_town_hire_Sergeants"),
        ]),
      ("hire_Crossbowmen",[],"Hire Crossbowmen.",
      [
          (jump_to_menu,"mnu_town_hire_crossbowmen"),
        ]),
      ("hire_knights",[],"Hire Knights.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_Sergeants",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("Sergeant1",[],"1 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Sergeant5",[],"5 Sergeants.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Sergeant10",[],"10 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [(
          (jump_to_menu,"mnu_town_hire_troops"),
        ),
    ]
  ),

  (
    "town_hire_Crossbowmen",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("Crossbowmen1",[],"1 Crossbowman.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Crossbowmen5",[],"5 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("Crossbowmen10",[],"10 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),

        ]),
#this one is of no function except ending a hire-script.. Which in this case is nowhere to be found :wink:
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),


This is the fixed menu, corrected sections in green..
    "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## You have added a new menu.
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),

  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
      ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_sergeants",[],"Hire Sergeants.",
      [
          (jump_to_menu,"mnu_town_hire_sergeants"),
        ]),
      ("hire_crossbowmen",[],"Hire Crossbowmen.",
      [
          (jump_to_menu,"mnu_town_hire_crossbowmen"),
        ]),
      ("hire_knights",[],"Hire Knights.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_sergeants",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("sergeant1",[],"1 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("sergeant5",[],"5 Sergeants.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("sergeant10",[],"10 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_crossbowmen",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("crossbowmen1",[],"1 Crossbowman.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("crossbowmen5",[],"5 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("crossbowmen10",[],"10 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 10),
          (troop_remove_gold, "trp_player", 0),
        ]), # simply deleted the excess end-menu..
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),


Note: I'm not sure if the case of the letters in the name of the menus have any effect, but non of the other menus that i've seen contains upper-case letters.. :wink:


~ Thymo
 
Thank you once more! I've replaced the original code(native code, that worked) with the corrected one, yet it still gives me that strange rgl error about menus.txt :sad:
 
Damnation said:
Thank you once more! I've replaced the original code(native code, that worked) with the corrected one, yet it still gives me that strange rgl error about menus.txt :sad:

Hmm, try removing it and run build module to see if the error is in the script..

Or could you send me the whole file? Maybe..?

([email protected])


~ Thymo
 
I've gotten that code to work, but there's one problem with it: you can buy troops even when you don't have any money.  Other than that its great.
 
Thymo said:
Damnation said:
Thank you once more! I've replaced the original code(native code, that worked) with the corrected one, yet it still gives me that strange rgl error about menus.txt :sad:

Hmm, try removing it and run build module to see if the error is in the script..

Or could you send me the whole file? Maybe..?

([email protected])


~ Thymo

I'd love to send you the whole file, yet my internet (or computer?) is behaving really irritably and firefox crashed a few times when I tried to access my e-mail account today (I also strangely cant use the pre-view function of the forums anymore, always says "fetching preview..."). Nevertheless, it's the same thing as before, basically.

When I try to build the module it says:
SyntaxError: invalid Syntax
Traceback (most recent call last):
    File "process_global_variables_unused.py", line 3, in (module)
      from process_operations import *
    File "C:\Programme\Mount&Blade\ModuleSystem\Process_operations.py", line 22, in (module)
    from module_game_menus import *
      "C:\programme\Mount&Blade\ModuleSystem\module_game_menus.py", line 8254

Error: invalid syntax

The line 8254 is:
  ),

The error isn't in the original script. I took the original, built the module, started the game, worked. Then I inserted the hire script into that working script and it goes FUBAR. :/

 
wickedshot said:
I've gotten that code to work, but there's one problem with it: you can buy troops even when you don't have any money.  Other than that its great.

Oh, dang.. I never noticed.. Thanks!  :wink:

I don't have the time right now, but I think I know how to fix it.. Something with "restrict_buy*somethingsomething*"..  :???:
 
Damnation said:
Bla, bla, bla...


Here's a copy of my module_game_menus from line 8223 to 8286..



  (
    "center_reports",0,
    "Town Name: {s1}^Rent Income: {reg1} denars^Tariff Income: {reg2} denars^Food Stock: for {reg3} days",
    "none",
    [(party_get_slot, ":town_food_store", "$g_encountered_party", slot_party_food_store),
    (call_script, "script_center_get_food_consumption", "$g_encountered_party"),
    (assign, ":food_consumption", reg0),
    (store_div, reg3, ":town_food_store", ":food_consumption"),
    (str_store_party_name, s1, "$g_encountered_party"),
    (party_get_slot, reg1, "$g_encountered_party", slot_center_accumulated_rents),
    (party_get_slot, reg2, "$g_encountered_party", slot_center_accumulated_tariffs),
    ],
    [
      ("to_price_and_productions", [], "Show prices and productions.",
      [(jump_to_menu, "mnu_price_and_production"),
        ]),
     
      ("go_back_dot",[],"Go back.",
      [(try_begin),
          (party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
          (jump_to_menu, "mnu_village"),
        (else_try),
          (jump_to_menu, "mnu_town"),
        (try_end),
        ]),
    ]
  ),
   
  (
    "price_and_production",0,
    "Productions are:^{s1}^^Price factors are:^{s2}",
    "none",
    [(str_store_string, s1, "@ "),
    (str_store_string, s2, "@ "),
    (try_for_range, ":cur_good", trade_goods_begin, trade_goods_end),
      (store_sub, ":cur_good_slot", ":cur_good", trade_goods_begin),
      (val_add, ":cur_good_slot", slot_town_trade_good_productions_begin),
      (store_sub, ":cur_good_price_slot", ":cur_good", trade_goods_begin),
      (val_add, ":cur_good_price_slot", slot_town_trade_good_prices_begin),
      (party_get_slot, ":production", "$g_encountered_party", ":cur_good_slot"),
      (party_get_slot, ":price", "$g_encountered_party", ":cur_good_price_slot"),
      (str_store_item_name, s3, ":cur_good"),
      (assign, reg1, ":production"),
      (str_store_string, s1, "@^{s3} = {reg1}{s1}"),
      (assign, reg1, ":price"),
      (str_store_string, s2, "@^{s3} = {reg1}{s2}"),
    (try_end),
    ],
    [
      ("go_back_dot",[],"Go back.",
      [(try_begin),
          (party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
          (jump_to_menu, "mnu_village"),
        (else_try),
          (jump_to_menu, "mnu_town"),
        (try_end),
        ]),
    ]
  ),
 
  (
    "town_trade",0,
    "You head towards the marketplace.",
    "none",

If possible could you send me larger copy than just a copy of the single line, 8252? Muchly appreciated..  :wink:
 
Well, here it is from line 8210 to 8423. (in red, the "faulty" line, as sayeth the build_module.bat)
  "town_trade",0,
    "You head towards the marketplace.",
    "none",
    [],
    [
      ("assess_prices",[],
      "Assess the local prices.",
      [
          (jump_to_menu,"mnu_town_trade_assessment_begin"),
        ]),
      ("trade_with_arms_merchant",[(party_slot_ge, "$current_town", slot_town_weaponsmith, 1)],
      "Trade with the arms merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_weaponsmith),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_armor_merchant",[(party_slot_ge, "$current_town", slot_town_armorer, 1)],
      "Trade with the armor merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_armorer),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_horse_merchant",[(party_slot_ge, "$current_town", slot_town_horse_merchant, 1)],
      "Trade with the horse merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_horse_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("trade_with_goods_merchant",[(party_slot_ge, "$current_town", slot_town_merchant, 1)],
      "Trade with the goods merchant.",
      [
          (party_get_slot, ":merchant_troop", "$current_town", slot_town_merchant),
          (change_screen_trade, ":merchant_troop"),
        ]),
      ("hire_troops",[],
      "Hire troops.",## You have added a new menu.
      [
          (jump_to_menu,"mnu_town_pre_hire_troops"),
        ]),
      ("back_to_town_menu",[],"Head back.",
      [
          (jump_to_menu,"mnu_town"),
        ]),
    ]
  ),
  (
    "town_trade_assessment_begin",0,
    "You overhear several discussions about the price of trade goods across the local area.\
You listen closely, trying to work out the best deals around.",
    "none",
    [],
    [
      ("continue",[],"Continue...",
      [
          (assign,"$auto_enter_town","$current_town"),
          (assign, "$g_town_assess_trade_goods_after_rest", 1),
          (call_script, "script_get_max_skill_of_player_party", "skl_trade"),
          (val_div, reg0, 2),
          (store_sub, ":num_hours", 6, reg0),
          (assign, "$g_last_rest_center", "$current_town"),
          (assign, "$g_last_rest_payment_until", -1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
        ]),
      ("back_to_marketplace",[],"Back to marketplace.", ## Thymo's FIRST useful menu-edit EVER!! BOHAHAHAHAHAHA!!!
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_pre_hire_troops",0,
    "You enter a building with several mercenaries, cut-throuts, poor and adventerous warriors. You ask about to gather a overview of who's available for hire.. (this takes 1 hours)",
    "none",
    [],
    [
      ("continue",[],"Ask about..",
      [
          (store_sub, ":num_hours", 1),
          (rest_for_hours, ":num_hours", 5, 0), #rest while not attackable
          (change_screen_return),
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

    (
    "town_hire_troops",0,
    "This is the list you've managed to scrap together:",
    "none",
    [],
    [
      ("hire_sergeants",[],"Hire Sergeants.",
      [
          (jump_to_menu,"mnu_town_hire_sergeants"),
        ]),
      ("hire_crossbowmen",[],"Hire Crossbowmen.",
      [
          (jump_to_menu,"mnu_town_hire_crossbowmen"),
        ]),
      ("hire_knights",[],"Hire Knights.",
      [
          (jump_to_menu,"mnu_town_hire_knights"),
        ]),
      ("go_back",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_trade"),
        ]),
    ]
  ),

  (
    "town_hire_sergeants",0,
    "Their clothing are tattered and their hats a ragged, but their braveness has no boundaries. They have been driven out of their lands by different reasons, and now their only way to make a living is to join a force. 100 denars each farmer.",
    "none",
    [],
    [
      ("sergeant1",[],"1 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("sergeant5",[],"5 Sergeants.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("sergeant10",[],"10 Sergeant.",
      [
          (party_add_members, "p_main_party", "trp_swadian_sergeant", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_crossbowmen",0,
    "Vile and vicious people with rotten theeth glares at you whilst you question their value and usefulness in your party. 150 for each Looter,700 for each Nord archer, 300 for each bandit and 500 for each Brigand.",
    "none",
    [],
    [
      ("crossbowmen1",[],"1 Crossbowman.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("crossbowmen5",[],"5 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("crossbowmen10",[],"10 Crossbowmen.",
      [
          (party_add_members, "p_main_party", "trp_swadian_crossbowman", 10),
          (troop_remove_gold, "trp_player", 0),
        ]), # simply deleted the excess end-menu..
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

  (
    "town_hire_knights",0,
    "Wearing shiny armour and swords ready to cut through flesh, they stand in front of you with their honour held high(as long as you pay them.).. 1000 denars each knight.",
    "none",
    [],
    [
      ("swadian_knight1",[],"1 Swadian knight.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight5",[],"5 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("swadian_knight10",[],"10 Swadian_knights.",
      [
          (party_add_members, "p_main_party", "trp_swadian_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight1",[],"1 Vaegir knight.",
      [
          (party_add_members, "p_main_party", "trp_Vaegir_knight", 1),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight5",[],"5 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 5),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("vaegir_knight10",[],"10 Vaegir knights.",
      [
          (party_add_members, "p_main_party", "trp_vaegir_knight", 10),
          (troop_remove_gold, "trp_player", 0),
        ]),
      ("back_to_town_hire_troops",[],"Go back..",
      [
          (jump_to_menu,"mnu_town_hire_troops"),
        ]),
    ]
  ),

This should be exactly the script for town_hire which you've corrected. I simply copy & pasted it.

Edit #3: FIXED! There was just a bracket missing before "town_trade".
 
Sorry for resurecting, but it seemed necessary, Thymo, your script works marvellously, really, thanks for it, but, I noticed aswell that I could recruit troops even without actually having the money AND I could recruit more than actually fit in my party, do you have a solution for that? It'd be much appreciated. :smile:
 
FrisianDude said:
Sorry for resurecting, but it seemed necessary, Thymo, your script works marvellously, really, thanks for it, but, I noticed aswell that I could recruit troops even without actually having the money AND I could recruit more than actually fit in my party, do you have a solution for that? It'd be much appreciated. :smile:

I've been consulted with this problem before and I've tried to fix it numerous times, but it seems as if I'm unworthy for such a task..  :cry:

You could try to fix it yourself, or consult someone worthy.. :wink:


~ Thymo
 
Back
Top Bottom