mob
verb
Body_Expand(X as num)
if(X==0)
if(usr.expand==0)
usr<<"You are not expanded to revert"
return
usr.expand=0
usr.transbp=n_transbp
usr.transst=n_transst
usr.transen=n_transen
usr.transfo=n_transfo
usr.transre=n_transre
usr.transsp=n_transsp
usr.te=src.te_max
usr.thp=src.thp_max
usr<<"You revert from body expand"
usr.icon=src.reserveicon
return
if(usr.expand<0)
usr.icon=src.reserveicon
usr.transbp=n_transbp
usr.transst=n_transst
usr.transen=n_transen
usr.transfo=n_transfo
usr.transre=n_transre
usr.transsp=n_transsp
usr.te=src.te_max
usr.thp=src.thp_max
if(X>=usr.expand_max)
usr<<"Your max expand is [usr.expand_max] it automaticaly turned into it"
X=usr.expand_max
usr.expand=X
usr.transbp+=X/2.5
usr.transst+=X/1.5
usr.transen+=X/2.8
usr.transfo-=X/3
usr.transre-=X/3
usr.transsp-=X/3
usr.te-=X/3
usr.thp+=X/1.6
if(usr.transfo<=0)
usr.transfo=0.1
if(usr.transre<=0)
usr.transre=0.1
if(usr.transsp<=0)
usr.transsp=0.1
if(usr.te<=0)
usr.te=0.1
usr<<"You expanded to level [src.expand],to revert expand to 0, expand makes you stronger but slower and less ki"
usr.update()
usr.reserveicon=usr.icon
sleep(0.01)
var/icon/I = usr.icon
I.Scale(32,64)
usr.icon=I
Problem description:
When i use the verb everything goes normal my power raises
my stats increase but the icon dont change and it says
runtime error: Cannot execute null.Scale().
proc name: Body Expand (/mob/verb/Body_Expand)
usr: Karffebon (/mob)
src: Karffebon (/mob)
call stack:
Karffebon (/mob): Body Expand(1)