home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 61 / CDPowerplay61Disc2.iso / data1.cab / hd0_scripts / Text / thief2.baf < prev    next >
Encoding:
Text File  |  2000-10-12  |  908 b   |  52 lines

  1. // *Defensive Thief
  2.  
  3.  
  4. //*Combat*
  5. IF
  6.     HPPercentLT(Myself,50)
  7.     See(NearestEnemyOf(Myself))
  8. THEN
  9.     RESPONSE #100
  10.         Help()
  11.         RunAwayFrom(NearestEnemyOf(Myself),75)
  12.         Hide()
  13. END
  14.  
  15. IF
  16.     Delay(30)
  17.     !StateCheck(Myself,STATE_INVISIBLE)
  18. THEN
  19.     RESPONSE #100
  20.         Hide()
  21. END
  22.  
  23. //*this should be in combat rather than control section so it doesn't override other, high priority commands
  24. IF
  25.     ActionListEmpty()
  26.     Help([PC])
  27.     HPPercentGT(Myself,50)
  28. THEN
  29.     RESPONSE #100
  30.         AttackReevaluate(LastAttackerOf(LastHelp(Myself)),60)
  31. END
  32.  
  33. IF
  34.     ActionListEmpty()
  35.     HPPercentGT(Myself,50)
  36.     See(NearestEnemyOf(Myself))
  37. THEN
  38.     RESPONSE #100
  39.         AttackReevaluate(NearestEnemyOf(Myself),30)
  40. END
  41.  
  42.  
  43. IF
  44.     ActionListEmpty()
  45.     HPPercentGT(Myself,50)
  46.     See(NearestEnemyOf(Myself))
  47.     Range(NearestEnemyOf(Myself),4)
  48. THEN
  49.     RESPONSE #100
  50.         EquipMostDamagingMelee()
  51.         AttackReevaluate(NearestEnemyOf(Myself),30)
  52. END