I'm wondering if theres any way(short of neglecting the infinite loop check, and potentially creating a mass of errors in the future..)
LASER_REGEN()
src.health += round(((src.maxhealth-src.health)/src.maxhealth)*50)//add a percentage of the health
if(src.health>=src.maxhealth-10)
src.health=src.maxhealth
src.regenerating=0
return
if((src.health/src.maxhealth)*100>10) //percentage of the health is above 10
src.PercentageSet()//run yadayada proc
sleep(25)//two and a half seconds later
src.LASER_REGEN()//call it again..? Not sure how else to loop it.
return
src.regenerating=0//if all else fails, for whatever reason, stop regeneration.
return
Any constructive critism is welcomed, because i would rather walk away with something that i can use for future procs than a bundle of code from someone >~< so dont just fix it, please explain it at least a little...
Secondary question; Is there any good tutorials for Embedded Expressions?