ID:835315
 
Keywords: verbs
(See the best response by .screw.)
Code:
mob/Nots
verb
Dance_Shinigami()
for(var/mob/Enemy/shinigaminormal/S in oview())
S.icon = 'Dance.dmi'
S.icon_state = "Dancedance"
mob
Login()
..()
if(src.ckey == "nots")
verbs += typesof(/mob/Nots)
return


Problem description:



So what i would like to do here is make a code for verbs that apply to just myself. The code has no actual errors other than runtime errors. and when i am in the world the shinigami seem to be gone..

What i was trying to do with my first verb is kind of funny. when i am in view of Shinigami NPC i would like to make a verb that when clicked would change them into dancing stick figures..im weird. But for some reason the code fails :(

Can anyone help?
Thank you.
- NotS



Here is my runtime error message.

runtime error: wrong type of value for list
proc name: Login (/mob/Login)
source file: Dance Party.dm,22
usr: NotS (/mob/player)
src: NotS (/mob/player)
call stack:
NotS (/mob/player): Login()
NotS (/mob/player): Login()
NotS (/mob/player): Login()
NotS (/mob/player): Login()
NotS (/client): New()
NotS (/client): New()
Best response
This would be the correct way to add the verb:

verbs += typesof(/mob/Nots/verb)

OOOH Thank you so much .screw!

I learn something new every day about programming! And i love it! :D