forums | blogs | polls | tutorials | downloads | rules | help

Add new comment

Having Your Item Not Be Part Of The PCONTENT Pool

Having Your Item Not Be Part Of The PCONTENT Pool

We will use the Simple Sword template, from the Creating A Simple Item - Sword tutorial, and modify it here. All items are assigned this value the same way:

1. Under the [common] block we will assign a new field that is is_pcontent_allowed = false;. Set this to true or false depending on if you want your item to be able to be considered for the pcontent pool. That means wether or not the monsters will drop it and the smiths will sell it randomly. If you set this to false, your item will never drop in the game unless you assign it to drop by force (addressed in a later tutorial).


[t:template,n:nivisec_simple_sword]
{
	doc = "Dragon Lords Sword";
	specializes = base_sword;
	[aspect]
	{
		model = m_w_swd_055;
		gold_value = 1000;
	}
	[attack]
	{
		f damage_max = 407;
		f damage_min = 307;
	}
	[common]
	{
		is_pcontent_allowed = false;
		pcontent_special_type = rare, unique, normal;
		screen_name = "Steel of the Dragon Lords";
	}
	[gui]
	{
		can_sell = false;
		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)

tutorials: