Jump to content

How does one implement periodic effects?


RygtY
 Share

Recommended Posts

I have a good idea so far as to how one can implement a system of status effects.

 

But in the special case of status effects that do healing over time or damage over time, I am somewhat stumped.

 

Probably because the buff it isn't just modifying character stats, but actually performing the action of hurt or healing a character, which is something I can more easily understand if it was a player or NPC firing off such an event.

 

If you can help me in anyway, please try to give me an answer in a language independent manner.

Link to comment
Share on other sites

I'm just learning this part too. I'm looking into timer function to create over-time heal or damage effects.

 

If you have the FpsPlayer.lua - have a look at the movement function which uses the timer function to play a sound for footsteps.

 

In theory, this same method could be used to work it into a buff or debuff. Thats where I'd start!

 

Any specifics however for it i'm not sure yet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...