ID:175762
 
say that i wana do somthing like..this:

mob/proc/whatever()
src.p+=src.lp
if(src.p>=30)
src.p=30
src.lp=Whatever_is_left

see i want it like if p goes over thirty, i dont want lp to go to zero, i want to what ever numbers went over 'p' be left, i remember seeing a demo of somthing like this but i cant remember what its called.
if(src.p >= 30)
src.lp = src.p - 30
src.p = 30
In response to Garthor (#1)
Garthor wrote:
if(src.p >= 30)
src.lp = src.p - 30
src.p = 30

hey cool, neaver thought of doing it like that :-)