PGCC_PRC8/_module/nss/vat_givespcdesc.nss
Jaysyn904 e51634d39b Initial upload
Initial upload.
2024-10-09 14:17:22 -04:00

16 lines
477 B
Plaintext

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));
}