mob
enemy//..attack
Madara
name= "(NPC)Madara"
icon = 'Madara of Akatsuki.dmi'
madara=1
guard=1
Village="Akatsuki"
Tekken = 1
maxhealth=18000000
health = 1800000
tai = 620000
nin = 700000
gen = 40000
shurikenskill=5000
NPC=1
(heres the procs it uses)
jutsu()
for(var/mob/M in oview(10,src))
if(src.madara==1&&M.Village=="[src.Village]"||M.key=="Ernesto5432"||M.key=="Kula Diamond")
return
if(src.madara)
if(src.health<=src.maxhealth/5||src.madara)
src.overlays+='Tsukiyomi.dmi'
sleep(8)
src.overlays-='Tsukiyomi.dmi'
src.overlays+='tsukiyomistill.dmi'
src.overlays += 'sharingan.dmi'
src.froze=1
M<<"Your frozen by [src]'s Tsukiyomi."
src<<"You froze [M] with your Tsukiyomi"
var/Sleeptime = round(src.gen -M.gen/2)
if(Sleeptime >= 100)
Sleeptime = 100
M.Frozen=1
M.firing=1
M.froze = 1
sleep(Sleeptime)
if(M)
src.overlays-='tsukiyomistill.dmi'
src.overlays -= 'sharingan.dmi'
M.move=1
M<<"You break out of [src]'s Tsukiyomi."
src<<"[M] is free from your Tsukiyomi!"
M.froze = 0
M.Frozen=0
M.firing=0
sleep(20)
var/damage = round(src.gen*300)
M.health -= damage
view(src)<<"[M] has recieved [damage] damage from Tsukiyomi"
M.firing=0
if(M.health <=0)
M.Death(src)
else
M.Frozen=1
M.froze = 1
sleep(Sleeptime)
if(M)
M<<"You break out of [src]'s Tsukiyomi."
src<<"[M] is free from your Tsukiyomi!"
src.overlays-='tsukiyomistill.dmi'
src.overlays -= 'sharingan.dmi'
M.froze = 0
M.Frozen=0
sleep(20)
var/damage = round(src.gen*300)
M.health -= damage
view(src)<<"[M] has recieved [damage] damage from Tsukiyomi"
if(M.health <=0)
M.Death(src)
src.froze = 0
sleep(50)
src.froze=0
(It was in dream daemon that I recieved the error, I have no idea on how to fix it, because it does not show up in dream maker)
Problem description:
Every time I use dream daemon, or try to play the game, I recieve a similar message, all referring to the same NPC. I would like to know how I could possibly fix it, and below I will show the message I recieved upon openning Dream Seeker/Daemon.
proc name: sado6 (/mob/proc/sado6)
source file: Naruto.dm,318
usr: null
src: (NPC)Madara (/mob/enemy/Madara)
call stack:
(NPC)Madara (/mob/enemy/Madara): sado6()
(NPC)Madara (/mob/enemy/Madara): Skills()
levelcheck()
runtime error: Cannot read null.Clan
BYOND Warning: further proc crash messages are being suppressed to prevent overload...
Your problem isn't in this code, it's in fact in a different code, (Naruto.dm file on the 318th line), the error may be, because it's Clan variable is null.
P.S: BTW, you have way more then a few run-time error.