ID:268132
 
//clothing

obj/inventory
Kun
name = "Kun"
icon = 'Kun.dmi'
verb
Throw(mob/characters/M in oview(6))
usr.overlays += /obj/inventory/Kun
view(6) <<"[usr] kuns [M]"
usr.overlays -= /obj/inventory/Kun
M.HP -= usr.Str
Drop()
set category = "Options"
src.loc=locate(usr.x,usr.y+1,usr.z)
del src
Get()
set category = "Options"
set src in oview(1)
Move(usr)


The errors i get are

kun.dm:395:error:M:undefined type: M
kun.dm:397:error:M.HP:undefined type: M.HP

help?
Just as a guess, since I don't know what your code actually says, I'm going to say that the argument in the Throw() verb should be mob/character/M, not character<font color=red>s</font>.
In response to Flick
did he define those vars?
In response to XzDoG
yes i did i tried everything what could be wrong and that characters thing doesnt work..

mob/var/HP= 5
In response to Vash_616
try this..
            Throw(mob/M in oview(6))
In response to XzDoG
XzDoG wrote:
did he define those vars?


Well, he defined M as a mob/characters type. So when the compiler gets to the part where he is trying to find the value for M.HP, it realizes that there is no 'mob/characters' type, therefore it would be an undefined type. If he was trying to find the value for M.H<font color=red>Q</font> and there was no HQ var for the mob/characters type, then the compiler would give an undefined var error, not an undefined type.
In response to XzDoG
that worked now i just have 1 last thing. could someone be kind enough to look at this problem? [link] Thanks :)
By the way, in your Drop() verb you set a new location for the object, and than immediately delete it. Why bother with the relocation?
In response to Flick
That's a common typo. I mean, the keys are RIGHT NEXT TO EACH OTHER.
In response to Garthor
Garthor wrote:
That's a common typo. I mean, the keys are RIGHT NEXT TO EACH OTHER.

:) Its one of those dyslexic-type things. Left pinkie, right pinkie... whatever.
In response to Flick
I only use my pinky for typing the a key. I use the finger next to that for the other keys. Maybe the semicolon too, I forgot.