PoA_PRC8/_module/nss/getaway.nss

19 lines
297 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
object oSelf = OBJECT_SELF;
//Put this script OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "secret1")== OBJECT_INVALID)
{
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionMoveAwayFromObject(oSelf));
}
}