For a DM device to remove polymorph, you can use a snippet like this for your object:
object oItem = GetItemActivated();
object oPC = GetItemActivator();
oTarget = GetItemActivatedTarget();
if (GetTag(oItem) == "DM_CANCELPOLY" && GetIsDM(oPC))
{
RemoveSpecificEffect(EFFECT_TYPE_POLYMORPH, oTarget);
}
This code only assumes you have an item tagged DM_CANCELPOLY in your module, and would be inserted in the OnActivateItem event (and modified to work with whatever you already have in there.)
Hope that helps!
Modifié par Khuzadrepa, 24 mai 2011 - 12:09 .