ID:172341
 
OK...I can get monsters to move towards a user, but...how do would you code AI that makes it so a monster will only start attacking you AFTER you've attacked it, and won't stop until it's dead...if you could...please post a little code snippet...thanks in advance.
Bartock wrote:
OK...I can get monsters to move towards a user, but...how do would you code AI that makes it so a monster will only start attacking you AFTER you've attacked it, and won't stop until it's dead...if you could...please post a little code snippet...thanks in advance.

Set a var that checks if the player attacked the monster. Then, when you attack, check if the type is a monster. If it is, set the var to 1. Then create a proc to check if the var is one, then in that same proc code your attacking.