Add new comment
Adding Your Items To The PCONTENT Pool (Random Drops/Sellings at Vendors) |
||
Adding Your Items To The PCONTENT Pool (Random Drops/Sellings at Vendors)We will use the Simple Sword template, from the Creating A Simple Item - Sword tutorial, and modify it here. All items are added to pcontent the same way: 1. First we need to specify an optional type of pcontent drop under the [common] block. If you do not include this line, it defaults to dropping only "normal". It is in the form of pcontent_special_type = TYPE(S);. You can replace types with rare, unique, and/or normal. Each one seperated by a comma if you include more than one type. [t:template,n:nivisec_simple_sword]
{
doc = "Dragon Lords Sword";
specializes = base_sword;
[aspect]
{
model = m_w_swd_055;
}
[attack]
{
f damage_max = 407;
f damage_min = 307;
}
[common]
{
pcontent_special_type = rare, unique, normal;
screen_name = "Steel of the Dragon Lords";
}
[gui]
{
active_icon = b_gui_ig_i_ic_swd_005;
equip_requirements = strength:30, dexterity:45;
inventory_height = 4;
inventory_width = 1;
inventory_icon = b_gui_ig_i_w_swd_088;
}
[pcontent]
{
[base]
{
f modifier_max = 14.000000;
f modifier_min = 7.000000;
}
}
}The Completed Sword Template template 1 (the original text for this tutorial was written by Nivisec, and is published here with permission) |
||
|
» |
||