MMD_PRC8/_module/nss/calcmodvalue1.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

22 lines
490 B
Plaintext

#include "inc_itemprop001"
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetLocalObject(oPC, "MODIFY_ITEM");
itemproperty ip = GetNewProperty(oItem);
//Copy item and modify to get new value
if ( GetIsItemPropertyValid(ip))
{
object oCopy = CopyItem(oItem, OBJECT_SELF);
CustomAddProperty(oCopy, ip);
SetLocalObject(oPC, "MODIFY_COPY", oCopy);
}
else
SendMessageToPC(oPC, "ERROR: Invalid Property");
}