ID:262860
 
Code:
mob
Enemy
var/Command = ""
proc
Think()
return
Boar
list/Hit_Desc = list("tackles","charges at","bites")


E << "<font color=white>[src] [pick(src.Hit_Desc)] you!"


Problem description:
I have items in the Hit_Desc but it says there are none..This is strange.

var/list/hitdesc

_>
In response to Hell Ramen
I have it coded in somewhere else, Sorry I forgot to say.
mob
Player

var

list/Hit_Desc = list()


It's a runtime error btw.
In response to Sniper Joe
That's because the compiler is thinking it's literally this:

mob/boar
list
Hit_Desc = list("blah", "bleh")


This will actually make a new path type /mob/boar/list, and set that type path's Hit_Desc to the list. You need to take out list, since you don't redefine stuff as a list, since you don't need to.

mob/boar
Hit_Desc = list("blah", "bleh")


~~> Unknown Person
In response to Unknown Person
Thank you alot, I learned something new.