Talvieno

AI Wars script (my game)

Oct 4th, 2013
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. If total self hp < #1.1 and nearest upgrader distance > #20 then moveto nearest upgrader
  2. if nearest enemy distance < #92 and nearest enemy facingdeg < #10 then fire
  3. if total enemy count > #0 and nearest enemy distance < #17 and nearest enemy facingdeg < #15 and total self hp > #0.25 then attack
  4. if nearest wall distance < #32 and nearest enemy distance > #52 then avoid nearest wall
  5. if nearest forest distance < #36 and nearest enemy distance > #52 then avoid nearest forest
  6. If nearest enemy distance < #46 and nearest enemy facingdeg > #10 and nearest enemy hp > #1.2 then avoid nearest enemy
  7. if total enemy count > #0 and nearest enemy facingdeg < #10 then fire
  8. if total self hp > #2.5 and nearest enemy hp < #2.5 and nearest enemy distance < #20 and nearest enemy facingdeg < #15 and nearest enemy attack < #2.5 and total self attack > #2.5 then attack
  9. if nearest wall distance < #32 and avg robot hp < #1.1 then avoid nearest wall
  10. if nearest upgrader distance < #20 and total self hp < #5 then upgradex hpx
  11. if nearest upgrader distance < #20 and nearest enemy distance > nearest upgrader distance and total self turnrate < #4 then upgradex turnratex
  12. if nearest upgrader distance < #24 and nearest enemy distance > #32 and total self attack < #5 then upgradex attackx
  13. if weakest enemy distance < #20 and weakest enemy facingdeg > #15 then turnto weakest enemy
  14. if total self hp < #1 and nearest enemy distance < #25 then avoid nearest enemy
  15. if total enemy count > #0 and nearest enemy distance > #100 and nearest upgrader distance < #25 and total self turnrate > #1 and total self speed < #2.5 then upgradex speedx
  16. if nearest upgrader distance < #25 and total self speed < #3 and nearest enemy distance > #40 then upgradex speedx
  17. if nearest enemy distance < #184 then drop
  18. if total missile count > #0 and nearest missile distance < #16 then avoid nearest missile
  19. if total missile count > #0 and nearest missile distance < #16 then avoid nearest missile
  20. if total self hp < #2 and nearest upgrader distance < #20 then upgradex hpx
  21. if total self hp < #2 and nearest upgrader distance < #20 then upgradex hpx
  22. if total missile count > #0 and nearest missile distance < #92 and nearest enemy distance > #32 and nearest upgrader distance > #32 then avoid nearest missile
  23. if nearest pit distance < #36 then avoid nearest pit
  24. if nearest pit distance < #36 then avoid nearest pit
  25. if total enemy count > #0 and nearest enemy distance < #64 and total self HP < #1 and nearest enemy hp > #0.25 Then Drop
  26. if total enemy count > #0 and nearest enemy distance < #64 and total self HP < #1 and nearest enemy hp > #0.25 Then Drop
  27. if total enemy count > #0 and nearest enemy distance < #20 and total self hp > #0.9 then attack
  28. if total enemy count > #0 and nearest enemy distance > #32 and total self HP < #2 and nearest upgrader distance > #20 then moveto nearest upgrader
  29. if total enemy count > #0 and nearest enemy distance < #32 and total self HP < #1 and nearest enemy hp > #0.25 and nearest enemy facingdeg > #5 then avoid nearest enemy
  30. if total enemy count > #0 and nearest enemy distance > #50 and nearest upgrader distance < #25 and total self hp < #5 then upgradex hpx
  31. if total enemy count > #0 and nearest enemy distance < #17 and nearest enemy facingdeg > #5 then moveto nearest enemy
  32. if nearest enemy distance > #32 and total self hp < #2 and nearest upgrader distance > #24 and nearest forest distance < #36 then avoid nearest forest
  33. if total enemy count > #0 and nearest enemy distance > #32 and total self HP < #2 and nearest upgrader distance > #24 then moveto nearest upgrader
  34. if total enemy count > #0 and nearest enemy distance > #32 and nearest upgrader distance < #25 and total self attack > #2 and total self hp < #5 then upgradex hpx
  35. if total enemy count > #0 and nearest enemy distance > #32 and nearest upgrader distance < #25 and total self attack > #2 and total self hp < #5 then upgradex hpx
  36. if total enemy count > #0 and nearest enemy distance > #8 and nearest upgrader distance < #25 and total self speed > #2 and total self turnrate < #5 then upgradex turnratex
  37. if total enemy count > #0 and nearest enemy distance > #8 and nearest upgrader distance < #25 and total self speed > #2 and total self turnrate < #5 then upgradex turnratex
  38. if total enemy count > #0 and nearest enemy distance > #32 and nearest upgrader distance < #25 and total self attack < #5 then upgradex attackx
  39. if nearest wall distance < #32 and total robot count < #16 and nearest enemy distance > #138 then avoid nearest wall
  40. if nearest enemy facingdeg < #5 then fire
  41. if total enemy count > #0 and nearest enemy distance > #32 and nearest upgrader distance < #25 and total self turnrate < #5 then upgradex turnratex
  42. if nearest enemy facingdeg < #5 and nearest wall distance > #32 then fire
  43. if nearest enemy facingdeg < #5 and nearest wall distance > #32 then fire
  44. if total self hp < #5 and nearest enemy distance > #200 and nearest upgrader distance > #24 then moveto nearest upgrader
  45. if total self hp < #5 and nearest enemy distance > #200 and nearest upgrader distance > #24 then moveto nearest upgrader
  46. If Total Enemy Count > #0 And weakest Enemy Distance > #20 and weakest enemy attack < #2.5 and weakest enemy distance < strongest enemy distance Then MoveTo Weakest Enemy
  47. If Total Enemy Count > #0 And Nearest Enemy Distance > #20 Then MoveTo Nearest Enemy
  48. if total enemy count > #0 then drop
  49. if total ally count > #0 and nearest ally distance < #50 then avoid nearest ally
  50. if total self hp < #5 and nearest enemy distance > #200 and nearest upgrader distance > #24 then moveto nearest upgrader
  51. if avg ally hp < #2 then moveto nearest upgrader
  52. If Total Enemy Count > #0 And weakest Enemy Distance > #20 and weakest enemy attack < #2.5 and weakest enemy distance < strongest enemy distance Then MoveTo Weakest Enemy
  53. If Total Enemy Count > #0 And Nearest Enemy Distance > #20 Then MoveTo Nearest Enemy
  54. if total ally count > #0 and nearest ally distance < #50 then avoid nearest ally
  55. Chats
  56. KillStr
  57. Die!
  58. Take that!
  59. Gotcha!
  60. DeathStr
  61. No!
  62. That hurt.
  63. Ouch.
  64. End
Advertisement
Add Comment
Please, Sign In to add comment