Setting cost of armor in multiplayer

正在查看此主题的用户

Grendal-777

Veteran
I apologize if this has been discussed but I can't find it anywhere ironically. I know I am not the first person to have this problem and surely its not so easy I am over thinking it... please direct me and I will delete this topic.

I know how to add new multiplayer armors, clothing, etc. I can add multiples but they all just say [default] and are free.
How do I set prices for them so players can buy them as they play and equip on new spawn?
ie. when you click torso armor box and get a pull out menu of armors you can buy.. how do I set those prices?

Also is it possible to keep armor equipped when you die and re-spawn so you only have to buy it once?
 
Grendal-777 说:
I know how to add new multiplayer armors, clothing, etc. I can add multiples but they all just say [default] and are free.
How do I set prices for them so players can buy them as they play and equip on new spawn?
ie. when you click torso armor box and get a pull out menu of armors you can buy.. how do I set those prices?
http://forums.taleworlds.com/index.php/topic,105928.0.html
Grendal-777 说:
Also is it possible to keep armor equipped when you die and re-spawn so you only have to buy it once?
I am wondering about this myself, but you need module system for this one. That is for sure.
 
You have to add them in module_scripts, not in module_troops, just search for something like "lamellar_armor" and plonk your armor that may not be defined in there.

You then have to search for the troop you wish to add the item to, and copy-paste the last entry, and rename the item to the one you wish to add.

To change the price, go to module_items, and find the item you wish to set the price of, and change the number usually on the second line of the item to the price you want it to be. Either that or go to the top of the multiplayer segment in module_scripts, and you can set the item price modifier for certain factions. If you search steppe horse you'll probably find it.

Sorry about the weirdness of the post. Really tired.  :neutral:

 
Thanks for the guidance it got me thinking right and I figured it out finally.

Whatever weapons/armor you declare in scripts for your multiplayer troop here:
  (call_script, "script_multiplayer_set_item_available_for_troop", "itm_scale_gauntlets", "trp_sarranid_mamluke_multiplayer"),
will use the cost associated with the item from the items file as long as you don't add the item as a starting item under troops file:
["sarranid_mamluke_multiplayer","Sarranid Mamluke","Sarranid Mamluke",tf_mounted|tf_guarantee_all,0,0,fac_kingdom_6,
  [itm_arabian_sword_a,itm_lance,itm_tab_shield_small_round_a,
    itm_sarranid_cloth_robe, itm_sarranid_boots_b,itm_saddle_horse],
  def_attrib_multiplayer|level(19),wpe(110,90,60,110),knows_riding_5|knows_ironflesh_3|knows_power_strike_2|knows_shield_3|knows_power_throw_2,vaegir_face_young_1, vaegir_face_older_2],
If you add it as a starter item it will be free.. kinda handy. You can have clothing type items players can pick to change appearance for free, then charge them for armors. :grin:

Still working on armor that doesn't have to be repurchased when you die if anyone has help there or know where I need to be looking.
 
后退
顶部 底部