Archer Script(for people with bows)

IF
       See([PC])
       !Range([PC],7)
THEN
       RESPONSE #100
              MoveToObject([PC])
END

IF
       HPPercentLT(Myself,50)
THEN
       RESPONSE #100
              Help()
              Continue()
END

IF
       See(NearestEnemyOf(Myself))
       Range(NearestEnemyOf(Myself),3)
THEN
       RESPONSE #100
              EquipMostDamagingMelee()
              AttackReevaluate(LastAttackerOf(Myself),60)
END

IF
       See(NearestEnemyOf(Myself))
       !Range(NearestEnemyOf(Myself),3)
THEN
       RESPONSE #100
              EquipRanged()
              AttackReevaluate(NearestEnemyOf(Myself),30)
END

IF
       See(NearestEnemyOf(Myself))
THEN
       RESPONSE #100
              AttackReevaluate(NearestEnemyOf(Myself),30)
END