Jump to content

Question about timed Perks/Effects.


Recommended Posts

Greetings.

 

I`m working on a mod where player character enters an area and gets added a perk. I have the triggers and the perk all done, but i`m wondering how to make the perk temporary.

Similar to the Lovers Embrace and Well Rested perks.

 

I want to make it so that if the player is in the trigger area the perk gets applied (I got this part covered) and when the player leaves the area the perk gets removed instantly or over some time (like the Lovers Embrace and Well Rested).

 

So i`m wondering, how do the dispel effects work in the CK. I tried looking how Lovers Embrace and Well Rested are constructed, but i couldn't completely figure out how they are applied.

Is the removal done with a separate script or a quest?

 

Could anybody point me in the right direction? Are there any tutorials or materials that i could use to learn more?

 

Any help would be appreciated.

Thank you.

 

EDIT: Figured it out. I just added another script inside the perk that keeps removing it.

EDIT: I had it working for a moment, but i messed something up. Back to start.

EDIT: I have it now . . . it was so simple.

Edited by Guest
Link to comment
Share on other sites

  • Recently Browsing   0 members

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