PGCC_PRC8/_module/nss/vat_givespcdesc.nss

16 lines
477 B
Plaintext
Raw Normal View History

2024-10-09 14:17:22 -04:00
void main()
{
object oPC = GetPCSpeaker();
object oPCDesc = GetItemPossessedBy(oPC, "IM_PCDESC");
/// If PC already has a PC description scroll, remove it.
if (GetItemPossessedBy(oPC, "IM_PCDESC") != OBJECT_INVALID) DestroyObject(oPCDesc);
/// Create the scroll and transfer the description
oPCDesc = CreateItemOnObject("im_pcdesc", oPC, 1);
SetName(oPCDesc, GetName(oPC) + "'s Description");
SetDescription(oPCDesc, GetDescription(oPC));
}