void main()
{
    SetPlotFlag(OBJECT_SELF, FALSE);
    int nChange = GetLocalInt(OBJECT_SELF,"MEDUSAMORPH");
    effect eShape = EffectPolymorph(POLYMORPH_TYPE_MEDUSA); //Use one of the polymorph constants here
    effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
    if(nChange == 0)
    {
        ApplyEffectToObject(DURATION_TYPE_PERMANENT, eShape, OBJECT_SELF);
        ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetLocation(OBJECT_SELF));
        SetLocalInt(OBJECT_SELF, "MEDUSAMORPH", 1);
        DelayCommand(0.5, ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE));
    }
}
