Author Topic: Hiring Manhunters Script (Needs Help!)  (Read 1912 times)

0 Members and 1 Guest are viewing this topic.

Specialist

  • Master Knight
  • *
  • Coder
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Hiring Manhunters Script (Needs Help!)
« on: May 29, 2011, 12:59:01 AM »
Okay, I need to know if this will work, for a simple Manhunter enlistment system....

Code: [Select]
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "I was wondering if you have any soldiers that I could enlist.", "manhunter_talk_b3",
  [[change_screen_buy_mercenaries]]],
  [party_tpl|pt_manhunters,"manhunter_talk_b3", [], "Those lads are great fighters, treat 'em well! Farewell", "close_window",[(assign, "$g_leave_encounter",1)]],


First, I need to know if this will let you Hire the Manhunters as troops. Then....
---> Where the change_screen_buy_mercenaries is, I need a condition script. Something that makes it so that you can only hire 1 less than the number of manhunters. AKA: if there are 28 manhunters, you can only hire 27 (Maximum).
Any codes you can help me with? I'll release the finished production once I get it perfected....

Somebody

  • Code Pope
  • Baron
  • *
    • View Profile
  • Faction: Bandit
  • WBWF&S
Re: Hiring Manhunters Script (Needs Help!)
« Reply #1 on: May 29, 2011, 02:30:54 AM »
First of all, you need to call set_mercenary_party before change_screen_buy_mercenaries.
You can do what you want easily with party_remove_member beforehand and party_add_member after manhunter_talk_b3.

The Bowman

  • Count
  • *
    • Steam - thebowmantw
    • View Profile
  • Faction: Khergit
  • MP nick: The_Bowman
  • WBM&BVCNWWF&S
Re: Hiring Manhunters Script (Needs Help!)
« Reply #2 on: May 29, 2011, 03:04:08 PM »
Also, you should set the waypoints in MS, otherwise, they won't appear.
Coming soon since 2012. Click on the picture below to expand your expectations.


Native Scene Replacement Pack.
New release (30.12.2018).