物品 Item
例子
Source: Modules/SandBoxCore/ModuleData/spitems.xml
<Item id="headscarf_d"
name="{=wW3iouiU}Hijab"
mesh="headscarf_d"
culture="Culture.aserai"
weight="0.5"
appearance="0.5"
Type="HeadArmor">
<ItemComponent>
<Armor head_armor="3"
has_gender_variations="false"
hair_cover_type="all"
modifier_group="cloth_unarmoured"
material_type="Cloth"
beard_cover_type="type3" />
</ItemComponent>
<Flags Civilian="true"
UseTeamColor="true" />
</Item>Parent node
Child nodes
Attributes
名称 name | 网格 mesh | 文化 culture | 重量 weight | 外观 appearance | 类型 Type | 多人模式物品 multiplayer_item | 子类型 subtype | 难度 difficulty | (?) lod_atlas_index | 是否商品 is_merchandise | 模型名 body_name | (?) recalculate_body | (?) prefab | 价值 value | 收起位置 item_holsters | 弹药位置偏移 AmmoOffset | (?) holster_position_shift | (?) holster_body_name | 容器模型 holster_mesh | 容器(带武器)模型 holster_mesh_with_weapon | 投射物模型 flying_mesh | 盾牌碰撞模型 shield_body_name | (?) using_tableau | (?) has_lower_holster_priority | 物品类别 item_category | 是否食物 IsFood
name
类型:
string范例:{=wW3iouiU}Hijab注意: 例子中的前缀{=}是string.txt中定义的翻译文本ID 尚不知晓翻译文本ID是否为自动生成的mesh
类型:
string范例:headscarf_d字符串为模型的ID 尚未找出模型的存储位置culture
类型:
string可能的值:'Culture.aserai', 'Culture.sturgia', 'Culture.battania', 'Culture.looters', 'Culture.khuzait', 'Culture.vlandia', 'Culture.empire', 'Culture.neutral_culture'范例:Culture.aseraiweight
类型:
double范例:0.5appearance
类型:
double范例:0.5待办: 找出这个属性的具体作用Type
类型:
ArmourType可能的值:'HeadArmor', 'headArmor', 'Cape', 'BodyArmor', 'HandArmor', 'LegArmor', 'OneHandedWeapon', 'Bow', 'Polearm', 'Crossbow', 'Thrown', 'Arrows', 'Bolts', 'Shield', 'Horse', 'HorseHarness', 'Goods', 'Banner', 'Animal'范例:HeadArmormultiplayer_item
类型:
boolean可能的值:'true', 'false'范例:falsesubtype
类型:
string可能的值:'head_armor', 'body_armor', 'bow', 'two_handed_wpn', 'arrows', 'horse'范例:head_armor待办: 查明作用difficulty
类型:
int可能的值:0-100范例:80lod_atlas_index
类型:
int范例:2待办: 查明作用is_merchandise
类型:
boolean范例:false定义这件物品是否是商品(是否买得到)body_name
类型:
id范例:bo_mace_a可能是武器的碰撞模型? 待办: 查明作用recalculate_body
类型:
boolean可能的值:'true', 'false'范例:false待办: 查明作用prefab
类型:
id范例:torch_a_wm_only_flame待办: 查明作用 可能是粒子效果?value
类型:
int范例:150市场均价item_holsters
类型:
string可能的值:'abdomen_left', 'bow_back_2:bow_hip:bow_hip_2:bow_back', 'bow_back:bow_back_2:bow_hip:bow_hip_2', 'sword_left_hip', 'polearm_back:polearm_back_2', 'bow_hip:bow_hip_2:bow_back:bow_back_2', 'crossbow_back:bow_hip:mace_right_hip:bow_hip_2', 'throwing_stone:throwing_stone_2', '', 'quiver_back_top:quiver_back_top_2', 'quiver_back_middle:quiver_bolts_2:quiver_bolts', 'quiver_back_lower:quiver_back_lower_2', 'quiver_back_middle:quiver_bolts:quiver_bolts_2', 'quiver_bolts:quiver_bolts_2:quiver_back_middle:quiver_back_top', 'quiver_back_middle:quiver_back_top:quiver_bolts:quiver_bolts_2', 'shield_round:shield_4', 'shield_oval:shield_4:shield_3:shield_2', 'shield:shield_2:shield_3:shield_4', 'shield_kite:shield_2:shield_3:shield_4'范例:abdomen_left收起状态下的携带位置AmmoOffset
类型:
vector3d范例:0.0, 0.02131, 0.24675投射物的起始位置?holster_position_shift
类型:
vector3d范例:0.0,0.0,-0.0待办: 查明作用(某种位置偏移)holster_body_name
类型:
string范例:bo_axe_short待办: 查明作用(模型)holster_mesh
类型:
string范例:stone_holster比如箭袋的模型holster_mesh_with_weapon
类型:
string范例:stone_holster比如插着剑的剑鞘的模型flying_mesh
类型:
string范例:arrow_bl_flying投射物模型shield_body_name
类型:
string范例:bo_sturgia_shield_a盾牌的碰撞模型using_tableau
类型:
boolean范例:trueWhether the item has a tableau(不确定Tableau是什么)has_lower_holster_priority
类型:
boolean范例:true待办: 查明作用item_category
类型:
id可能的值:'horse', 'sumpter_horse', 'war_horse', 'wool', 'silver', 'jewelry', 'salt', 'cotton', 'flax', 'clay', 'pottery', 'linen', 'leather', 'velvet', 'cheese', 'butter', 'fish', 'grape', 'date_fruit', 'olives', 'beer', 'wine', 'oil', 'fur', 'animal', 'sheep', 'cow', 'hog'范例:horse交易界面的类型IsFood
类型:
boolean范例:true能不能吃
Last updated
Was this helpful?