ID:156925
 
i cant get my person or my bug to come up from the ZBT tutorial. the code is as follows.

//This is a test world created by on .

mob

icon = 'person.dmi' //make it so all mobs will be created with the person icon
var
HP = 30

bug //new prototype
icon = 'bug.dmi' //override the parent's icon, which was 'person.dmi'


Login()
icon_state = gender //when a player logs in, make their icon's state
..() //the gender of their key. Then call the parent!


proc
DeathCheck() //checks to see if an attack is deadly
if (HP <= 0) //if the defender's HP is low enough...
world << "[src] dies!" //do the death messaging

verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M
M.DeathCheck() //check for death with a proc

say(msg as text) //what the usr says is passed into "msg" as text
world << "[usr]: [msg]" //the world sees chatroom-like output


turf
grass //defines a "grass" prototype, which is a kind of turf...
icon = 'grass.dmi' //and has an icon named 'grass.dmi'. In single quotes!



world //we set one of our world's characteristics:
turf = /turf/grass //its default turf is the grass turf.




where is the place where i screwed up? i cant get the person i made or the bug to come up, all i get is the grass i made...
Your question is vague. Why don't you just keep fiddling around with it. If you really want to learn best to me and many others it would probably be the guide.

http://byond.com/docs/guide