mob
Attacking_NPC
Cacturne
icon = 'Hoenn Pokemon.dmi'
icon_state = "cacturne"
name = "Cacturne"
hp = 200
var/mob/character/Player
New()
. = ..()
spawn()
move()
proc/move()
while(src)
var/player_found = 0
for(Player in oview(8,src))
step_towards(src,Player)
player_found = 1
break
if(player_found != 1)
step_rand(src)
sleep(10)
sleep(5)
Bump(mob/M)
if(istype(M,/mob/character))
attack(M)
proc/attack(mob/M)
var/damage
M.hp -= damage
M <<"You are being attacked by [src]!"
src.Exp += rand(5,10)
Levelup()
M.deathcheck(src)
Problem description:
Player Undifined Type
Player Undifined Type
/mob/character undifined type path
for(Player in oview(8,src))
step_towards(src,Player)
Those are the lines with the player problem
if(istype(M,/mob/character))
And thats the other problem, can someone help me?
You apparently dont have a mob/character defined, so its not finding that type. But dont even use it its useless. Just study this, it works for what you want.