Two Quick Questions

正在查看此主题的用户

Lord_Cheap

Squire
As the title suggests, I have two quick questions I want to ask.
1)I'm trying to make the ruler of a faction give the player a faction-specific weapon when the player joins their faction. I think module_dialogs is the file to be editing, but how would I go around implementing that?
2)Would it be possible to assign the rebels of a faction a different name, ie. I have a faction called "Rhodok Protectorate" but I want the name of its rebels, if any, to be "Kingdom of Rhodoks"

Thanks.
 
1
dont know how some one will tho

2)Would it be possible to assign the rebels of a faction a different name, ie. I have a faction called "Rhodok Protectorate" but I want the name of its rebels, if any, to be "Kingdom of Rhodoks"

module_factions.py

find
##  ("kingdom_5_rebels",  "Rhodok rebels",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xCC2211),

do that to any faction and that is all

Keep it in the " "
 
go to the dialog line, where you want to give the weapon and then add something like this:

(store_troop_faction, "$g_talk_troop_faction", "$g_talk_troop"),
(try_begin),
  (eq,"$g_talk_troop_faction", "fac_kingdom_1"),
  (troop_add_item,"trp_player","itm_kingdom_1_weapon"),
(else_try),
  (eq,"$g_talk_troop_faction", "fac_kingdom_2"),
  (troop_add_item,"trp_player","itm_kingdom_2_weapon"),
(else_try),
...
(try_end),
 
Ziller 说:
module_factions.py

find
##  ("kingdom_5_rebels",  "Rhodok rebels",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xCC2211),

do that to any faction and that is all

Keep it in the " "

isn't that commented out? So editing it wouldn't have much purpose?

Albertus Magnus 说:
go to the dialog line, where you want to give the weapon and then add something like this:

(store_troop_faction, "$g_talk_troop_faction", "$g_talk_troop"),
(try_begin),
  (eq,"$g_talk_troop_faction", "fac_kingdom_1"),
  (troop_add_item,"trp_player","itm_kingdom_1_weapon"),
(else_try),
  (eq,"$g_talk_troop_faction", "fac_kingdom_2"),
  (troop_add_item,"trp_player","itm_kingdom_2_weapon"),
(else_try),
...
(try_end),

tried that, compiled and no errors concerning it occured, but...

I was making some new faction-specific items, and at no point did i change siege_supply, but

Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\process_operations
.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_troops.py",
line 582, in <module>
    [itm_claymore,
NameError: name 'itm_claymore' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\process_operations
.py", line 14, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_troops.py",
line 582, in <module>
    [itm_claymore,
NameError: name 'itm_claymore' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 54, in <module>
    save_python_header()
  File "process_items.py", line 14, in save_python_header
    file.write("itm_%s = %d\n"%(convert_to_identifier(items[i_item][0]),i_item))

  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\process_common.py"
, line 5, in convert_to_identifier
    s1 = string.replace(s0," ","_")
  File "C:\Python25\lib\string.py", line 517, in replace
    return s.replace(old, new, maxsplit)
AttributeError: 'list' object has no attribute 'replace'
Traceback (most recent call last):
  File "process_scenes.py", line 2, in <module>
    from module_scenes import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_scenes.py",
line 5, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_troops.py",
line 211, in <module>
    ["unarmed_troop","Unarmed Troop","Unarmed Troops",tf_hero,no_scene,reserved,
fac_commoners,[itm_arrows,itm_short_bow],def_attrib|str_14,0,knows_common|knows_
power_draw_2,0],
NameError: name 'itm_arrows' is not defined
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 4, in <module>
    from module_scene_props import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_scene_props
.py", line 6, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 5, in <module>
    from module_tableau_materials import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_tableau_mat
erials.py", line 6, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_presentatio
ns.py", line 7, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_game_menus.
py", line 8, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_scripts.py"
, line 4, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_mission_tem
plates.py", line 7, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_game_menus.
py", line 8, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 2, in <module>
    from module_simple_triggers import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_simple_trig
gers.py", line 10, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 5, in <module>
    from module_triggers import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_triggers.py
", line 9, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\process_operations
.py", line 13, in <module>
    from module_items import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_items.py",
line 1, in <module>
    from module_constants import *
  File "C:\Documents and Settings\Adonis\Desktop\ModuleSystem\module_constants.p
y", line 306, in <module>
    num_trade_goods = itm_siege_supply - itm_smoked_fish
NameError: name 'itm_siege_supply' is not defined

______________________________

Script processing has ended.
Press any key to exit. . .

:S help?
 
the rebels factions ar all like that for some reson and i dont know how it works but that is how it is done so you what it as ##  ("kingdom_5_rebels",  "Rhodok Protectorate",  0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xCC2211),
what i am guessing it is some thing in a script or some thing to take it off

 
Could you please post your changes in module_items.py?
Maybe you did something to the siege_supply accidentely or you inserted your new weapons
at a wrong line... post and we will see.
If you didn't do any other changes to the module_items.py you can use a backup or the original file.
 
OK =]
This is after the "Rabati" helmet.
插入代码块:
##new items begin


["claymore", "Claymore", [("b_bastard_sword",0),("scab_bastardsw_b", ixmesh_carry),("b_bastard_sword", ixmesh_carry)], itp_type_two_handed_wpn|itp_merchandise| itp_primary, itc_bastardsword|itcf_carry_sword_back|itcf_show_holster_when_drawn,
  626 , weight(2.25)|difficulty(9)|spd_rtng(96) | weapon_length(108)|swing_damage(42 , cut) | thrust_damage(32 ,  pierce),imodbits_sword_high ],
["light_plate", "Light Plate Armour", [("plate_armor",0)], itp_merchandise| itp_type_body_armor  |itp_covers_legs ,0,
  9000 , weight(17)|abundance(100)|head_armor(0)|body_armor(42)|leg_armor(12)|difficulty(7) ,imodbits_plate ],
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_heraldic_armor_a", ":agent_no", ":troop_no")])]],
["quality_arrows","Quality Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver", ixmesh_carry)], itp_type_arrows|itp_merchandise, itcf_carry_quiver_back_right, 500,weight(4)|abundance(30)|weapon_length(91)|thrust_damage(4,pierce)|max_ammo(30),imodbits_missile],
["light_gauntlets","Light Gauntlets",[("gauntlet_b_L",0)], itp_merchandise|itp_type_hand_armor,0, 2300, weight(0.75)|abundance(100)|body_armor(5)|difficulty(7),imodbits_armor],
["scout_horse","Scouting Horse",[("horse_c",0)], itp_merchandise|itp_type_horse, 0, 600,abundance(70)|body_armor(12)|difficulty(3)|horse_speed(52)|horse_maneuver(22)|horse_charge(14),imodbits_horse_basic|imodbit_champion],
["strong_bolts","Strong Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag_c", ixmesh_carry)], itp_type_bolts|itp_merchandise, itcf_carry_quiver_right_vertical, 300,weight(3)|abundance(30)|weapon_length(55)|thrust_damage(3,pierce)|max_ammo(30),imodbits_missile],
["leet_crossbow", "Elite Crossbow", [("heavy_crossbow",0)], itp_type_crossbow |itp_merchandise|itp_primary|itp_two_handed|itp_cant_use_on_horseback ,itcf_shoot_crossbow|itcf_carry_crossbow_back, 800 , weight(4.5)|difficulty(12)|spd_rtng(40) | shoot_speed(80) | thrust_damage(55 ,pierce)|max_ammo(1),imodbits_crossbow ],
["tab_shield_kite_cav_c", "Elite Kite Shield",   [("tableau_shield_kite_4" ,0)], itp_merchandise|itp_type_shield, itcf_carry_kite_shield,  600 , weight(4)|hit_points(370)|body_armor(19)|spd_rtng(100)|weapon_length(40),imodbits_shield,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_kite_shield_4", ":agent_no", ":troop_no")])]],
["steel_arrows",         "Steel Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver", ixmesh_carry)], itp_type_arrows |itp_merchandise,itcf_carry_quiver_back_right, 750 , weight(4.5)|thrust_damage(5 ,  pierce)|max_ammo(27)|weapon_length(80),imodbits_missile ],
["tab_shield_pavise_e", "Sergeant's Board Shield",   [("tableau_shield_pavise_1" ,0)], itp_merchandise|itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,  500 , weight(5.5)|hit_points(500)|body_armor(6)|spd_rtng(100)|weapon_length(84),imodbits_shield,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_pavise_shield_1", ":agent_no", ":troop_no")])]],
["tab_shield_pavise_light", "Light Board Shield",   [("tableau_shield_pavise_1" ,0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_board_shield,  80 , weight(2)|hit_points(1400)|body_armor(2)|spd_rtng(73)|weapon_length(84),imodbits_shield,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_pavise_shield_1", ":agent_no", ":troop_no")])]],
["mail_with_tabard", "Mail with Tabard", [("haubergeon_b",0)], itp_merchandise| itp_type_body_armor  |itp_covers_legs ,0,
 924 , weight(19)|abundance(100)|head_armor(0)|body_armor(45)|leg_armor(8)|difficulty(7) ,imodbits_armor ],
["quality_crossbow",         "Quality Crossbow",         [("crossbow",0)], itp_type_crossbow |itp_merchandise|itp_primary|itp_two_handed|itp_cant_use_on_horseback ,itcf_shoot_crossbow|itcf_carry_crossbow_back, 300 , weight(3.5)|difficulty(9)|spd_rtng(40) | shoot_speed(70) | thrust_damage(42,pierce)|max_ammo(1),imodbits_crossbow ],

##faction items begin
["geroian_armour", "Geroian Armour", [("black_armor",0)], itp_type_body_armor  |itp_covers_legs ,0,
 15000 , weight(30)|abundance(100)|head_armor(0)|body_armor(67)|leg_armor(28)|difficulty(10) ,imodbits_plate ],
["geroian_boots", "Geroian Greaves", [("black_greaves",0)], itp_type_foot_armor  | itp_attach_armature,0,
 8000 , weight(5)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(45)|difficulty(0) ,imodbits_armor ],
["geroian_helm", "Geroian Helmet", [("black_helm",0)], itp_type_head_armor,0, 9000 , weight(4)|abundance(100)|head_armor(60)|body_armor(0)|leg_armor(0)|difficulty(9) ,imodbits_plate ],
["axe_of_impending_doom",         "Axe of Impending Doom", [("two_handed_battle_axe_e",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_nodachi|itcf_carry_axe_back,
 5000 , weight(8)|difficulty(12)|spd_rtng(65) | weapon_length(96)|swing_damage(75 , cut) | thrust_damage(0 ,  pierce),imodbits_axe ],
["shield_of_the_covenant", "Shield of the Covenant",   [("tableau_shield_kite_4" ,0)],itp_type_shield, itcf_carry_kite_shield,  6000 , weight(3.5)|hit_points(800)|body_armor(25)|spd_rtng(105)|weapon_length(40),imodbits_shield,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_kite_shield_4", ":agent_no", ":troop_no")])]],
["grangian_surcoat", "Grangian Surcoat", [("heraldic_armor_a",0)], itp_type_body_armor  |itp_covers_legs ,0,
 15000 , weight(22)|abundance(100)|head_armor(0)|body_armor(60)|leg_armor(20)|difficulty(7) ,imodbits_armor,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_heraldic_armor_a", ":agent_no", ":troop_no")])]],
["grangian_helmet", "Grangian Helmet", [("great_helm_a",0)], itp_type_head_armor|itp_covers_head,0, 9000 , weight(2.75)|abundance(100)|head_armor(60)|body_armor(0)|leg_armor(0)|difficulty(10) ,imodbits_plate ],
["blessed_blade",         "Blessed Blade", [("sword_two_handed_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_bastardsword|itcf_carry_sword_back,
 5000 , weight(2.75)|difficulty(10)|spd_rtng(100) | weapon_length(120)|swing_damage(55 , cut) | thrust_damage(30 ,  pierce),imodbits_sword_high ],
["blessed_bow",         "Blessed Bow", [("long_bow",0),("long_bow_carry",ixmesh_carry)], itp_type_bow |itp_primary|itp_two_handed ,itcf_shoot_bow|itcf_carry_bow_back, 1450 , weight(1.5)|difficulty(5)|spd_rtng(90) | shoot_speed(60) | thrust_damage(32 ,  pierce),imodbits_bow ],
["sharp_arrows","Sharp Arrows", [("piercing_arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_c", ixmesh_carry)], itp_type_arrows|itp_bonus_against_shield, itcf_carry_quiver_back_right, 3500,weight(5)|abundance(50)|weapon_length(91)|thrust_damage(6,pierce)|max_ammo(29),imodbits_missile],
["volkman_mail", "Volkman Mail", [("pilgrim_outfit",0)], itp_type_body_armor |itp_covers_legs  ,0, 15000 , weight(10)|abundance(100)|head_armor(0)|body_armor(45)|leg_armor(13)|difficulty(7) ,imodbits_cloth ],
["adonis_scimitar",         "Adonis Scimitar", [("scimeter",0),("scab_scimeter", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 10800 , weight(1.5)|difficulty(12)|spd_rtng(130) | weapon_length(97)|swing_damage(50 , cut) | thrust_damage(0 ,  pierce),imodbits_sword_high ],
["adonis_helmet", "Adonis Helmet", [("maciejowski_helmet_new",0)], itp_type_head_armor|itp_covers_head,0, 12400 , weight(2.50)|abundance(100)|head_armor(70)|body_armor(0)|leg_armor(0)|difficulty(12) ,imodbits_plate ],
["adonis_surcoat", "Adonis Surcoat", [("heraldic_armor_a",0)], itp_type_body_armor  |itp_covers_legs ,0,
 30000 , weight(20)|abundance(100)|head_armor(0)|body_armor(75)|leg_armor(25)|difficulty(12) ,imodbits_armor,
["volkman_coif", "Volkman Coif", [("pilgrim_hood",0)], itp_type_head_armor  ,0, 9000 , weight(2.5)|abundance(100)|head_armor(43)|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ],
["redemption_sword", "Redemption Sword", [("broadsword",0),("scab_broadsword", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 5000 , weight(3)|difficulty(10)|spd_rtng(100) | weapon_length(101)|swing_damage(50 , cut) | thrust_damage(35 ,  pierce),imodbits_sword_high ],
["fanatical_shield", "Sacred Shield of the Fanatic", [("shield_round_b",0)],itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,  6000 , weight(4)|hit_points(1000)|body_armor(15)|spd_rtng(100)|weapon_length(50),imodbits_shield ],
["plate_kuraymo", "Armour of the Kuraymos", [("plate_armor",0)], itp_type_body_armor  |itp_covers_legs ,0,
 15000 , weight(15)|abundance(100)|head_armor(0)|body_armor(57)|leg_armor(35)|difficulty(8) ,imodbits_plate ],
["claymore_kuraymo", "Claymore of the Kuraymos", [("b_bastard_sword",0),("scab_bastardsw_b", ixmesh_carry),("b_bastard_sword", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_back|itcf_show_holster_when_drawn,
 5000 , weight(4)|difficulty(10)|spd_rtng(120) | weapon_length(110)|swing_damage(48 , cut) | thrust_damage(38 ,  pierce),imodbits_sword_high ],
["gauntlets_kuraymo","Gauntlets of the Kuraymos",[("gauntlet_b_L",0)], itp_type_hand_armor,0, 5000, weight(0.5)|abundance(100)|body_armor(8)|difficulty(7),imodbits_armor],
["bascinet_kuraymo", "Bascinet of the Kuraymos", [("bascinet_avt_new2",0)], itp_type_head_armor   ,0, 9000, weight(1.5)|abundance(100)|head_armor(57)|body_armor(0)|leg_armor(0)|difficulty(8) ,imodbits_plate ],
["pike_of_the_bear",         "Pike of the Bear", [("spear_a_3m",0)], itp_type_polearm|itp_spear|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_cutting_spear,
 5000 , weight(2.5)|difficulty(0)|spd_rtng(85) | weapon_length(220)|swing_damage(25 , blunt) | thrust_damage(60 ,  pierce),imodbits_polearm ],
["reinforced_jerkin", "Reinforced Jerkin", [("reinf_jerkin",0)], itp_type_body_armor  |itp_covers_legs ,0,
 15000 , weight(18)|abundance(100)|head_armor(0)|body_armor(60)|leg_armor(25)|difficulty(8) ,imodbits_armor ],
["thermos_helm", "Thermos Helm", [("kettle_hat_new",0)], itp_type_head_armor,0, 9000 , weight(2.3)|abundance(100)|head_armor(50)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["nobleman_board_shield", "Nobleman's Board Shield",   [("tableau_shield_pavise_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_board_shield,  6000 , weight(6)|hit_points(800)|body_armor(12)|spd_rtng(100)|weapon_length(84),imodbits_shield,
 [(ti_on_init_item, [(store_trigger_param_1, ":agent_no"),(store_trigger_param_2, ":troop_no"),(call_script, "script_shield_item_set_banner", "tableau_pavise_shield_1", ":agent_no", ":troop_no")])]],

##faction items end

##new items end

And then I added itp_merchandise to quite a few items.

插入代码块:
["pilgrim_disguise", "Pilgrim Outfit", [("pilgrim_outfit",0)], 0| itp_merchandise|itp_type_body_armor |itp_covers_legs |itp_civilian ,0, 25 , weight(2)|abundance(100)|head_armor(0)|body_armor(19)|leg_armor(8)|difficulty(0) ,imodbits_cloth ],
["pilgrim_hood", "Pilgrim Hood", [("pilgrim_hood",0)], 0| itp_merchandise|itp_type_head_armor |itp_civilian  ,0, 35 , weight(1.25)|abundance(100)|head_armor(14)|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ],

["black_greaves", "Black Greaves", [("black_greaves",0)], itp_merchandise|itp_type_foot_armor  | itp_attach_armature,0,
 3561 , weight(3.5)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(35)|difficulty(0) ,imodbits_armor ],
["black_armor", "Black Armor", [("black_armor",0)], itp_merchandise|itp_type_body_armor  |itp_covers_legs ,0,
 9496 , weight(28)|abundance(100)|head_armor(0)|body_armor(57)|leg_armor(18)|difficulty(10) ,imodbits_plate ],
["turret_hat_green", "Barbette", [("turret_hat_g",0)],itp_merchandise|itp_type_head_armor|itp_civilian|itp_fit_to_head,0,70, weight(0.5)|abundance(100)|head_armor(6)|body_armor(0)|leg_armor(0)|difficulty(0),imodbits_cloth],
["head_wrappings","head_wrapping",[("head_wrapping",0)],itp_merchandise|itp_type_head_armor|itp_fit_to_head,0,16, weight(0.25)|head_armor(3),imodbit_tattered | imodbit_ragged | imodbit_sturdy | imodbit_thick],
["court_hat", "Turret Hat", [("court_hat",0)], itp_merchandise|itp_type_head_armor  |itp_civilian|itp_fit_to_head ,0, 80 , weight(0.5)|abundance(100)|head_armor(8)|body_armor(0)|leg_armor(0)|difficulty(0) ,imodbits_cloth ], 
["black_helmet", "Black Helmet", [("black_helm",0)],itp_merchandise| itp_type_head_armor   ,0, 638 , weight(2.75)|abundance(100)|head_armor(50)|body_armor(0)|leg_armor(0)|difficulty(9) ,imodbits_plate ],
["nomad_shield", "Nomad Shield", [("shield_wood_b",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,  12 , weight(2)|hit_points(260)|body_armor(6)|spd_rtng(110)|weapon_length(30),imodbits_shield ],

["plate_covered_round_shield", "Plate_Covered_Round_Shield", [("shield_round_e",0)], itp_merchandise|itp_type_shield, itcf_carry_round_shield,  400 , weight(2)|hit_points(350)|body_armor(8)|spd_rtng(90)|weapon_length(40),imodbits_shield ],
["leather_covered_round_shield", "Leather_Covered_Round_Shield", [("shield_round_d",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,  80 , weight(2.5)|hit_points(310)|body_armor(8)|spd_rtng(96)|weapon_length(40),imodbits_shield ],
["hide_covered_round_shield", "Hide_Covered_Round_Shield", [("shield_round_f",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,  40 , weight(2)|hit_points(260)|body_armor(3)|spd_rtng(100)|weapon_length(40),imodbits_shield ],
["strange_armor",  "Strange Armor", [("samurai_armor",0)], itp_merchandise|itp_type_body_armor  |itp_covers_legs ,0, 1259 , weight(18)|abundance(100)|head_armor(0)|body_armor(38)|leg_armor(19)|difficulty(7) ,imodbits_armor ],
["strange_boots",  "Strange Boots", [("samurai_boots",0)], itp_merchandise|itp_type_foot_armor | itp_attach_armature,0, 465 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(21)|difficulty(0) ,imodbits_cloth ],
["strange_helmet", "Strange Helmet", [("samurai_helmet",0)], itp_merchandise|itp_type_head_armor   ,0, 824 , weight(2)|abundance(100)|head_armor(44)|body_armor(0)|leg_armor(0)|difficulty(7) ,imodbits_plate ],
["strange_sword", "Strange Sword", [("katana",0),("katana_scabbard",ixmesh_carry)], itp_merchandise|itp_type_two_handed_wpn| itp_primary, itc_bastardsword|itcf_carry_katana|itcf_show_holster_when_drawn, 679 , weight(2.0)|difficulty(9)|spd_rtng(108) | weapon_length(95)|swing_damage(32 , cut) | thrust_damage(18 ,  pierce),imodbits_sword ],
["strange_great_sword",  "Strange Great Sword", [("no_dachi",0),("no_dachi_scabbard",ixmesh_carry)], itp_merchandise|itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back|itcf_show_holster_when_drawn, 920 , weight(3.5)|difficulty(11)|spd_rtng(92) | weapon_length(125)|swing_damage(38 , cut) | thrust_damage(0 ,  pierce),imodbits_axe ],
["strange_short_sword", "Strange Short Sword", [("wakizashi",0),("wakizashi_scabbard",ixmesh_carry)], itp_merchandise|itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_wakizashi|itcf_show_holster_when_drawn, 321 , weight(1.25)|difficulty(0)|spd_rtng(108) | weapon_length(65)|swing_damage(25 , cut) | thrust_damage(19 ,  pierce),imodbits_sword ],
["court_dress", "Court Dress", [("court_dress",0)], itp_type_body_armor|itp_covers_legs|itp_civilian   ,0, 348 , weight(4)|abundance(100)|head_armor(0)|body_armor(14)|leg_armor(4)|difficulty(0) ,imodbits_cloth ],
["rich_outfit", "Rich Outfit", [("merchant_outf",0)], itp_merchandise|itp_type_body_armor|itp_covers_legs|itp_civilian   ,0, 348 , weight(4)|abundance(100)|head_armor(0)|body_armor(16)|leg_armor(4)|difficulty(0) ,imodbits_cloth ],
["khergit_guard_armor", "Khergit Guard Armor", [("lamellar_armor_a",0)], itp_merchandise|itp_type_body_armor|itp_covers_legs   ,0, 348 , weight(14)|abundance(100)|head_armor(0)|body_armor(34)|leg_armor(8)|difficulty(0) ,imodbits_armor ],
["leather_steppe_cap_c", "Leather Steppe Cap", [("leather_steppe_cap_c",0)], itp_merchandise|itp_type_head_armor   ,0, 51 , weight(2)|abundance(100)|head_armor(18)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["felt_steppe_cap", "Felt Steppe Cap", [("felt_steppe_cap",0)], itp_merchandise|itp_type_head_armor   ,0, 237 , weight(2)|abundance(100)|head_armor(16)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["khergit_war_helmet", "Khergit War Helmet", [("khergit_war_helmet",0)], itp_merchandise|itp_type_head_armor   ,0, 322 , weight(2)|abundance(100)|head_armor(31)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["khergit_helmet", "Khergit Helmet", [("khergit_guard_helmet",0)], itp_merchandise|itp_type_head_armor   ,0, 361 , weight(2)|abundance(100)|head_armor(33)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["khergit_sword", "Khergit Sword", [("khergit_sword",0),("khergit_sword_scabbard", ixmesh_carry)], itp_merchandise|itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 183 , weight(1.25)|difficulty(0)|spd_rtng(100) | weapon_length(97)|swing_damage(23 , cut) | thrust_damage(14 ,  pierce),imodbits_sword ],
["khergit_guard_boots",  "Khergit Guard Boots", [("lamellar_boots_a",0)], itp_merchandise|itp_type_foot_armor | itp_attach_armature,0, 254 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(20)|difficulty(0) ,imodbits_cloth ],
["khergit_guard_helmet", "Khergit Guard Helmet", [("lamellar_helmet_a",0)], itp_merchandise|itp_type_head_armor   ,0, 433 , weight(2)|abundance(100)|head_armor(36)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["khergit_cavalry_helmet", "Khergit Cavalry Helmet", [("lamellar_helmet_b",0)], itp_merchandise|itp_type_head_armor   ,0, 433 , weight(2)|abundance(100)|head_armor(36)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],

["black_hood", "Black Hood", [("hood_black",0)], itp_type_head_armor|itp_merchandise   ,0, 193 , weight(2)|abundance(100)|head_armor(18)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["light_leather", "Light Leather", [("light_leather",0)], itp_type_body_armor|itp_covers_legs|itp_merchandise   ,0, 352 , weight(5)|abundance(100)|head_armor(0)|body_armor(26)|leg_armor(7)|difficulty(0) ,imodbits_armor ],
["light_leather_boots",  "Light Leather Boots", [("light_leather_boots",0)], itp_type_foot_armor |itp_merchandise| itp_attach_armature,0, 91 , weight(1)|abundance(100)|head_armor(0)|body_armor(0)|leg_armor(15)|difficulty(0) ,imodbits_cloth ],
["mail_and_plate", "Mail and Plate", [("mail_and_plate",0)], itp_merchandise|itp_type_body_armor|itp_covers_legs   ,0, 593 , weight(16)|abundance(100)|head_armor(0)|body_armor(34)|leg_armor(12)|difficulty(0) ,imodbits_armor ],
["light_mail_and_plate", "Light Mail and Plate", [("light_mail_and_plate",0)], itp_merchandise|itp_type_body_armor|itp_covers_legs   ,0, 532 , weight(10)|abundance(100)|head_armor(0)|body_armor(32)|leg_armor(12)|difficulty(0) ,imodbits_armor ],

["byzantion_helmet_a", "Byzantion Helmet", [("byzantion_helmet_a",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["magyar_helmet_a", "Magyar Helmet", [("magyar_helmet_a",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["rus_helmet_a", "Rus Helmet", [("rus_helmet_a",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["sipahi_helmet_a", "Sipahi Helmet", [("sipahi_helmet_a",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["shahi", "Shahi", [("shahi",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],
["rabati", "Rabati", [("rabati",0)], itp_merchandise|itp_type_head_armor   ,0, 278 , weight(2)|abundance(100)|head_armor(20)|body_armor(0)|leg_armor(0) ,imodbits_cloth ],

And uncommented these items:
插入代码块:
["nordic_sword", "Nordic Sword", [("viking_sword",0),("scab_vikingsw", ixmesh_carry)], itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 142 , weight(1.5)|difficulty(0)|spd_rtng(99) | weapon_length(98)|swing_damage(27 , cut) | thrust_damage(19 ,  pierce),imodbits_sword ],
["arming_sword", "Arming Sword", [("b_long_sword",0),("scab_longsw_b", ixmesh_carry)], itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 156 , weight(1.5)|difficulty(0)|spd_rtng(101) | weapon_length(100)|swing_damage(25 , cut) | thrust_damage(22 ,  pierce),imodbits_sword ],
["sword",         "Sword", [("long_sword",0),("scab_longsw_a", ixmesh_carry)], itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 148 , weight(1.5)|difficulty(0)|spd_rtng(100) | weapon_length(102)|swing_damage(26 , cut) | thrust_damage(23 ,  pierce),imodbits_sword ],
["broadsword",         "Broadsword", [("broadsword",0),("scab_broadsword", ixmesh_carry)], itp_type_one_handed_wpn|itp_merchandise|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 122 , weight(2.5)|difficulty(8)|spd_rtng(91) | weapon_length(101)|swing_damage(27 , cut) | thrust_damage(0 ,  pierce),imodbits_sword ],
["bastard_sword", "Bastard Sword", [("bastard_sword",0),("scab_bastardsw", ixmesh_carry)], itp_type_two_handed_wpn|itp_merchandise| itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn, 279 , weight(2.25)|difficulty(9)|spd_rtng(102) | weapon_length(120)|swing_damage(33 , cut) | thrust_damage(27 ,  pierce),imodbits_sword ],
["bardiche",         "Bardiche", [("two_handed_battle_axe_d",0)], itp_type_two_handed_wpn|itp_merchandise| itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_nodachi|itcf_carry_axe_back,
 311 , weight(4.5)|difficulty(10)|spd_rtng(87) | weapon_length(102)|swing_damage(50 , cut) | thrust_damage(0 ,  pierce),imodbits_axe ],
["greaat_axe",         "Great_Axe", [("two_handed_battle_axe_e",0)], itp_type_two_handed_wpn|itp_merchandise| itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_nodachi|itcf_carry_axe_back,
 446 , weight(4.5)|difficulty(10)|spd_rtng(90) | weapon_length(96)|swing_damage(51 , cut) | thrust_damage(0 ,  pierce),imodbits_axe ],
["great_bardiche",         "Great_Bardiche", [("two_handed_battle_axe_f",0)], itp_merchandise|itp_type_two_handed_wpn|itp_always_loot|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_nodachi|itcf_carry_axe_back,
 617 , weight(4.5)|difficulty(10)|spd_rtng(90) | weapon_length(116)|swing_damage(47 , cut) | thrust_damage(0 ,  pierce),imodbits_axe ],
["round_shield", "Round Shield", [("shield_round_c",0)], itp_merchandise|itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,  64 , weight(2)|hit_points(400)|body_armor(1)|spd_rtng(100)|weapon_length(50),imodbits_shield ],

I'm not quite sure about the last spoiler, but from what I can rememeber that's everything I uncommented. Sorry for long post and thanks =]
 
Lol yeah I suppose  :twisted: but to be honest I think these are kinda simple edits.... I don't know how I could have made it so that itm_siege_supply got affected  :shock:
 
后退
顶部 底部