home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2000 December / PCP_12_2000B.iso / bg2demo / data1.cab / hd0_scripts / Text / cautious.baf next >
Encoding:
Text File  |  2000-09-22  |  585 b   |  34 lines

  1. // * Mar 17, 2000.
  2. // * Brent Knowles
  3. // * Player with this script will run away whenever enemies get too close.
  4.  
  5. //*Control*
  6. IF
  7.     HPPercentLT(Myself,75)
  8.     See(NearestEnemyOf(Myself))
  9. THEN
  10.     RESPONSE #100
  11.         Help()
  12.         Continue()
  13. END
  14.  
  15. //*Combat*
  16.  
  17. IF
  18.     ActionListEmpty()
  19.     AttackedBy([ANYONE],DEFAULT)
  20. THEN
  21.     RESPONSE #100
  22.         RunAwayFrom(LastAttackerOf(Myself),150)
  23. END
  24.  
  25. // * run if they are too close
  26. IF
  27.     ActionListEmpty()
  28.     See(NearestEnemyOf(Myself))
  29.     Range(LastSeenBy(Myself),20)
  30.     ActionListEmpty()
  31. THEN
  32.     RESPONSE #100
  33.         RunAwayFrom(LastSeenBy(Myself),150)
  34. END