Jump to content

Need Help Implementing Cooldown Effect


Thromnambular

Recommended Posts

As part of a mod I'm making, I'm trying to add a perk that applies the same effect as a stealth boy to you for about 5 seconds every time you zoom in with a weapon, but has a 30 second cooldown.

 

My first instinct was to make a debuff that is applied to you every time you zoom in and only apply the cloaking effect if you do not have that debuff on.

But...I'm new to modding, so I've had no success implementing this so far despite my best efforts.

 

I took the debuff from Super Stimpaks and duplicated/modified it for the purpose of this perk, including a script that I think applies the debuff to you.

 

 

scn ScopeStealthEffectSCRIPT

begin ScriptEffectStart
CastImmediateOnSelf ScopeStealthDebuffEffect
end

begin ScriptEffectFinish
ApplyImageSpaceModifier Addiction01ISFX
end

 

I'm not sure what the last bit of it even does(my guess is that it's applying the visual effect some medicines have on your screen,) but I left it in thinking it might break otherwise.

I have some programming experience (not scripting, just with C++) but absolutely no previous modding experience.

If anyone would be nice enough to steer me in the right direction here, I'd be very grateful. :thumbsup:

Let me know if you want to see anything in my mod's .esm file, I can provide screenshots of the effect forms or even provide you with the file itself if need be.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...