Catman030 Posted September 3, 2014 Share Posted September 3, 2014 I've been looking for an if statement that looks to see if a certain magic effect is active on the player, and if it is, to deactivate it. Does anyone know what i'm looking for? Thanks Link to comment Share on other sites More sharing options...
JackFuzz Posted September 3, 2014 Share Posted September 3, 2014 I've been looking for an if statement that looks to see if a certain magic effect is active on the player, and if it is, to deactivate it. Does anyone know what i'm looking for? Thanks MagicEffect property AlchFortifyHealRate autoMagicEffect property DA11AbFortifyHealRate autoMagicEffect property EnchFortifyHealRateConstantSelf autoMagicEffect property RaceArgonianFortifyHealthRate autoMagicEffect property FoodRestoreHealthDuration auto if (Game.GetPlayer().HasMagicEffect(DA11AbFortifyHealRate)) endIf Link to comment Share on other sites More sharing options...
Catman030 Posted September 3, 2014 Author Share Posted September 3, 2014 I'll give it a shot. Thanks! Link to comment Share on other sites More sharing options...
Catman030 Posted September 3, 2014 Author Share Posted September 3, 2014 (edited) Okay, the "if" statement works, but is there anything I can use to cancel the effect im looking for if its found to be active? If it helps, here's my code. MagicEffect property armoreffect auto Event OnUnEquipped(Actor akActor) if (Game.GetPlayer().HasMagicEffect(armoreffect)) Game.GetPlayer().RemoveSpell(armoreffect) endif EndEvent And i get this when I try to compile: "type mismatch on parameter 1 (did you forget a cast?)" Edited September 3, 2014 by Catman030 Link to comment Share on other sites More sharing options...
JackFuzz Posted September 5, 2014 Share Posted September 5, 2014 try the solutions presented in this thread: http://forums.nexusmods.com/index.php?/topic/593985-papyrus-remove-magic-effect/ Link to comment Share on other sites More sharing options...
Catman030 Posted September 5, 2014 Author Share Posted September 5, 2014 @JackFuzz, I have seen that thread before, but unfortunately I was looking for a non-skse solution. No worries though, i'm working on a workaround for now. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts