void main() { object oPede1 = GetObjectByTag("MagicalPedestal1"); object oRune1 = GetItemPossessedBy(oPede1, "RuneStoneI"); if(GetTag(oRune1) != "RuneStoneI") return; object oPede2 = GetObjectByTag("MagicalPedestal2"); object oRune2 = GetItemPossessedBy(oPede2, "RuneStoneII"); if(GetTag(oRune2) != "RuneStoneII") return; object oPede3 = GetObjectByTag("MagicalPedestal3"); object oRune3 = GetItemPossessedBy(oPede3, "RuneStoneIII"); if(GetTag(oRune3) != "RuneStoneIII") return; object oPede4 = GetObjectByTag("MagicalPedestal4"); object oRune4 = GetItemPossessedBy(oPede4, "RuneStoneIV"); if(GetTag(oRune4) != "RuneStoneIV") return; object oPede5 = GetObjectByTag("MagicalPedestal5"); object oRune5 = GetItemPossessedBy(oPede5, "RuneStoneV"); if(GetTag(oRune5) != "RuneStoneV") return; { string sAncient = "ancientamulet"; object oGreater = GetObjectByTag("GreaterPedestal"); CreateItemOnObject(sAncient, OBJECT_SELF, 1); ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 1.0, 6000.0); effect eRes = EffectVisualEffect(VFX_IMP_RESTORATION_GREATER); location lRes = GetLocation(oGreater); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eRes, lRes, 1.0f); effect eHeal = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY); location lHeal1 = GetLocation(oPede1); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal1, 1.0f); DestroyObject(oRune1, 0.0); location lHeal2 = GetLocation(oPede2); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal2, 1.0f); DestroyObject(oRune2, 0.0); location lHeal3 = GetLocation(oPede3); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal3, 1.0f); DestroyObject(oRune3, 0.0); location lHeal4 = GetLocation(oPede4); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal4, 1.0f); DestroyObject(oRune4, 0.0); location lHeal5 = GetLocation(oPede5); ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eHeal, lHeal5, 1.0f); DestroyObject(oRune5, 0.0); } }