mob
proc
Damage(var/mob/a,var/mob/b,dmg,tech)
a<<"<font color=green>You hit [b] with [tech] for [dmg] damage!"
b<<"<font color=red>You've been hit by [a]'s [tech] for [dmg] damage!"
b.Stam-=dmg/4
b.Health-=dmg
b.Knock(a,b)
b.Death(a,b)
b.loadhud()
return
loadhud()
var/obj/base/b=new/obj/base
var/obj/tube1/c=new/obj/tube1
var/obj/tube2/d=new/obj/tube2
var/obj/tube3/e=new/obj/tube3
var/obj/tube4/j=new/obj/tube4
var/obj/top/f=new/obj/top
var/obj/chak1/g=new/obj/chak1
var/obj/chak2/h=new/obj/chak2
var/obj/chak3/i=new/obj/chak3
var/obj/chak4/k=new/obj/chak4
var/obj/stam1/l=new/obj/stam1
var/obj/stam2/m=new/obj/stam2
var/obj/stam3/n=new/obj/stam3
var/obj/stam4/o=new/obj/stam4
var/obj/Health1/p=new/obj/Health1
var/obj/Health2/q=new/obj/Health2
var/obj/Health3/r=new/obj/Health3
var/obj/Health4/s=new/obj/Health4
usr.client.screen+=b
usr.client.screen+=c
usr.client.screen+=d
usr.client.screen+=e
usr.client.screen+=j
usr.client.screen+=f
usr.client.screen+=g
usr.client.screen+=h
usr.client.screen+=i
usr.client.screen+=k
usr.client.screen+=l
usr.client.screen+=m
usr.client.screen+=n
usr.client.screen+=o
usr.client.screen+=p
usr.client.screen+=q
usr.client.screen+=r
usr.client.screen+=s
b.checker()
g.checker()
h.checker()
i.checker()
k.checker()
l.checker()
m.checker()
n.checker()
o.checker()
p.checker()
q.checker()
r.checker()
s.checker()
obj
base
icon='base.dmi'
proc
checker()
var/b=usr.Chakra+usr.Stam+usr.Health
var/c=usr.MChakra+usr.MStam+usr.MHealth
if(b<<c*1.5/10)
src.icon_state="0"
if(b>=c*1.5/10)
src.icon_state="15"
if(b>=c*3/10)
src.icon_state="30"
if(b>=c*4.5/10)
src.icon_state="45"
if(b>=c*6/10)
src.icon_state="60"
if(b>=c*7.5/10)
src.icon_state="75"
if(b>=c*9/10)
src.icon_state="90"
if(b>=c*9.9/10)
src.icon_state="100"
Problem description:
Well, what's happening is I'm getting this error:
runtime error: Cannot read 0.client
proc name: loadhud (/mob/proc/loadhud)
usr: 0
src: Bravo1 (/mob)
call stack:
Bravo1 (/mob): loadhud()
Katon Karyu Endan (/obj/jutsu/Katon/Katon_Karyu_Endan): Bump(Bravo1 (/mob))
every time the object causing the damage bumps into the player, the player gets damaged and the proc is called with the one hit as it's target, as you can see with b.loadhud()(I've tried b:loadhud() as well) it keeps telling me it can't read the client. Any help or fixes know of? If so, include the portion which has the fix. Thanks for all the help.