ID:169821
 
I need help on how to make a pet system, like that of Mystic Journey's where if a monster attacks you, or vise-versa you're pet attacks that monster. But I don't do so well with A.I's.. Help would be nice, and if you decide to help, please leave examples ^^.

Thanks:

~C
Try rifthaven's petdemo that's closest to what you need I think
I've never made a pet system, but if I did, I would probably go about it like this....
mob
verb
newpet()
var/mob/pet/P=new(src.loc)
walk_to(P,src,0,1) // Make sure the pet stays with you.
P.owner=src
obj
var
owner
pet

There isn't anything special needed when creating a pet, just create it at the sources location and make it follow them. You could also add verbs to stop the pet from following and to come to you when you call it. There are also many demo's and libraries on this im sure.