from header_common import *
from header_operations import *
from module_constants import *
from header_parties import *
from header_skills import *
from header_mission_templates import *
from header_items import *
from header_triggers import *
from header_terrain_types import *
from header_troops import *
from header_item_modifiers import *


ss_basic_init_scripts=[
	("set_lord_init",[
		(call_script, "script_give_center_to_lord", "p_xiangping",  "trp_jiaxu"),
		(call_script, "script_give_center_to_lord", "p_beiping",  "trp_xuhuang"),
		(call_script, "script_give_center_to_lord", "p_beihai",  "trp_zhanghe"),
		(call_script, "script_give_center_to_lord", "p_pingyuan",  "trp_caoren"),
		(call_script, "script_give_center_to_lord", "p_xiapi",  "trp_lidian"),
		(call_script, "script_give_center_to_lord", "p_xiangyang",  "trp_xiahoudun"),
		(call_script, "script_give_center_to_lord", "p_changan",  "trp_caopi"),
		(call_script, "script_give_center_to_lord", "p_luoyang",  "trp_chengyu"),
		(call_script, "script_give_center_to_lord", "p_shouchun",  "trp_lejin"),
		(call_script, "script_give_center_to_lord", "p_xuchang",  "trp_caocao"),
		(call_script, "script_give_center_to_lord", "p_runan",  "trp_yujin"),
		(call_script, "script_give_center_to_lord", "p_wancheng",  "trp_xunyou"),
		(call_script, "script_give_center_to_lord", "p_yecheng",  "trp_xunyu"),
		(call_script, "script_give_center_to_lord", "p_jinyang",  "trp_simayi"),
		(call_script, "script_give_center_to_lord", "p_anding",  "trp_xushu"),
		(call_script, "script_give_center_to_lord", "p_tianshui",  "trp_pangde"),
		(call_script, "script_give_center_to_lord", "p_sishuiguan",  "trp_liuye"),
		(call_script, "script_give_center_to_lord", "p_hulaoguan",  "trp_xiahouyuan"),
		(call_script, "script_give_center_to_lord", "p_tongguan",  "trp_caohong"),
		(call_script, "script_give_center_to_lord", "p_puyang",  "trp_guojia"),
		(call_script, "script_give_center_to_lord", "p_hefei",  "trp_zhangliao"),
		(call_script, "script_give_center_to_lord", "p_nanpi",  "trp_manchong"),
		
		(call_script, "script_give_center_to_lord", "p_jiangxia",  "trp_pangtong"),
		(call_script, "script_give_center_to_lord", "p_yongan",  "trp_weiyan"),
		(call_script, "script_give_center_to_lord", "p_jiangzhou",  "trp_zhangfei"),
		(call_script, "script_give_center_to_lord", "p_chengdu",  "trp_liubei"),
		(call_script, "script_give_center_to_lord", "p_yunnan",  "trp_fazheng"),
		(call_script, "script_give_center_to_lord", "p_shangyong",  "trp_yanyan"),
		(call_script, "script_give_center_to_lord", "p_jiangling",  "trp_guanyu"),
		(call_script, "script_give_center_to_lord", "p_jianning",  "trp_huangzhong"),
		(call_script, "script_give_center_to_lord", "p_zitong",  "trp_jiangwei"),
		(call_script, "script_give_center_to_lord", "p_hanzhong",  "trp_zhugeliang"),
		(call_script, "script_give_center_to_lord", "p_jiange",  "trp_jiangwan"),
		
		(call_script, "script_give_center_to_lord", "p_jianye",  "trp_sunquan"),
		(call_script, "script_give_center_to_lord", "p_huiji",  "trp_lusu"),
		(call_script, "script_give_center_to_lord", "p_chaisang",  "trp_zhoutai"),
		(call_script, "script_give_center_to_lord", "p_changsha",  "trp_zhouyu"),
		(call_script, "script_give_center_to_lord", "p_wuling",  "trp_xusheng"),
		(call_script, "script_give_center_to_lord", "p_lingling",  "trp_lvmeng"),
		(call_script, "script_give_center_to_lord", "p_guiyang",  "trp_taishici"),
		(call_script, "script_give_center_to_lord", "p_nanhai",  "trp_zhangzhao"),
		(call_script, "script_give_center_to_lord", "p_yiling",  "trp_luxun"),
		(call_script, "script_give_center_to_lord", "p_jianan",  "trp_zhanghong"),
		(call_script, "script_give_center_to_lord", "p_jiaozhi",  "trp_lingtong"),
		(call_script, "script_give_center_to_lord", "p_wu",  "trp_luxun"),

	]),
	
	("sango_init_city",
	[
	  (try_for_range, ":town_no", towns_begin, towns_end),
		(party_set_slot,":town_no", slot_town_reinforcement_party_template, "pt_center_reinforcements"),
	  (try_end),
	  (party_set_slot,"p_xiangping", slot_party_type,         spt_town),
      (party_set_slot,"p_xiangping", slot_town_center,        "scn_wein_center"),
      (party_set_slot,"p_xiangping", slot_town_castle,        "scn_xiangping_castle"),
      (party_set_slot,"p_xiangping", slot_town_tavern,        "scn_xiangping_tavern"),
      (party_set_slot,"p_xiangping", slot_town_store,         "scn_xiangping_store"),
      (party_set_slot,"p_xiangping", slot_town_tavernkeeper,  "trp_town_1_tavernkeeper"),
      (party_set_slot,"p_xiangping", slot_town_weaponsmith,   "trp_town_1_weaponsmith"),
      (party_set_slot,"p_xiangping", slot_town_armorer,       "trp_town_1_armorer"),
      (party_set_slot,"p_xiangping", slot_town_merchant,      "trp_town_1_merchant"),
      (party_set_slot,"p_xiangping", slot_town_mercs,         "p_xiangping_mercs"),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_xiangping", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_xiangping", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_xiangping", slot_town_horse_merchant,"trp_town_1_horse_merchant"),
      (party_set_slot,"p_xiangping", slot_town_entry_no,0),

      (party_set_slot,"p_beiping", slot_party_type,         spt_town),
      (party_set_slot,"p_beiping", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_beiping", slot_town_castle,        "scn_beiping_castle"),
      (party_set_slot,"p_beiping", slot_town_tavern,        "scn_beiping_tavern"),
      (party_set_slot,"p_beiping", slot_town_store,         "scn_beiping_store"),     
      (party_set_slot,"p_beiping", slot_town_tavernkeeper,  "trp_town_2_tavernkeeper"),
      (party_set_slot,"p_beiping", slot_town_weaponsmith,   "trp_town_2_weaponsmith"),
      (party_set_slot,"p_beiping", slot_town_armorer,       "trp_town_2_armorer"),
      (party_set_slot,"p_beiping", slot_town_merchant,      "trp_town_2_merchant"),
      (party_set_slot,"p_beiping", slot_town_mercs,         "p_beiping_mercs"),
      (party_set_slot,"p_beiping", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_beiping", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_beiping", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_beiping", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_beiping", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_beiping", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_beiping", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_beiping", slot_town_horse_merchant,"trp_town_2_horse_merchant"),
      (party_set_slot,"p_beiping", slot_town_entry_no,1),

      (party_set_slot,"p_beihai", slot_party_type,         spt_town),
      (party_set_slot,"p_beihai", slot_town_center,        "scn_wein_center"),
      (party_set_slot,"p_beihai", slot_town_castle,        "scn_beihai_castle"),
      (party_set_slot,"p_beihai", slot_town_tavern,        "scn_beihai_tavern"),
      (party_set_slot,"p_beihai", slot_town_store,         "scn_beihai_store"),  
      (party_set_slot,"p_beihai", slot_town_tavernkeeper,  "trp_town_3_tavernkeeper"),
      (party_set_slot,"p_beihai", slot_town_weaponsmith,   "trp_town_3_weaponsmith"),
      (party_set_slot,"p_beihai", slot_town_armorer,       "trp_town_3_armorer"),
      (party_set_slot,"p_beihai", slot_town_merchant,      "trp_town_3_merchant"),
      (party_set_slot,"p_beihai", slot_town_mercs,         "p_beihai_mercs"),
      (party_set_slot,"p_beihai", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_beihai", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_beihai", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_beihai", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_beihai", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_beihai", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_beihai", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_beihai", slot_town_horse_merchant,"trp_town_3_horse_merchant"),
      (party_set_slot,"p_beihai", slot_town_entry_no,2),
	  
      (party_set_slot,"p_pingyuan", slot_party_type,         spt_town),
      (party_set_slot,"p_pingyuan", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_pingyuan", slot_town_castle,        "scn_pingyuan_castle"),
      (party_set_slot,"p_pingyuan", slot_town_tavern,        "scn_pingyuan_tavern"),
      (party_set_slot,"p_pingyuan", slot_town_store,         "scn_pingyuan_store"),   
      (party_set_slot,"p_pingyuan", slot_town_tavernkeeper,  "trp_town_4_tavernkeeper"),
      (party_set_slot,"p_pingyuan", slot_town_weaponsmith,   "trp_town_4_weaponsmith"),
      (party_set_slot,"p_pingyuan", slot_town_armorer,       "trp_town_4_armorer"),
      (party_set_slot,"p_pingyuan", slot_town_merchant,      "trp_town_4_merchant"),
      (party_set_slot,"p_pingyuan", slot_town_mercs,         "p_pingyuan_mercs"),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_pingyuan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_pingyuan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_pingyuan", slot_town_horse_merchant,"trp_town_4_horse_merchant"),
      (party_set_slot,"p_pingyuan", slot_town_entry_no,0),
	  
      (party_set_slot,"p_xiapi", slot_party_type,         spt_town),
      (party_set_slot,"p_xiapi", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_xiapi", slot_town_castle,        "scn_xiapi_castle"),
      (party_set_slot,"p_xiapi", slot_town_tavern,        "scn_xiapi_tavern"),
      (party_set_slot,"p_xiapi", slot_town_store,         "scn_xiapi_store"),   
      (party_set_slot,"p_xiapi", slot_town_tavernkeeper,  "trp_town_5_tavernkeeper"),
      (party_set_slot,"p_xiapi", slot_town_weaponsmith,   "trp_town_5_weaponsmith"),
      (party_set_slot,"p_xiapi", slot_town_armorer,       "trp_town_5_armorer"),
      (party_set_slot,"p_xiapi", slot_town_merchant,      "trp_town_5_merchant"),
      (party_set_slot,"p_xiapi", slot_town_mercs,         "p_xiapi_mercs"),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_xiapi", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_xiapi", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_xiapi", slot_town_horse_merchant,"trp_town_5_horse_merchant"),
      (party_set_slot,"p_xiapi", slot_town_entry_no,1),

      (party_set_slot,"p_xiangyang", slot_party_type,         spt_town),
      (party_set_slot,"p_xiangyang", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_xiangyang", slot_town_castle,        "scn_xiangyang_castle"),
      (party_set_slot,"p_xiangyang", slot_town_tavern,        "scn_xiangyang_tavern"),
      (party_set_slot,"p_xiangyang", slot_town_store,         "scn_xiangyang_store"),    
      (party_set_slot,"p_xiangyang", slot_town_tavernkeeper,  "trp_town_6_tavernkeeper"),
      (party_set_slot,"p_xiangyang", slot_town_weaponsmith,   "trp_town_6_weaponsmith"),
      (party_set_slot,"p_xiangyang", slot_town_armorer,       "trp_town_6_armorer"),
      (party_set_slot,"p_xiangyang", slot_town_merchant,      "trp_town_6_merchant"),
      (party_set_slot,"p_xiangyang", slot_town_mercs,         "p_xiangyang_mercs"),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_xiangyang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_xiangyang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_xiangyang", slot_town_horse_merchant,"trp_town_6_horse_merchant"),
      (party_set_slot,"p_xiangyang", slot_town_entry_no,2),

      (party_set_slot,"p_changan", slot_party_type,         spt_town),
      (party_set_slot,"p_changan", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_changan", slot_town_castle,        "scn_changan_castle"),
      (party_set_slot,"p_changan", slot_town_tavern,        "scn_changan_tavern"),
      (party_set_slot,"p_changan", slot_town_store,         "scn_changan_store"),     
      (party_set_slot,"p_changan", slot_town_tavernkeeper,  "trp_town_7_tavernkeeper"),
      (party_set_slot,"p_changan", slot_town_weaponsmith,   "trp_town_7_weaponsmith"),
      (party_set_slot,"p_changan", slot_town_armorer,       "trp_town_7_armorer"),
      (party_set_slot,"p_changan", slot_town_merchant,      "trp_town_7_merchant"),
      (party_set_slot,"p_changan", slot_town_mercs,         "p_changan_mercs"),
      (party_set_slot,"p_changan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_changan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_changan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_changan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_changan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_changan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_changan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_changan", slot_town_horse_merchant,"trp_town_7_horse_merchant"),
      (party_set_slot,"p_changan", slot_town_entry_no,0),

      (party_set_slot,"p_luoyang", slot_party_type,         spt_town),
      (party_set_slot,"p_luoyang", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_luoyang", slot_town_castle,        "scn_luoyang_castle"),
      (party_set_slot,"p_luoyang", slot_town_tavern,        "scn_luoyang_tavern"),
      (party_set_slot,"p_luoyang", slot_town_store,         "scn_luoyang_store"),   
      (party_set_slot,"p_luoyang", slot_town_tavernkeeper,  "trp_town_8_tavernkeeper"),
      (party_set_slot,"p_luoyang", slot_town_weaponsmith,   "trp_town_8_weaponsmith"),
      (party_set_slot,"p_luoyang", slot_town_armorer,       "trp_town_8_armorer"),
      (party_set_slot,"p_luoyang", slot_town_merchant,      "trp_town_8_merchant"),
      (party_set_slot,"p_luoyang", slot_town_mercs,         "p_luoyang_mercs"),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_luoyang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_luoyang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_luoyang", slot_town_horse_merchant,"trp_town_8_horse_merchant"),
      (party_set_slot,"p_luoyang", slot_town_entry_no,1),


      (party_set_slot,"p_shouchun", slot_party_type,         spt_town),
      (party_set_slot,"p_shouchun", slot_town_center,        "scn_wein_center"),
      (party_set_slot,"p_shouchun", slot_town_castle,        "scn_shouchun_castle"),
      (party_set_slot,"p_shouchun", slot_town_tavern,        "scn_shouchun_tavern"),
      (party_set_slot,"p_shouchun", slot_town_store,         "scn_shouchun_store"),      
      (party_set_slot,"p_shouchun", slot_town_tavernkeeper,  "trp_town_9_tavernkeeper"),
      (party_set_slot,"p_shouchun", slot_town_weaponsmith,   "trp_town_9_weaponsmith"),
      (party_set_slot,"p_shouchun", slot_town_armorer,       "trp_town_9_armorer"),
      (party_set_slot,"p_shouchun", slot_town_merchant,      "trp_town_9_merchant"),
      (party_set_slot,"p_shouchun", slot_town_mercs,         "p_shouchun_mercs"),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_shouchun", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_shouchun", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_shouchun", slot_town_horse_merchant,"trp_town_9_horse_merchant"),
      (party_set_slot,"p_shouchun", slot_town_entry_no,2),

      (party_set_slot,"p_xuchang", slot_party_type,         spt_town),
      (party_set_slot,"p_xuchang", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_xuchang", slot_town_castle,        "scn_xuchang_castle"),
      (party_set_slot,"p_xuchang", slot_town_tavern,        "scn_xuchang_tavern"),
      (party_set_slot,"p_xuchang", slot_town_store,         "scn_xuchang_store"),     
      (party_set_slot,"p_xuchang", slot_town_tavernkeeper,  "trp_town_10_tavernkeeper"),
      (party_set_slot,"p_xuchang", slot_town_weaponsmith,   "trp_town_10_weaponsmith"),
      (party_set_slot,"p_xuchang", slot_town_armorer,       "trp_town_10_armorer"),
      (party_set_slot,"p_xuchang", slot_town_merchant,      "trp_town_10_merchant"),
      (party_set_slot,"p_xuchang", slot_town_mercs,         "p_xuchang_mercs"),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_xuchang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_xuchang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_xuchang", slot_town_horse_merchant,"trp_town_10_horse_merchant"),
      (party_set_slot,"p_xuchang", slot_town_entry_no,2),


      (party_set_slot,"p_runan", slot_party_type,         spt_town),
      (party_set_slot,"p_runan", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_runan", slot_town_castle,        "scn_runan_castle"),
      (party_set_slot,"p_runan", slot_town_tavern,        "scn_runan_tavern"),
      (party_set_slot,"p_runan", slot_town_store,         "scn_runan_store"),      
      (party_set_slot,"p_runan", slot_town_tavernkeeper,  "trp_town_11_tavernkeeper"),
      (party_set_slot,"p_runan", slot_town_weaponsmith,   "trp_town_11_weaponsmith"),
      (party_set_slot,"p_runan", slot_town_armorer,       "trp_town_11_armorer"),
      (party_set_slot,"p_runan", slot_town_merchant,      "trp_town_11_merchant"),
      (party_set_slot,"p_runan", slot_town_mercs,         "p_runan_mercs"),
      (party_set_slot,"p_runan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_runan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_runan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_runan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_runan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_runan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_runan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_runan", slot_town_horse_merchant,"trp_town_11_horse_merchant"),
      (party_set_slot,"p_runan", slot_town_entry_no,0),

      (party_set_slot,"p_wancheng", slot_party_type,         spt_town),
      (party_set_slot,"p_wancheng", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_wancheng", slot_town_castle,        "scn_wancheng_castle"),
      (party_set_slot,"p_wancheng", slot_town_tavern,        "scn_wancheng_tavern"),
      (party_set_slot,"p_wancheng", slot_town_store,         "scn_wancheng_store"),      
      (party_set_slot,"p_wancheng", slot_town_tavernkeeper,  "trp_town_12_tavernkeeper"),
      (party_set_slot,"p_wancheng", slot_town_weaponsmith,   "trp_town_12_weaponsmith"),
      (party_set_slot,"p_wancheng", slot_town_armorer,       "trp_town_12_armorer"),
      (party_set_slot,"p_wancheng", slot_town_merchant,      "trp_town_12_merchant"),
      (party_set_slot,"p_wancheng", slot_town_mercs,         "p_wancheng_mercs"),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_wancheng", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_wancheng", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_wancheng", slot_town_horse_merchant,"trp_town_12_horse_merchant"),
      (party_set_slot,"p_wancheng", slot_town_entry_no,1),

      (party_set_slot,"p_yecheng", slot_party_type,         spt_town),
      (party_set_slot,"p_yecheng", slot_town_center,        "scn_weil_center"),
      (party_set_slot,"p_yecheng", slot_town_castle,        "scn_yecheng_castle"),
      (party_set_slot,"p_yecheng", slot_town_tavern,        "scn_yecheng_tavern"),
      (party_set_slot,"p_yecheng", slot_town_store,         "scn_yecheng_store"),      
      (party_set_slot,"p_yecheng", slot_town_tavernkeeper,  "trp_town_13_tavernkeeper"),
      (party_set_slot,"p_yecheng", slot_town_weaponsmith,   "trp_town_13_weaponsmith"),
      (party_set_slot,"p_yecheng", slot_town_armorer,       "trp_town_13_armorer"),
      (party_set_slot,"p_yecheng", slot_town_merchant,      "trp_town_13_merchant"),
      (party_set_slot,"p_yecheng", slot_town_mercs,         "p_yecheng_mercs"),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_yecheng", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_yecheng", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_yecheng", slot_town_horse_merchant,"trp_town_13_horse_merchant"),
      (party_set_slot,"p_yecheng", slot_town_entry_no,2),


      (party_set_slot,"p_jinyang", slot_party_type,         spt_town),
      (party_set_slot,"p_jinyang", slot_town_center,        "scn_wein_center"),
      (party_set_slot,"p_jinyang", slot_town_castle,        "scn_jinyang_castle"),
      (party_set_slot,"p_jinyang", slot_town_tavern,        "scn_jinyang_tavern"),
      (party_set_slot,"p_jinyang", slot_town_store,         "scn_jinyang_store"),      
      (party_set_slot,"p_jinyang", slot_town_tavernkeeper,  "trp_town_14_tavernkeeper"),
      (party_set_slot,"p_jinyang", slot_town_weaponsmith,   "trp_town_14_weaponsmith"),
      (party_set_slot,"p_jinyang", slot_town_armorer,       "trp_town_14_armorer"),
      (party_set_slot,"p_jinyang", slot_town_merchant,      "trp_town_14_merchant"),
      (party_set_slot,"p_jinyang", slot_town_mercs,         "p_jinyang_mercs"),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jinyang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jinyang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jinyang", slot_town_horse_merchant,"trp_town_14_horse_merchant"),
      (party_set_slot,"p_jinyang", slot_town_entry_no,0),


      (party_set_slot,"p_anding", slot_party_type,         spt_town),
      (party_set_slot,"p_anding", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_anding", slot_town_castle,        "scn_anding_castle"),
      (party_set_slot,"p_anding", slot_town_tavern,        "scn_anding_tavern"),
      (party_set_slot,"p_anding", slot_town_store,         "scn_anding_store"),      
      (party_set_slot,"p_anding", slot_town_tavernkeeper,  "trp_town_15_tavernkeeper"),
      (party_set_slot,"p_anding", slot_town_weaponsmith,   "trp_town_15_weaponsmith"),
      (party_set_slot,"p_anding", slot_town_armorer,       "trp_town_15_armorer"),
      (party_set_slot,"p_anding", slot_town_merchant,      "trp_town_15_merchant"),
      (party_set_slot,"p_anding", slot_town_mercs,         "p_anding_mercs"),
      (party_set_slot,"p_anding", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_anding", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_anding", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_anding", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_anding", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_anding", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_anding", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_anding", slot_town_horse_merchant,"trp_town_15_horse_merchant"),
      (party_set_slot,"p_anding", slot_town_entry_no,1),

      (party_set_slot,"p_tianshui", slot_party_type,         spt_town),
      (party_set_slot,"p_tianshui", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_tianshui", slot_town_castle,        "scn_tianshui_castle"),
      (party_set_slot,"p_tianshui", slot_town_tavern,        "scn_tianshui_tavern"),
      (party_set_slot,"p_tianshui", slot_town_store,         "scn_tianshui_store"),      
      (party_set_slot,"p_tianshui", slot_town_tavernkeeper,  "trp_town_16_tavernkeeper"),
      (party_set_slot,"p_tianshui", slot_town_weaponsmith,   "trp_town_16_weaponsmith"),
      (party_set_slot,"p_tianshui", slot_town_armorer,       "trp_town_16_armorer"),
      (party_set_slot,"p_tianshui", slot_town_merchant,      "trp_town_16_merchant"),
      (party_set_slot,"p_tianshui", slot_town_mercs,         "p_tianshui_mercs"),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_tianshui", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_tianshui", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_tianshui", slot_town_horse_merchant,"trp_town_16_horse_merchant"),
      (party_set_slot,"p_tianshui", slot_town_entry_no,2),

      (party_set_slot,"p_sishuiguan", slot_party_type,         spt_town),
      (party_set_slot,"p_sishuiguan", slot_town_center,        "scn_sishuiguan_center"),
      (party_set_slot,"p_sishuiguan", slot_town_castle,        "scn_sishuiguan_castle"),
      (party_set_slot,"p_sishuiguan", slot_town_tavern,        "scn_sishuiguan_tavern"),
      (party_set_slot,"p_sishuiguan", slot_town_store,         "scn_sishuiguan_store"),      
      (party_set_slot,"p_sishuiguan", slot_town_tavernkeeper,  "trp_town_17_tavernkeeper"),
      (party_set_slot,"p_sishuiguan", slot_town_weaponsmith,   "trp_town_17_weaponsmith"),
      (party_set_slot,"p_sishuiguan", slot_town_armorer,       "trp_town_17_armorer"),
      (party_set_slot,"p_sishuiguan", slot_town_merchant,      "trp_town_17_merchant"),
      (party_set_slot,"p_sishuiguan", slot_town_mercs,         "p_sishuiguan_mercs"),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_sishuiguan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_sishuiguan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_sishuiguan", slot_town_horse_merchant,"trp_town_17_horse_merchant"),
      (party_set_slot,"p_sishuiguan", slot_town_entry_no,0),


      (party_set_slot,"p_hulaoguan", slot_party_type,         spt_town),
      (party_set_slot,"p_hulaoguan", slot_town_center,        "scn_hulaoguan_center"),
      (party_set_slot,"p_hulaoguan", slot_town_castle,        "scn_hulaoguan_castle"),
      (party_set_slot,"p_hulaoguan", slot_town_tavern,        "scn_hulaoguan_tavern"),
      (party_set_slot,"p_hulaoguan", slot_town_store,         "scn_hulaoguan_store"),      
      (party_set_slot,"p_hulaoguan", slot_town_tavernkeeper,  "trp_town_18_tavernkeeper"),
      (party_set_slot,"p_hulaoguan", slot_town_weaponsmith,   "trp_town_18_weaponsmith"),
      (party_set_slot,"p_hulaoguan", slot_town_armorer,       "trp_town_18_armorer"),
      (party_set_slot,"p_hulaoguan", slot_town_merchant,      "trp_town_18_merchant"),
      (party_set_slot,"p_hulaoguan", slot_town_mercs,         "p_hulaoguan_mercs"),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_hulaoguan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_hulaoguan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_hulaoguan", slot_town_horse_merchant,"trp_town_18_horse_merchant"),
      (party_set_slot,"p_hulaoguan", slot_town_entry_no,0),

   
      (party_set_slot,"p_tongguan", slot_party_type,         spt_town),
      (party_set_slot,"p_tongguan", slot_town_center,        "scn_tongguan_center"),
      (party_set_slot,"p_tongguan", slot_town_castle,        "scn_tongguan_castle"),
      (party_set_slot,"p_tongguan", slot_town_tavern,        "scn_tongguan_tavern"),
      (party_set_slot,"p_tongguan", slot_town_store,         "scn_tongguan_store"),      
      (party_set_slot,"p_tongguan", slot_town_tavernkeeper,  "trp_town_19_tavernkeeper"),
      (party_set_slot,"p_tongguan", slot_town_weaponsmith,   "trp_town_19_weaponsmith"),
      (party_set_slot,"p_tongguan", slot_town_armorer,       "trp_town_19_armorer"),
      (party_set_slot,"p_tongguan", slot_town_merchant,      "trp_town_19_merchant"),
      (party_set_slot,"p_tongguan", slot_town_mercs,         "p_tongguan_mercs"),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_tongguan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_tongguan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_tongguan", slot_town_horse_merchant,"trp_town_19_horse_merchant"),
      (party_set_slot,"p_tongguan", slot_town_entry_no,0),

      (party_set_slot,"p_puyang", slot_party_type,         spt_town),
      (party_set_slot,"p_puyang", slot_town_center,        "scn_wein_center"),
      (party_set_slot,"p_puyang", slot_town_castle,        "scn_puyang_castle"),
      (party_set_slot,"p_puyang", slot_town_tavern,        "scn_puyang_tavern"),
      (party_set_slot,"p_puyang", slot_town_store,         "scn_puyang_store"),      
      (party_set_slot,"p_puyang", slot_town_tavernkeeper,  "trp_town_20_tavernkeeper"),
      (party_set_slot,"p_puyang", slot_town_weaponsmith,   "trp_town_20_weaponsmith"),
      (party_set_slot,"p_puyang", slot_town_armorer,       "trp_town_20_armorer"),
      (party_set_slot,"p_puyang", slot_town_merchant,      "trp_town_20_merchant"),
      (party_set_slot,"p_puyang", slot_town_mercs,         "p_puyang_mercs"),
      (party_set_slot,"p_puyang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_puyang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_puyang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_puyang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_puyang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_puyang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_puyang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_puyang", slot_town_horse_merchant,"trp_town_20_horse_merchant"),
      (party_set_slot,"p_puyang", slot_town_entry_no,0),

      (party_set_slot,"p_hefei", slot_party_type,         spt_town),
      (party_set_slot,"p_hefei", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_hefei", slot_town_castle,        "scn_hefei_castle"),
      (party_set_slot,"p_hefei", slot_town_tavern,        "scn_hefei_tavern"),
      (party_set_slot,"p_hefei", slot_town_store,         "scn_hefei_store"),     
      (party_set_slot,"p_hefei", slot_town_tavernkeeper,  "trp_town_21_tavernkeeper"),
      (party_set_slot,"p_hefei", slot_town_weaponsmith,   "trp_town_21_weaponsmith"),
      (party_set_slot,"p_hefei", slot_town_armorer,       "trp_town_21_armorer"),
      (party_set_slot,"p_hefei", slot_town_merchant,      "trp_town_21_merchant"),
      (party_set_slot,"p_hefei", slot_town_mercs,         "p_hefei_mercs"),
      (party_set_slot,"p_hefei", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_hefei", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_hefei", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_hefei", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_hefei", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_hefei", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_hefei", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_hefei", slot_town_horse_merchant,"trp_town_21_horse_merchant"),
      (party_set_slot,"p_hefei", slot_town_entry_no,1),
      
      (party_set_slot,"p_jiangxia", slot_party_type,         spt_town),
      (party_set_slot,"p_jiangxia", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_jiangxia", slot_town_castle,        "scn_jiangxia_castle"),
      (party_set_slot,"p_jiangxia", slot_town_tavern,        "scn_jiangxia_tavern"),
      (party_set_slot,"p_jiangxia", slot_town_store,         "scn_jiangxia_store"),    
      (party_set_slot,"p_jiangxia", slot_town_tavernkeeper,  "trp_town_22_tavernkeeper"),
      (party_set_slot,"p_jiangxia", slot_town_weaponsmith,   "trp_town_22_weaponsmith"),
      (party_set_slot,"p_jiangxia", slot_town_armorer,       "trp_town_22_armorer"),
      (party_set_slot,"p_jiangxia", slot_town_merchant,      "trp_town_22_merchant"),
      (party_set_slot,"p_jiangxia", slot_town_mercs,         "p_jiangxia_mercs"),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jiangxia", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jiangxia", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jiangxia", slot_town_horse_merchant,"trp_town_22_horse_merchant"),
      (party_set_slot,"p_jiangxia", slot_town_entry_no,2),

      (party_set_slot,"p_yongan", slot_party_type,         spt_town),
      (party_set_slot,"p_yongan", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_yongan", slot_town_castle,        "scn_yongan_castle"),
      (party_set_slot,"p_yongan", slot_town_tavern,        "scn_yongan_tavern"),
      (party_set_slot,"p_yongan", slot_town_store,         "scn_yongan_store"),     
      (party_set_slot,"p_yongan", slot_town_tavernkeeper,  "trp_town_23_tavernkeeper"),
      (party_set_slot,"p_yongan", slot_town_weaponsmith,   "trp_town_23_weaponsmith"),
      (party_set_slot,"p_yongan", slot_town_armorer,       "trp_town_23_armorer"),
      (party_set_slot,"p_yongan", slot_town_merchant,      "trp_town_23_merchant"),
      (party_set_slot,"p_yongan", slot_town_mercs,         "p_yongan_mercs"),
      (party_set_slot,"p_yongan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_yongan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_yongan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_yongan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_yongan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_yongan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_yongan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_yongan", slot_town_horse_merchant,"trp_town_23_horse_merchant"),
      (party_set_slot,"p_yongan", slot_town_entry_no,0),

      (party_set_slot,"p_jiangzhou", slot_party_type,         spt_town),
      (party_set_slot,"p_jiangzhou", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_jiangzhou", slot_town_castle,        "scn_jiangzhou_castle"),
      (party_set_slot,"p_jiangzhou", slot_town_tavern,        "scn_jiangzhou_tavern"),
      (party_set_slot,"p_jiangzhou", slot_town_store,         "scn_jiangzhou_store"),
      (party_set_slot,"p_jiangzhou", slot_town_tavernkeeper,  "trp_town_24_tavernkeeper"),
      (party_set_slot,"p_jiangzhou", slot_town_weaponsmith,   "trp_town_24_weaponsmith"),
      (party_set_slot,"p_jiangzhou", slot_town_armorer,       "trp_town_24_armorer"),
      (party_set_slot,"p_jiangzhou", slot_town_merchant,      "trp_town_24_merchant"),
      (party_set_slot,"p_jiangzhou", slot_town_mercs,         "p_jiangzhou_mercs"),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jiangzhou", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jiangzhou", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jiangzhou", slot_town_horse_merchant,"trp_town_24_horse_merchant"),
      (party_set_slot,"p_jiangzhou", slot_town_entry_no,0),

      (party_set_slot,"p_chengdu", slot_party_type,         spt_town),
      (party_set_slot,"p_chengdu", slot_town_center,        "scn_shul_center"),
      (party_set_slot,"p_chengdu", slot_town_castle,        "scn_chengdu_castle"),
      (party_set_slot,"p_chengdu", slot_town_tavern,        "scn_chengdu_tavern"),
      (party_set_slot,"p_chengdu", slot_town_store,         "scn_chengdu_store"),   
      (party_set_slot,"p_chengdu", slot_town_tavernkeeper,  "trp_town_25_tavernkeeper"),
      (party_set_slot,"p_chengdu", slot_town_weaponsmith,   "trp_town_25_weaponsmith"),
      (party_set_slot,"p_chengdu", slot_town_armorer,       "trp_town_25_armorer"),
      (party_set_slot,"p_chengdu", slot_town_merchant,      "trp_town_25_merchant"),
      (party_set_slot,"p_chengdu", slot_town_mercs,         "p_chengdu_mercs"),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_chengdu", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_chengdu", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_chengdu", slot_town_horse_merchant,"trp_town_25_horse_merchant"),
      (party_set_slot,"p_chengdu", slot_town_entry_no,1),

      (party_set_slot,"p_yunnan", slot_party_type,         spt_town),
      (party_set_slot,"p_yunnan", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_yunnan", slot_town_castle,        "scn_yunnan_castle"),
      (party_set_slot,"p_yunnan", slot_town_tavern,        "scn_yunnan_tavern"),
      (party_set_slot,"p_yunnan", slot_town_store,         "scn_yunnan_store"),    
      (party_set_slot,"p_yunnan", slot_town_tavernkeeper,  "trp_town_26_tavernkeeper"),
      (party_set_slot,"p_yunnan", slot_town_weaponsmith,   "trp_town_26_weaponsmith"),
      (party_set_slot,"p_yunnan", slot_town_armorer,       "trp_town_26_armorer"),
      (party_set_slot,"p_yunnan", slot_town_merchant,      "trp_town_26_merchant"),
      (party_set_slot,"p_yunnan", slot_town_mercs,         "p_yunnan_mercs"),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_yunnan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_yunnan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_yunnan", slot_town_horse_merchant,"trp_town_26_horse_merchant"),
      (party_set_slot,"p_yunnan", slot_town_entry_no,2),

      (party_set_slot,"p_shangyong", slot_party_type,         spt_town),
      (party_set_slot,"p_shangyong", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_shangyong", slot_town_castle,        "scn_shangyong_castle"),
      (party_set_slot,"p_shangyong", slot_town_tavern,        "scn_shangyong_tavern"),
      (party_set_slot,"p_shangyong", slot_town_store,         "scn_shangyong_store"),   
      (party_set_slot,"p_shangyong", slot_town_tavernkeeper,  "trp_town_27_tavernkeeper"),
      (party_set_slot,"p_shangyong", slot_town_weaponsmith,   "trp_town_27_weaponsmith"),
      (party_set_slot,"p_shangyong", slot_town_armorer,       "trp_town_27_armorer"),
      (party_set_slot,"p_shangyong", slot_town_merchant,      "trp_town_27_merchant"),
      (party_set_slot,"p_shangyong", slot_town_mercs,         "p_shangyong_mercs"),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_shangyong", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_shangyong", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),      
      (party_set_slot,"p_shangyong", slot_town_horse_merchant,"trp_town_27_horse_merchant"),
      (party_set_slot,"p_shangyong", slot_town_entry_no,0),

      (party_set_slot,"p_jiangling", slot_party_type,         spt_town),
      (party_set_slot,"p_jiangling", slot_town_center,        "scn_shun_center"),
      (party_set_slot,"p_jiangling", slot_town_castle,        "scn_jiangling_castle"),
      (party_set_slot,"p_jiangling", slot_town_tavern,        "scn_jiangling_tavern"),
      (party_set_slot,"p_jiangling", slot_town_store,         "scn_jiangling_store"),     
      (party_set_slot,"p_jiangling", slot_town_tavernkeeper,  "trp_town_28_tavernkeeper"),
      (party_set_slot,"p_jiangling", slot_town_weaponsmith,   "trp_town_28_weaponsmith"),
      (party_set_slot,"p_jiangling", slot_town_armorer,       "trp_town_28_armorer"),
      (party_set_slot,"p_jiangling", slot_town_merchant,      "trp_town_28_merchant"),
      (party_set_slot,"p_jiangling", slot_town_mercs,         "p_jiangling_mercs"),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jiangling", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jiangling", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"), 
      (party_set_slot,"p_jiangling", slot_town_horse_merchant,"trp_town_28_horse_merchant"),
      (party_set_slot,"p_jiangling", slot_town_entry_no,1),

      (party_set_slot,"p_jianning", slot_party_type,         spt_town),
      (party_set_slot,"p_jianning", slot_town_center,        "scn_shun_center"),
      (party_set_slot,"p_jianning", slot_town_castle,        "scn_jianning_castle"),
      (party_set_slot,"p_jianning", slot_town_tavern,        "scn_jianning_tavern"),
      (party_set_slot,"p_jianning", slot_town_store,         "scn_jianning_store"),   
      (party_set_slot,"p_jianning", slot_town_tavernkeeper,  "trp_town_29_tavernkeeper"),
      (party_set_slot,"p_jianning", slot_town_weaponsmith,   "trp_town_29_weaponsmith"),
      (party_set_slot,"p_jianning", slot_town_armorer,       "trp_town_29_armorer"),
      (party_set_slot,"p_jianning", slot_town_merchant,      "trp_town_29_merchant"),
      (party_set_slot,"p_jianning", slot_town_mercs,         "p_jianning_mercs"),
      (party_set_slot,"p_jianning", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jianning", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jianning", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jianning", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jianning", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jianning", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jianning", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"), 
      (party_set_slot,"p_jianning", slot_town_horse_merchant,"trp_town_29_horse_merchant"),
      (party_set_slot,"p_jianning", slot_town_entry_no,2),

      (party_set_slot,"p_zitong", slot_party_type,         spt_town),
      (party_set_slot,"p_zitong", slot_town_center,        "scn_shus_center"),
      (party_set_slot,"p_zitong", slot_town_castle,        "scn_zitong_castle"),
      (party_set_slot,"p_zitong", slot_town_tavern,        "scn_zitong_tavern"),
      (party_set_slot,"p_zitong", slot_town_store,         "scn_zitong_store"),    
      (party_set_slot,"p_zitong", slot_town_tavernkeeper,  "trp_town_30_tavernkeeper"),
      (party_set_slot,"p_zitong", slot_town_weaponsmith,   "trp_town_30_weaponsmith"),
      (party_set_slot,"p_zitong", slot_town_armorer,       "trp_town_30_armorer"),
      (party_set_slot,"p_zitong", slot_town_merchant,      "trp_town_30_merchant"),
      (party_set_slot,"p_zitong", slot_town_mercs,         "p_zitong_mercs"),
      (party_set_slot,"p_zitong", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_zitong", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_zitong", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_zitong", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_zitong", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_zitong", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_zitong", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"), 
      (party_set_slot,"p_zitong", slot_town_horse_merchant,"trp_town_30_horse_merchant"),
      (party_set_slot,"p_zitong", slot_town_entry_no,0),

      (party_set_slot,"p_hanzhong", slot_party_type,         spt_town),
      (party_set_slot,"p_hanzhong", slot_town_center,        "scn_shun_center"),
      (party_set_slot,"p_hanzhong", slot_town_castle,        "scn_hanzhong_castle"),
      (party_set_slot,"p_hanzhong", slot_town_tavern,        "scn_hanzhong_tavern"),
      (party_set_slot,"p_hanzhong", slot_town_store,         "scn_hanzhong_store"),    
      (party_set_slot,"p_hanzhong", slot_town_tavernkeeper,  "trp_town_31_tavernkeeper"),
      (party_set_slot,"p_hanzhong", slot_town_weaponsmith,   "trp_town_31_weaponsmith"),
      (party_set_slot,"p_hanzhong", slot_town_armorer,       "trp_town_31_armorer"),
      (party_set_slot,"p_hanzhong", slot_town_merchant,      "trp_town_31_merchant"),
      (party_set_slot,"p_hanzhong", slot_town_mercs,         "p_hanzhong_mercs"),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_hanzhong", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_hanzhong", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"), 
      (party_set_slot,"p_hanzhong", slot_town_horse_merchant,"trp_town_31_horse_merchant"),
      (party_set_slot,"p_hanzhong", slot_town_entry_no,1),
   
      (party_set_slot,"p_jianye", slot_party_type,         spt_town),
      (party_set_slot,"p_jianye", slot_town_center,        "scn_wul_center"),
      (party_set_slot,"p_jianye", slot_town_castle,        "scn_jianye_castle"),
      (party_set_slot,"p_jianye", slot_town_tavern,        "scn_jianye_tavern"),
      (party_set_slot,"p_jianye", slot_town_store,         "scn_jianye_store"),    
      (party_set_slot,"p_jianye", slot_town_tavernkeeper,  "trp_town_32_tavernkeeper"),
      (party_set_slot,"p_jianye", slot_town_weaponsmith,   "trp_town_32_weaponsmith"),
      (party_set_slot,"p_jianye", slot_town_armorer,       "trp_town_32_armorer"),
      (party_set_slot,"p_jianye", slot_town_merchant,      "trp_town_32_merchant"),
      (party_set_slot,"p_jianye", slot_town_mercs,         "p_jianye_mercs"),
      (party_set_slot,"p_jianye", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jianye", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jianye", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jianye", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jianye", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jianye", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jianye", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jianye", slot_town_horse_merchant,"trp_town_32_horse_merchant"),
      (party_set_slot,"p_jianye", slot_town_entry_no,2),

      (party_set_slot,"p_wu", slot_party_type,         spt_town),
      (party_set_slot,"p_wu", slot_town_center,        "scn_wun_center"),
      (party_set_slot,"p_wu", slot_town_castle,        "scn_wu_castle"),
      (party_set_slot,"p_wu", slot_town_tavern,        "scn_wu_tavern"),
      (party_set_slot,"p_wu", slot_town_store,         "scn_wu_store"),    
      (party_set_slot,"p_wu", slot_town_tavernkeeper,  "trp_town_33_tavernkeeper"),
      (party_set_slot,"p_wu", slot_town_weaponsmith,   "trp_town_33_weaponsmith"),
      (party_set_slot,"p_wu", slot_town_armorer,       "trp_town_33_armorer"),
      (party_set_slot,"p_wu", slot_town_merchant,      "trp_town_33_merchant"),
      (party_set_slot,"p_wu", slot_town_mercs,         "p_wu_mercs"),
      (party_set_slot,"p_wu", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_wu", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_wu", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_wu", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_wu", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_wu", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_wu", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_wu", slot_town_horse_merchant,"trp_town_33_horse_merchant"),
      (party_set_slot,"p_wu", slot_town_entry_no,1),

      (party_set_slot,"p_huiji", slot_party_type,         spt_town),
      (party_set_slot,"p_huiji", slot_town_center,        "scn_wun_center"),
      (party_set_slot,"p_huiji", slot_town_castle,        "scn_huiji_castle"),
      (party_set_slot,"p_huiji", slot_town_tavern,        "scn_huiji_tavern"),
      (party_set_slot,"p_huiji", slot_town_store,         "scn_huiji_store"),     
      (party_set_slot,"p_huiji", slot_town_tavernkeeper,  "trp_town_34_tavernkeeper"),
      (party_set_slot,"p_huiji", slot_town_weaponsmith,   "trp_town_34_weaponsmith"),
      (party_set_slot,"p_huiji", slot_town_armorer,       "trp_town_34_armorer"),
      (party_set_slot,"p_huiji", slot_town_merchant,      "trp_town_34_merchant"),
      (party_set_slot,"p_huiji", slot_town_mercs,         "p_huiji_mercs"),
      (party_set_slot,"p_huiji", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_huiji", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_huiji", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_huiji", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_huiji", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_huiji", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_huiji", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_huiji", slot_town_horse_merchant,"trp_town_34_horse_merchant"),
      (party_set_slot,"p_huiji", slot_town_entry_no,2),

      (party_set_slot,"p_chaisang", slot_party_type,         spt_town),
      (party_set_slot,"p_chaisang", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_chaisang", slot_town_castle,        "scn_chaisang_castle"),
      (party_set_slot,"p_chaisang", slot_town_tavern,        "scn_chaisang_tavern"),
      (party_set_slot,"p_chaisang", slot_town_store,         "scn_chaisang_store"),  
      (party_set_slot,"p_chaisang", slot_town_tavernkeeper,  "trp_town_35_tavernkeeper"),
      (party_set_slot,"p_chaisang", slot_town_weaponsmith,   "trp_town_35_weaponsmith"),
      (party_set_slot,"p_chaisang", slot_town_armorer,       "trp_town_35_armorer"),
      (party_set_slot,"p_chaisang", slot_town_merchant,      "trp_town_35_merchant"),
      (party_set_slot,"p_chaisang", slot_town_mercs,         "p_chaisang_mercs"),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_chaisang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_chaisang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_chaisang", slot_town_horse_merchant,"trp_town_35_horse_merchant"),
      (party_set_slot,"p_chaisang", slot_town_entry_no,0),

      (party_set_slot,"p_changsha", slot_party_type,         spt_town),
      (party_set_slot,"p_changsha", slot_town_center,        "scn_wul_center"),
      (party_set_slot,"p_changsha", slot_town_castle,        "scn_changsha_castle"),
      (party_set_slot,"p_changsha", slot_town_tavern,        "scn_changsha_tavern"),
      (party_set_slot,"p_changsha", slot_town_store,         "scn_changsha_store"),  
      (party_set_slot,"p_changsha", slot_town_tavernkeeper,  "trp_town_36_tavernkeeper"),
      (party_set_slot,"p_changsha", slot_town_weaponsmith,   "trp_town_36_weaponsmith"),
      (party_set_slot,"p_changsha", slot_town_armorer,       "trp_town_36_armorer"),
      (party_set_slot,"p_changsha", slot_town_merchant,      "trp_town_36_merchant"),
      (party_set_slot,"p_changsha", slot_town_mercs,         "p_changsha_mercs"),
      (party_set_slot,"p_changsha", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_changsha", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_changsha", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_changsha", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_changsha", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_changsha", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_changsha", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_changsha", slot_town_horse_merchant,"trp_town_36_horse_merchant"),
      (party_set_slot,"p_changsha", slot_town_entry_no,1),

      (party_set_slot,"p_wuling", slot_party_type,         spt_town),
      (party_set_slot,"p_wuling", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_wuling", slot_town_castle,        "scn_wuling_castle"),
      (party_set_slot,"p_wuling", slot_town_tavern,        "scn_wuling_tavern"),
      (party_set_slot,"p_wuling", slot_town_store,         "scn_wuling_store"),  
      (party_set_slot,"p_wuling", slot_town_tavernkeeper,  "trp_town_37_tavernkeeper"),
      (party_set_slot,"p_wuling", slot_town_weaponsmith,   "trp_town_37_weaponsmith"),
      (party_set_slot,"p_wuling", slot_town_armorer,       "trp_town_37_armorer"),
      (party_set_slot,"p_wuling", slot_town_merchant,      "trp_town_37_merchant"),
      (party_set_slot,"p_wuling", slot_town_mercs,         "p_wuling_mercs"),
      (party_set_slot,"p_wuling", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_wuling", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_wuling", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_wuling", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_wuling", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_wuling", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_wuling", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_wuling", slot_town_horse_merchant,"trp_town_37_horse_merchant"),
      (party_set_slot,"p_wuling", slot_town_entry_no,2),


      (party_set_slot,"p_lingling", slot_party_type,         spt_town),
      (party_set_slot,"p_lingling", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_lingling", slot_town_castle,        "scn_lingling_castle"),
      (party_set_slot,"p_lingling", slot_town_tavern,        "scn_lingling_tavern"),
      (party_set_slot,"p_lingling", slot_town_store,         "scn_lingling_store"),    
      (party_set_slot,"p_lingling", slot_town_tavernkeeper,  "trp_town_38_tavernkeeper"),
      (party_set_slot,"p_lingling", slot_town_weaponsmith,   "trp_town_38_weaponsmith"),
      (party_set_slot,"p_lingling", slot_town_armorer,       "trp_town_38_armorer"),
      (party_set_slot,"p_lingling", slot_town_merchant,      "trp_town_38_merchant"),
      (party_set_slot,"p_lingling", slot_town_mercs,         "p_lingling_mercs"),
      (party_set_slot,"p_lingling", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_lingling", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_lingling", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_lingling", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_lingling", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_lingling", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_lingling", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_lingling", slot_town_horse_merchant,"trp_town_38_horse_merchant"),
      (party_set_slot,"p_lingling", slot_town_entry_no,0),


      (party_set_slot,"p_guiyang", slot_party_type,         spt_town),
      (party_set_slot,"p_guiyang", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_guiyang", slot_town_castle,        "scn_guiyang_castle"),
      (party_set_slot,"p_guiyang", slot_town_tavern,        "scn_guiyang_tavern"),
      (party_set_slot,"p_guiyang", slot_town_store,         "scn_guiyang_store"),    
      (party_set_slot,"p_guiyang", slot_town_tavernkeeper,  "trp_town_39_tavernkeeper"),
      (party_set_slot,"p_guiyang", slot_town_weaponsmith,   "trp_town_39_weaponsmith"),
      (party_set_slot,"p_guiyang", slot_town_armorer,       "trp_town_39_armorer"),
      (party_set_slot,"p_guiyang", slot_town_merchant,      "trp_town_39_merchant"),
      (party_set_slot,"p_guiyang", slot_town_mercs,         "p_guiyang_mercs"),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_guiyang", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_guiyang", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_guiyang", slot_town_horse_merchant,"trp_town_39_horse_merchant"),
      (party_set_slot,"p_guiyang", slot_town_entry_no,1),

      (party_set_slot,"p_nanhai", slot_party_type,         spt_town),
      (party_set_slot,"p_nanhai", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_nanhai", slot_town_castle,        "scn_nanhai_castle"),
      (party_set_slot,"p_nanhai", slot_town_tavern,        "scn_nanhai_tavern"),
      (party_set_slot,"p_nanhai", slot_town_store,         "scn_nanhai_store"),   
      (party_set_slot,"p_nanhai", slot_town_tavernkeeper,  "trp_town_40_tavernkeeper"),
      (party_set_slot,"p_nanhai", slot_town_weaponsmith,   "trp_town_40_weaponsmith"),
      (party_set_slot,"p_nanhai", slot_town_armorer,       "trp_town_40_armorer"),
      (party_set_slot,"p_nanhai", slot_town_merchant,      "trp_town_40_merchant"),
      (party_set_slot,"p_nanhai", slot_town_mercs,         "p_nanhai_mercs"),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_nanhai", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_nanhai", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_nanhai", slot_town_horse_merchant,"trp_town_40_horse_merchant"),
      (party_set_slot,"p_nanhai", slot_town_entry_no,2),


      (party_set_slot,"p_yiling", slot_party_type,         spt_town),
      (party_set_slot,"p_yiling", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_yiling", slot_town_castle,        "scn_yiling_castle"),
      (party_set_slot,"p_yiling", slot_town_tavern,        "scn_yiling_tavern"),
      (party_set_slot,"p_yiling", slot_town_store,         "scn_yiling_store"),   
      (party_set_slot,"p_yiling", slot_town_tavernkeeper,  "trp_town_41_tavernkeeper"),
      (party_set_slot,"p_yiling", slot_town_weaponsmith,   "trp_town_41_weaponsmith"),
      (party_set_slot,"p_yiling", slot_town_armorer,       "trp_town_41_armorer"),
      (party_set_slot,"p_yiling", slot_town_merchant,      "trp_town_41_merchant"),
      (party_set_slot,"p_yiling", slot_town_mercs,         "p_yiling_mercs"),
      (party_set_slot,"p_yiling", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_yiling", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_yiling", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_yiling", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_yiling", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_yiling", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_yiling", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_yiling", slot_town_horse_merchant,"trp_town_41_horse_merchant"),
      (party_set_slot,"p_yiling", slot_town_entry_no,0),


      (party_set_slot,"p_jiange", slot_party_type,         spt_town),
      (party_set_slot,"p_jiange", slot_town_center,        "scn_jiange_center"),
      (party_set_slot,"p_jiange", slot_town_castle,        "scn_jiange_castle"),
      (party_set_slot,"p_jiange", slot_town_tavern,        "scn_jiange_tavern"),
      (party_set_slot,"p_jiange", slot_town_store,         "scn_jiange_store"),   
      (party_set_slot,"p_jiange", slot_town_tavernkeeper,  "trp_town_42_tavernkeeper"),
      (party_set_slot,"p_jiange", slot_town_weaponsmith,   "trp_town_42_weaponsmith"),
      (party_set_slot,"p_jiange", slot_town_armorer,       "trp_town_42_armorer"),
      (party_set_slot,"p_jiange", slot_town_merchant,      "trp_town_42_merchant"),
      (party_set_slot,"p_jiange", slot_town_mercs,         "p_jiange_mercs"),
      (party_set_slot,"p_jiange", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jiange", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jiange", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jiange", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jiange", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jiange", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jiange", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jiange", slot_town_horse_merchant,"trp_town_42_horse_merchant"),
      (party_set_slot,"p_jiange", slot_town_entry_no,0),

      (party_set_slot,"p_nanpi", slot_party_type,         spt_town),
      (party_set_slot,"p_nanpi", slot_town_center,        "scn_weis_center"),
      (party_set_slot,"p_nanpi", slot_town_castle,        "scn_nanpi_castle"),
      (party_set_slot,"p_nanpi", slot_town_tavern,        "scn_nanpi_tavern"),
      (party_set_slot,"p_nanpi", slot_town_store,         "scn_nanpi_store"),   
      (party_set_slot,"p_nanpi", slot_town_tavernkeeper,  "trp_town_43_tavernkeeper"),
      (party_set_slot,"p_nanpi", slot_town_weaponsmith,   "trp_town_43_weaponsmith"),
      (party_set_slot,"p_nanpi", slot_town_armorer,       "trp_town_43_armorer"),
      (party_set_slot,"p_nanpi", slot_town_merchant,      "trp_town_43_merchant"),
      (party_set_slot,"p_nanpi", slot_town_mercs,         "p_nanpi_mercs"),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_nanpi", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_nanpi", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_nanpi", slot_town_horse_merchant,"trp_town_43_horse_merchant"),
      (party_set_slot,"p_nanpi", slot_town_entry_no,1),

      (party_set_slot,"p_jianan", slot_party_type,         spt_town),
      (party_set_slot,"p_jianan", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_jianan", slot_town_castle,        "scn_jianan_castle"),
      (party_set_slot,"p_jianan", slot_town_tavern,        "scn_jianan_tavern"),
      (party_set_slot,"p_jianan", slot_town_store,         "scn_jianan_store"),   
      (party_set_slot,"p_jianan", slot_town_tavernkeeper,  "trp_town_44_tavernkeeper"),
      (party_set_slot,"p_jianan", slot_town_weaponsmith,   "trp_town_44_weaponsmith"),
      (party_set_slot,"p_jianan", slot_town_armorer,       "trp_town_44_armorer"),
      (party_set_slot,"p_jianan", slot_town_merchant,      "trp_town_44_merchant"),
      (party_set_slot,"p_jianan", slot_town_mercs,         "p_jianan_mercs"),
      (party_set_slot,"p_jianan", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jianan", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jianan", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jianan", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jianan", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jianan", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jianan", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jianan", slot_town_horse_merchant,"trp_town_44_horse_merchant"),
      (party_set_slot,"p_jianan", slot_town_entry_no,2),

      (party_set_slot,"p_jiaozhi", slot_party_type,         spt_town),
      (party_set_slot,"p_jiaozhi", slot_town_center,        "scn_wus_center"),
      (party_set_slot,"p_jiaozhi", slot_town_castle,        "scn_jiaozhi_castle"),
      (party_set_slot,"p_jiaozhi", slot_town_tavern,        "scn_jiaozhi_tavern"),
      (party_set_slot,"p_jiaozhi", slot_town_store,         "scn_jiaozhi_store"),   
      (party_set_slot,"p_jiaozhi", slot_town_tavernkeeper,  "trp_town_45_tavernkeeper"),
      (party_set_slot,"p_jiaozhi", slot_town_weaponsmith,   "trp_town_45_weaponsmith"),
      (party_set_slot,"p_jiaozhi", slot_town_armorer,       "trp_town_45_armorer"),
      (party_set_slot,"p_jiaozhi", slot_town_merchant,      "trp_town_45_merchant"),
      (party_set_slot,"p_jiaozhi", slot_town_mercs,         "p_jiaozhi_mercs"),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_1_team_size,   1),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_2_num_teams,   4),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_2_team_size,   1),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_3_num_teams,   4),
      (party_set_slot,"p_jiaozhi", slot_town_arena_melee_3_team_size,   1),
      (party_set_slot,"p_jiaozhi", slot_town_arena_template, "mt_arena_melee_fight_no_ranged"),
      (party_set_slot,"p_jiaozhi", slot_town_horse_merchant,"trp_town_45_horse_merchant"),
      (party_set_slot,"p_jiaozhi", slot_town_entry_no,0),


# Castles:
      #(party_set_slot,"p_castle_1", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_2", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_3", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_4", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_5", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_6", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_7", slot_party_type,         spt_castle),
      #(party_set_slot,"p_castle_8", slot_party_type,         spt_castle),

	]
),

]
