ID:144133
 
Code:mob
icon = 'person.dmi'
var
HP = 300
dog
icon = 'dog.dmi'

Login()
icon_state = gender
..()

proc
DeathCheck()
if (HP <= 0)
world << "[src] dies!"

verb
punch(mob/M as mob in oview(1))
if (M.HP <= 0)
usr << "[M] is already dead!"

usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,2)
world << "[damage] damage!"
M.HP -= damage
kick(mob/M as mob in oview(1))
if (M.HP <= 0)
usr << "[M] is already dead!"

usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(2,3)
world << "[damage] damage!"
M.HP -= damage

say(msg as text)
world << "[usr]:[msg]"
turf
tile
icon='tile.dmi'
trees
icon='trees.dmi'
water
icon='water.dmi'
world
turf = /turf/tile



For some reason my icons are not showing up on mob when I want to make my map, is there a problem with this coding? note: my person icon and turf icons are not showing up and the mape is supposed to be tiles and when I run it its just black.

You probably forgot the icon_states on the turfs, and forgot a male/female/neuter on the mobs.