ID:261262
 
I can get the code in without any errors, but the mosnters won't attack me. Theyll come after me, but when they get close to me, they dont do anything but circle me. What can be cuasing this problem?
I've had this problem stated to me many many times. I guess ill have to go take a look and see whats up.

But for now you can check the following things.

Make sure your mob's typechar variable is set to the correct value, so monsters will attack you.

make sure the monster's typechar variable is set to "monster"

In the mean time, i will be updating my system.

FIREking
In response to FIREking
Without actually seeing any code or whatnot, this 'dancing' problem is often related to having walk_to() trying to move into the target's space. Since the space is occupied by the target, the space can't be entered, so the mob finds a nearby space to move into.

It can be countered by making the minimum distance 1 in the procedure.
I had the same problem.
Thx to Flick, it works now.
Here's where i think the bug is:

checkarea()
for(var/mob/M in oview(4))
if(M == null)
return 0
if(M.typechar == "normal")
walk_t(src,M,0,warspeed)
monsterattack(M)
^

Find this small part in the mob/monsters code and just add
the "M" after monsterattack.
If you still have a problem, go see my old post:
http://www.byond.com/forum/ forum.cgi?action=message_read&forum=newbie&message=7823&view =0




In response to Cravens
Thank you Cravens.
In response to Philipe The Bard
ack! a typo has messed my entire system up!
In response to Philipe The Bard
How would I stop the monster from circling around the person constantly. I just want it to stop when it gets to it's destination, then and only then can it move when the usr moves.

+PTB+