//:://///////////////////////////////////////////// //:: Name x2_sp_is_sblue //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Ioun Stone Power: Scarlet Blue Gives the user 6 minutes worth worth of +1 Intelligence bonus. Cancels any other Ioun stone powers in effect on the PC. */ //::////////////////////////////////////////////// //:: Created By: Keith Warner //:: Created On: Dec 13/02 //::////////////////////////////////////////////// void main() { //variables effect eVFX, eBonus, eLink, eEffect; //from any other ioun stones eEffect = GetFirstEffect(OBJECT_SELF); while (GetIsEffectValid(eEffect) == TRUE) { if(GetEffectSpellId(eEffect) > 553 && GetEffectSpellId(eEffect) < 561) { RemoveEffect(OBJECT_SELF, eEffect); } eEffect = GetNextEffect(OBJECT_SELF); } //Apply new ioun stone effect eVFX = EffectVisualEffect(500); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eVFX, OBJECT_SELF, 5.0); eVFX = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE); eBonus = EffectImmunity(IMMUNITY_TYPE_FEAR); eLink = EffectLinkEffects(eVFX, eBonus); ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, OBJECT_SELF, 60.0); }