ID:270283
 
how would i make a mob atack you only when you attack it ?
none of that wondering stuff plz help
me.
Don't make me give you a code example, since I had to make a whole combat code for that :P Anyway, something like
mob/Attack(enemy/E)
E.Combat(src)


Or make an AI for the enemy(some proc called by new), which makes it attack the target if it is mad.
mob/Attack(enemy/E)
E.Target=usr
E.mad=1


In response to CIB
Th so alot man i appercate ill try it later i cant try it today it seems pretty simple though. but y arnet there any "libs" that can help me with this topic ? could u make one so that i can lean form it if u can comment it i like to learn ^_^.

much tax
Zog