generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
15
_module/nss/vat_givespcdesc.nss
Normal file
15
_module/nss/vat_givespcdesc.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user