ID:263322
 
Code:
MakeChuunin(mob/M in world)
set category = "Staff"
world<<"[M] has made through the Chuunin examination and is now a Chuunin!"
M.rank = "Chuunin"
for(var/obj/earthscroll/ES in usr.contents)
del ES


Problem description:

This is for my naruto game. If i get chuunin, it wont delete the earthscroll from my inventory. I never get errors but when i run it and i test it, then the earthscroll still stays in my inventory. I hope someone can help me with this and explain me what i need to do
Ultimate Productions wrote:
Code:
> MakeChuunin(mob/M in world)
> set category = "Staff"
> world<<"[M] has made through the Chuunin examination and is now a Chuunin!"
> M.rank = "Chuunin"
> for(var/obj/earthscroll/ES in usr.contents)
> del ES


Problem description:

This is for my naruto game. If i get chuunin, it wont delete the earthscroll from my inventory. I never get errors but when i run it and i test it, then the earthscroll still stays in my inventory. I hope someone can help me with this and explain me what i need to do

you pass M as the mob passing the exam, but you check in usr.contents. I think you need to check in M.contents for the ES obj.
In response to Jik (#1)
i think i fixed it. Thanks for help