new/obj/monster/name
I have a new object that I created with the above code,
i just need to tell it which direction to face, and i need to be able to delete it
can i name it?
ALSO, is there anyway to make a picture show up on a 'stats' tab thingy?
var/obj/monster/name/Critter = new()
creates a new obj/monster/name and assigns it to the Critter variable. Now you can modify the monster however you like by accessing Critter's variables.
Critter.dir = NORTH
Critter.name = "Spot"
Critter.lunch = "Pillsverry"
and so on.
When the proc ends, Critter is no longer a valid variable. but you can delete Critter at any time in the proc with del(Critter). If you want to delete it outside the proc, you will need some other way to locate it.
You should probably define monsters as mob instead of obj.
If you display an atom with an icon in the statpanels, the icon will be displayed also.