But how do i go about doing this in a efficient way?
I originally started with something along the lines of this:
mob
New()
.=..() // is this correct?
spawn(0) Live()
Proc/Live()
while(src)
// Do checks on whatever
update_stat() //updates stat proc
Health() //checks and updates health?
// ++ more procs
Now this is just a quick mockup of what the code could look like. The problem i have with this, is that i feel that having an endless (more or less) loop that continiusly calls upon procs like update_stats and Health to be bad? or am i wrong?
I would rather that it was only called upon if changes were made or if there were changes to be made, if you catch my drift.
Then i thought, what if i pull all those other procs in that one live proc, but that would then be a rather large proc. (but i'd not have X number of procs being called all the time and running) . Anyways.. not sure if what I'm asking is clear or if I'm even making sense..
How would the more experienced of you go about doing something like this?
If you are using stat panels, there's simply one less headache but it is less efficient then outputting to a grid when needed.