morrowind1979 Posted September 28, 2017 Share Posted September 28, 2017 I am trying to modify the chaurus poison spit spell to add Bonebreak fever, Rockjoint and Brainrot to the player every time teh projectile hits the player. When the spellhits teh player ingame the 3 messages are displayed saying the 3 disease spells have been added but when I check the active magic effects in the UI no diseases are present or only one disease showsin the UI and once cure them with a cure disease potion the diseases are nolonger appliedto the player when the projectile hits. Here is my script: Scriptname DMPestilenceSpellScript extends ActiveMagicEffect ;======================================================================================; ; PROPERTIES / ;=============/ ImageSpaceModifier property OnStartImodFX auto {main isMod for spell (MUST BE ANIMATED IMOD)} ImageSpaceModifier property OnFinishImodFX auto {Optional ending Imod for spell (MUST BE ANIMATED IMOD)} SPELL Property DS1 Auto SPELL Property DS2 Auto SPELL Property DS3 Auto Float Property fImodStrength = 1.0 auto {IsMod Strength from 0.0 to 1.0} bool bPlayerOnly Bool bIsOkToPlay actor TargetActor actor CasterActor ;======================================================================================; ; EVENTS / ;=============/ Event OnEffectStart(Actor Target, Actor Caster) TargetActor = Target CasterActor = Caster if TargetActor == game.GetPlayer() OnStartImodFX.apply(fImodStrength) utility.wait(5.0) bIsOkToPlay = True endif EndEvent Event OnEffectFinish(Actor Target, Actor Caster) game.GetPlayer().addspell(DS1) game.GetPlayer().addspell(DS2) game.GetPlayer().addspell(DS3) if bIsOkToPlay if OnFinishImodFX OnFinishImodFX.apply(fImodStrength) endif endif endEvent Does anyone know whats wrong? Link to comment Share on other sites More sharing options...
morrowind1979 Posted September 28, 2017 Author Share Posted September 28, 2017 Never mind I found the issue. I stupidly forgot to remove the random percentage chance condition from my duplicated disease magic effects. Doh!!! LOL Gotit working now Link to comment Share on other sites More sharing options...
Recommended Posts