Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Timers, Reliability, and Lag (Oh My!)


Recommended Posts

Ok, say I want to use my player development system for interation with health regain.

I know i can get player hp and max hp(might not need this).
I could possibly get the two every like 5 seconds or so.
put current hp in a variable(if the scripts is constantly looping while playing then i should only need to assign it right?)
so if current hp is less than previous current hp then
the differnece is equal to x
I increase counter for defense by X.(basically update an ini value by X)
else we update current as to know the change next check.
check again

Is this possible?
Think it will lag like hell?
Might it not be reliable?(any idea how it could be abused other than casting self damaging spells…)

It will be my first script with a loop and with timers so it will be a nice challenge if people think its possible. But then again maybe someone has a better approach to my issue.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...