ID:169826
 
I was wondering if some could show an example of the walk_to proc, the rerfernce did not help me.
walk_to(Ref,Trg,Min=0,Lag=0)

  • Let ref be you.
  • Let Trg be a monster mob.
  • Let Min be 10 tiles away.
  • Let Lag be 5.
mob/verb/WalkToMonster(mob/monster/M in oview(9))
walk_to(src,M,10,5)


Ref would be person stepping.
Trg would be the TARGET of the stepper.
Min would be the min. distance between the Ref and Trg.
Lag would be run the step every .5 seconds.

-Ryan

In response to Ryne Rekab
Ryne Rekab wrote:
walk_to(Ref,Trg,Min=0,Lag=0)

  • Let ref be you.
  • Let Trg be a monster mob.
  • Let Min be 10 tiles away.
  • Let Lag be 5.
> mob/verb/WalkToMonster(mob/monster/M in oview(9))
> walk_to(src,M,10,5)
>

Ref would be person stepping.
Trg would be the TARGET of the stepper.
Min would be the min. distance between the Ref and Trg.
Lag would be run the step every .5 seconds.

-Ryan

Thanks a lot, I finally got the NPC to follow me.