Joshlaryeth Posted November 17, 2020 Share Posted November 17, 2020 So, creating a dummy magic effect which fires alongside the magic effect we'd like to have a cooldown on and having a condition of the latter magic effect: ('HasMagicEffect' 'Dummy' != 1) should work and the duration of the dummy effect would effectively be the cooldown for the spell's primary effect to work again. However, Say my magiceffect is a valuemodifier with a duration. The Dummy Effect then cancels out this magiceffect. I'd like to know a workaround for this. I'd also like to know what the ideal type for the dummy effect should be to avoid it not applying in different contexts. Essentially, if anyone could write me an activemagiceffect script that disallows a spell to fire for a set duration, I'd be eternally grateful. Thank you. Link to comment Share on other sites More sharing options...
foamyesque Posted November 17, 2020 Share Posted November 17, 2020 My approach is to have a dummy effect, as you do, that tracks the cooldown. The other piece is having a second spell, with a magic effect that has a script that will cast the first spell whenever the effect is triggered. Then you put whatever conditions you want on that magic effect at the spell level. I used this, for example, to simulate the once-a-day restriction on power usage when I was making a mod allowing NPCs to use the same racial powers as the player. Link to comment Share on other sites More sharing options...
Recommended Posts