UW2_PRC8/_module/nss/queenturnspc.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

38 lines
699 B
Plaintext

//Created by Guile 01/28/07
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
object oItem;
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="gemofteleportation") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="gemofteleporting") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
object oTarget;
oTarget = oPC;
effect eEffect;
eEffect = EffectTurned();
eEffect = SupernaturalEffect(eEffect);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}