Haydut kiralama

Users who are viewing this thread

Status
Not open for further replies.

DavidemenS

Recruit
https://forums.taleworlds.com/index.php/topic,368697.0.html
Bu konudaki linkden indirdim kiraladıgımız bölümü buldum. Haydut yerine başka bir asker almak istiyorum nasıl değiltirebilirim
#BELENDOR BANDIT RECRUITMENT
      ("camp_recruit_bandits",
      [(troops_can_join, 1),
        (store_current_hours, ":cur_time"),
        (val_sub, ":cur_time", 24),
        (gt, ":cur_time", "$g_bandit_recruit_last_time"),
        (try_begin),
          (gt, "$g_bandit_recruit_last_time", 0),
          (assign, "$g_bandit_recruit_last_time", 0),
        (try_end),
        ], "Some bandits show themselves in order to be recruited.",
      [(jump_to_menu, "mnu_camp_recruit_bandits_2"),
        ],
      ), 
  #BELENDOR BANDIT RECRUITMENT
# BANDIT RECRUITMENT
    (
    "camp_recruit_bandits_2",0,
    "{s18}",
    "none",
    [(store_random_in_range, ":volunteer_amount", 5,16),
    (assign,reg8,":volunteer_amount"),
    (party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
    (store_troop_gold, ":gold", "trp_player"),
    (store_div, ":gold_capacity", ":gold", 10),#10 denars per man
    (assign, ":party_capacity", ":free_capacity"),
    (val_min, ":party_capacity", ":gold_capacity"),
    (try_begin),
      (gt, ":party_capacity", 0),
      (val_min, ":volunteer_amount", ":party_capacity"),
    (try_end),
    (assign, reg5, ":volunteer_amount"),
    (assign, reg7, 0),
    (try_begin),
      (gt, ":volunteer_amount", ":gold_capacity"),
      (assign, reg7, 1), #not enough money
    (try_end),
    (try_begin),
      (eq, ":volunteer_amount", 0),
      (str_store_string, s18, "@No one here seems to be willing to join your party."),
    (else_try),
(store_random_in_range, ":final_gold_per_bandit",8,13),
      (store_mul, reg6, ":volunteer_amount", ":final_gold_per_bandit"),#8 to 12 denars per man, calculated for the whole group
      (str_store_troop_name_by_count, s3, "trp_bandit", ":volunteer_amount"),
      (try_begin),
        (eq, reg5, 1),
        (str_store_string, s18, "@One {s3} volunteers to follow you."),
      (else_try),
        (str_store_string, s18, "@{reg5} {s3} volunteer to follow you."),
      (try_end),
      (set_background_mesh, "mesh_pic_recruits"),
    (try_end),
    ],
    [
      ("continue_not_enough_gold",
      [
        (eq, reg7, 1),
      ],
      "I don't have enough money...",
      [
        (jump_to_menu,"mnu_camp_action"),
      ]),
     
      ("continue",
      [
        (eq, reg7, 0),
        (eq, reg5, 0),
      ], #noone willing to join                 
      "Continue...",
      [
        (jump_to_menu,"mnu_camp_action"),
      ]),
     
      ("recruit_them",
      [
        (eq, reg7, 0),
        (gt, reg5, 0),
      ],
      "Recruit them ({reg6} denars).",
      [
    (party_add_members, "p_main_party", "trp_bandit", reg:cool:,
    (troop_remove_gold, "trp_player", reg6),
      (store_current_hours, "$g_bandit_recruit_last_time"),                     
        (jump_to_menu,"mnu_camp_action"),
      ]),
     
      ("forget_it",
      [
        (eq, reg7, 0),
        (gt, reg5, 0),
      ],
      "Forget it.",
      [
        (jump_to_menu,"mnu_camp_action"),
      ]),
    ],
  ),

  #BELENDOR BANDIT RECRUITMENT
Hallettim konuyu kilitliyorum
 
Status
Not open for further replies.
Back
Top Bottom