Follow(mob/leader)
while(src.status=="follow")
step_to(src,leader,1)
sleep(leader.movespeed) //movespeed==1 usually
Problem description:
Simple enough proc, and looks harmless enough. But with it looping through 3-15 mobs every tick, it actually generates an abhorrent amount of CPU lag; what was 0 becomes 5 when I host locally, with just myself.
Is there a better way to tell a bunch of MOBs to follow you until told otherwise?
if (check distance between mobs, if you even need to step)
while(status == follow)
sleep(leader.movespeed)
step_to(src,leader,1)
Also, exactly how often do you need to call the Follow verb?
Have you thought of just having a list of followers too?
Here is Nandrews' distance detection system: http://www.byond.com/developer/Nadrew/rangedetection