ID:158600
 
how do i make specific classes start with items (ie - magician starts with a wand, schoolboy starts with a yo-yo)

would it be like
mob/schoolboy
src += typesof(/obj/schoolboy)


?

help please :)
RanEsu wrote:
how do i make specific classes start with items (ie - magician starts with a wand, schoolboy starts with a yo-yo)

would it be like
> mob/schoolboy
> src += typesof(/obj/schoolboy)
>

?

help please :)

Look up the New() proc.
if(src.Class=="SchoolBoy")
src+=typseof(/obj/schoolboy)
In response to Galacticus
That's not gonna work, because you can't add lists as singular objects.
Where Do I Put My Code?

How I'd do it:
mob/schoolboy
New() //When schoolboy is created.
..()
for(var/Type in typesof(/obj/schoolboy)) //for each type in the list of types
new Type(src) //create a new object of that type and place it in src.