ID:139036
 
Code:
part1
if(clan=="Uchiha"&&M.clan=="Uchiha"&&skillclanjutsu1>=5&&M.skillclanjutsu1>=5)
M.pkkills++
if(M.skillclanjutsu1==5)
M<<output("<b>You have awakened your Eternal Mangekyou Sharingan!","infobox")
new/obj/jutsu/uchiha/Eternal_Mangekyou_Sharingan(M)
M.skillclanjutsu1=6
M.blind=100
else
M<<output("<b>You killed an Uchiha!","infobox")
emscheck()
mangekyoublind()

part2
emscheck(mob/M,bury=0)
if(clan=="Uchiha"&&M.clan=="Uchiha"&&skillclanjutsu1>=5&&M.skillclanjutsu1>=5)
if(hp<=0&&skillclanjutsu1==6)
for(var/obj/jutsu/uchiha/Eternal_Mangekyou_Sharingan/X in src)del X
src<<output("<b>You have had your eyes stolen!","infobox")
blind=100
skillclanjutsu1=5
mangekyoublind()
death()
if(hp<=0&&skillclanjutsu1==5)
src<<output("<b>You have had your eyes stolen!","infobox")
blind=100
mangekyoublind()
death()


Problem description:

The problem is with part 2.
Whever The person dies they dont lose the skill.
and it doesnt send them the message saying your eyes were stolen. Ik it has somthing to do with who im specifying but idk how to correct it.
Is it supposed to require both players to have 5+ in whatever jutsu it is? I'm not familiar with Naruto or any of the sources for the game.
In response to Robertbanks2
Yes it is.
Like in the test Heres what I did.

A level 5 skillclanjutsu1 can kill a lvl 6 and lvl 5 and gain Eternal.

A level 6 will kill the lvl 6 and lvl 5 and it will send him the message saying he killed an uchiha.

^ thats all in the first part of the code. So that works perfectly the problem is.

Test of second part.

When level 6 dies to lvl 5 he doesnt lose the skill as said in the code of part 2. its the part where it says /X in src) del X

and when a lvl 5 Dies to a lvl 5 the message saying your eyes have been stolen isnt sent.
In response to Bigj822
Where are you storing your skills at?
In response to Bigj822
                    else
M<<output("<b>You killed an Uchiha!","infobox")
emscheck()
mangekyoublind()


The issue is with how you call emscheck(). You don't supply any parameters, so it calls emscheck() for src, but doesn't send M along, so it doesn't check M in the proc and immediately stops at the first if() statement.

You need to call:

emscheck(M)

This will pass M as a parameter and allow it to check properly.