listless

FRLG Notable AI

Apr 30th, 2020
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. Non-exhaustive obviously
  2.  
  3. (Leech seed is dealt with as toxic)
  4. AI_CV_Toxic
  5. AI_CV_Toxic:: @ 81DADDC
  6. if_user_has_no_attacking_moves AI_CV_Toxic3
  7. if_hp_more_than AI_USER, 50, AI_CV_Toxic2
  8. if_random_less_than 50, AI_CV_Toxic2
  9. score -3
  10.  
  11. AI_CV_Toxic2:: @ 81DADF0
  12. if_hp_more_than AI_TARGET, 50, AI_CV_Toxic3
  13. if_random_less_than 50, AI_CV_Toxic3
  14. score -3
  15.  
  16. AI_CV_Toxic3:: @ 81DADFF
  17. if_has_move_with_effect AI_USER, EFFECT_SPECIAL_DEFENSE_UP, AI_CV_Toxic4
  18. if_has_move_with_effect AI_USER, EFFECT_PROTECT, AI_CV_Toxic4
  19. goto AI_CV_Toxic_End
  20.  
  21. AI_CV_Toxic4:: @ 81DAE12
  22. if_random_less_than 60, AI_CV_Toxic_End
  23. score +2
  24.  
  25. AI_CV_Toxic_End:: @ 81DAE1A
  26. end
  27.  
  28.  
  29. Rival Bulba/Ivy: (In practical scenario)
  30. if bulba/ivy above half health:
  31. - if target(wartortle) above half health to end
  32. - otherwise 50/256 chance to end
  33. - otherwise score -3
  34.  
  35. If above half health then leech seed is unmodified by AI_CV_Toxic
  36. If below half health, 50/256 chance to be unmodified by AI_CV_Toxic, otherwise score -3
  37.  
  38.  
  39. AI_CV_Poison:
  40. AI_CV_Poison:: @ 81DAF6C
  41. if_hp_less_than AI_USER, 50, AI_CV_Poison_ScoreDown1
  42. if_hp_more_than AI_TARGET, 50, AI_CV_Poison_End
  43.  
  44. AI_CV_Poison_ScoreDown1:: @ 81DAF7A
  45. score -1
  46.  
  47. AI_CV_Poison_End:: @ 81DAF7C
  48. end
  49.  
  50. Rival Bulba/Ivy:
  51. If above 50% poisonpowder is unmodified by AI_CV_Poison, otherwise score -1.
  52.  
  53.  
  54.  
  55.  
  56. AI_CV_AccuracyDown:: @ 81DAB98
  57. if_hp_less_than AI_USER, 70, AI_CV_AccuracyDown2
  58. if_hp_more_than AI_TARGET, 70, AI_CV_AccuracyDown3
  59.  
  60. AI_CV_AccuracyDown2:: @ 81DABA6
  61. if_random_less_than 100, AI_CV_AccuracyDown3
  62. score -1
  63.  
  64. AI_CV_AccuracyDown3:: @ 81DABAE
  65. if_stat_level_more_than AI_USER, STAT_ACC, 4, AI_CV_AccuracyDown4
  66. if_random_less_than 80, AI_CV_AccuracyDown4
  67. score -2
  68.  
  69. AI_CV_AccuracyDown4:: @ 81DABBE
  70. if_not_status AI_TARGET, STATUS1_TOXIC_POISON, AI_CV_AccuracyDown5
  71. if_random_less_than 70, AI_CV_AccuracyDown5
  72. score +2
  73.  
  74. AI_CV_AccuracyDown5:: @ 81DABD0
  75. if_not_status3 AI_TARGET, STATUS3_LEECHSEED, AI_CV_AccuracyDown6
  76. if_random_less_than 70, AI_CV_AccuracyDown6
  77. score +2
  78.  
  79. AI_CV_AccuracyDown6:: @ 81DABE2
  80. if_not_status3 AI_USER, STATUS3_ROOTED, AI_CV_AccuracyDown7
  81. if_random_less_than 128, AI_CV_AccuracyDown7
  82. score +1
  83.  
  84. AI_CV_AccuracyDown7:: @ 81DABF4
  85. if_not_status2 AI_TARGET, STATUS2_CURSED, AI_CV_AccuracyDown8
  86. if_random_less_than 70, AI_CV_AccuracyDown8
  87. score +2
  88.  
  89. AI_CV_AccuracyDown8:: @ 81DAC06
  90. if_hp_more_than AI_USER, 70, AI_CV_AccuracyDown_End
  91. if_stat_level_equal AI_TARGET, STAT_ACC, 6, AI_CV_AccuracyDown_End
  92. if_hp_less_than AI_USER, 40, AI_CV_AccuracyDown_ScoreDown2
  93. if_hp_less_than AI_TARGET, 40, AI_CV_AccuracyDown_ScoreDown2
  94. if_random_less_than 70, AI_CV_AccuracyDown_End
  95.  
  96. AI_CV_AccuracyDown_ScoreDown2:: @ 81DAC29
  97. score -2
  98.  
  99. AI_CV_AccuracyDown_End:: @ 81DAC2B
  100. end
  101.  
  102.  
  103.  
  104.  
  105.  
  106. "Risky AI":
  107. 50% to encourage (+2) Sleep moves.
Add Comment
Please, Sign In to add comment