Well that's a more specific question that I can (somewhat) answer. So, if E is the enemy's number and P is yours, you can do something like IF MASS[E]<MASS[P] THEN RUN AWAY! INSERT TRIG THAT I DIDN'T WANT TO TYPE ELSE GO TOWARDS! STILL INSERT TRIG ENDIF Though I would recommend having buffers to avoid things being too precise.