mob
proc
// Players call this whenever they do something.
// NPCs have this called by players.
Act()
npc
// When it's the NPC's turn to act,
Act()
// step towards a player nearby
for(var/mob/player/p in ohearers(src))
step_towards(src, p)
break
player
// Whenever the player moves successfully, it has acted
Move()
. = ..()
if(.)
Act()
// When the player has acted,
Act()
// Notify every nearby NPC
for(var/mob/npc/npc in ohearers(src))
npc.Act()
verb
// A verb to stand still for a turn
wait()
Act()
PROBLEM:When I try to get the NPC to follow the player it sits still, I am thinking that its because the npc doesnt note that I'm the player here is how I defined the mobs:
//I am unsure how to define the player mob as //player lol I think thats why it doesn't //work :P
mob
icon = 'icons.dmi'
icon_state = "player"
var
hp = 100
str = 8
def = 8
New()
Act()
mob/npc/npc
icon = 'icons.dmi'
icon_state = "monster"
hp = 25
str = 6
def = 5
New()
Act()
I'm sure my mistakes are apparent lol Thank you in advance for your help :)