Advertisement
Guest User

Elona Custom AI How-To v1

a guest
Apr 9th, 2018
3,425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 5.25 KB | None | 0 0
  1. ##  Custom AI how-to
  2. ##
  3. ##  Basic movement/attack routines for ranged and melee pets:
  4.  
  5. ##
  6. ## Melee
  7.  
  8. Target  Distance    >   1       Move Forward        #Moves in melee range.
  9. Target  Distance    =   1       Attack(melee)       #When in melee range, attack.
  10.  
  11. ## Melee with shadow step and swarm
  12.  
  13. Target  Distance    >   9       Move Forward        #Go close enough to use Shadow Step.
  14. Target  Distance    >   1       Shadow Step         #Teleport to target when not in melee range.
  15. Target  Distance    >   1       Move Forward        #Go to melee range when shadow step on cooldown.
  16. Target  Distance    =   1       Swarm               #Swarm when in melee range.
  17. Target  Distance    =   1       Attack(melee)       #Melee attack when swarm on cooldown.
  18.  
  19.  
  20. ##
  21. ## Ranged
  22.  
  23. Target  Distance    >   5       Move Forward        #Go to maximum ranged distance allowed.
  24. Target  Distance    =   1       Move Away           #Retreat when target is in melee range.
  25. Target  Distance    <=  5       Attack(ranged)      #Attack target.
  26. Target  Distance    >   1       Move(forward)       #Get closer to target when line of sight is obstructed(go around the corner for example).
  27.  
  28. ##  Move away directive in the above example may conflict with the last move forward, making pet go back-and-forth.
  29.  
  30. ## Ranged with short teleport and struck out
  31.  
  32. Target  Distance    >   5       Move Forward        #Go to maximum ranged distance allowed.
  33. Self    Buff        !=  Space Retention AND         #Space retention makes teleports fail.
  34. Target  Distance    =   1       Short Teleport      #Use short teleport when in melee range.
  35. Target  Distance    =   1       Move Away           #Retreat when target is in melee range under space retention effect.
  36. Target  Distance    <=  5       Struck Out          #Struck out when in range.
  37. Target  Distance    <=  5       Attack(ranged)      #Attack target when struck out on cooldown.
  38. Target  Distance    >   1       Move(forward)       #Get closer to target when line of sight is obstructed(go around the corner for example).
  39.  
  40. ##
  41. ## Magic
  42. ##  is, as expected, tricky - pet can go out of mana or become silenced.
  43. ## obviously you can disregard the risk of silence or going out of mp and make it much simplier.
  44.  
  45. ## Bolt spells, hybrid mage+ranged
  46. Target  Distance    >   9       Move Forward        #Get within maximum bolt range.
  47. Self    MP          <   10%     AND
  48. Target  Distance    >   5       Move Forward        #Get in ranged attack distance when low on MP.
  49. Self    MP          <   10%     Attack (ranged)     #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when out of MP.
  50. #example of darkenss bolt check, may be used to apply other debuffs instead
  51. Self    Buff        !=  Silence AND
  52. Target  Status      !=  Blind   Darkness Bolt       #Keep target blinded.
  53. #end of example
  54. Self    Buff        !=  Silence (arrow spell)       #KEEP TARGET should be set to (off), use spell when not silenced.
  55. Target  Distance    >   5       Move Forward        #Get in ranged attack distance when silenced or cannot use spells (target not in line of sight).
  56. Self    Buff        =   Silence Attack(ranged)      #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when pet is silenced.
  57. Target  Distance    >   1       Move Forward        #When not silenced or out of MP yet cannot use bolt spell, get closer to target.
  58.  
  59. ## Bolt spells, hybrid lightning mage+ranged
  60. Target  Distance    >   9       Move Forward        #Get within maximum bolt range.
  61. Self    MP          <   10%     AND
  62. Target  Distance    >   5       Move Forward        #Get in ranged attack distance when low on MP.
  63. Self    MP          <   10%     Attack (ranged)     #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when out of MP.
  64. Self    Buff        !=  Silence AND
  65. Target  Status      !=  Wet     Water Bolt          #Make sure target is made wet first, bells and quickling die from this alone.
  66.                                                     #No check for MP since its a cheap spell.
  67. Self    Buff        !=  Silence Lightning Bolt      #KEEP TARGET should be set to (off), use spell when not silenced.
  68. Target  Distance    >   5       Move Forward        #get in ranged attack distance when silenced or cannot use spells (target not in line of sight).
  69. Self    Buff        =   Silence Attack(ranged)      #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when pet is silenced.
  70. Target  Distance    >   1       Move Forward        #When cannot attack, get closer.
  71.  
  72. ## Bolt spells, pure mage
  73. Self    Buff        =   Silence Move Away           #KEEP TARGET should be set to (off), will move away from hostile target when silenced.
  74. Target  Distance    >   9       Move Forward        #Get within maximum bolt range.
  75. Self    MP          =>  10%     (arrow spell)       #KEEP TARGET should be set to (off), will shoot bolt when not out of mana.
  76. Self    MP          <   10%     Move Away           #Move around when out of mana.
  77. Target  Distance    >   1       Move Forward        #When not silenced or out of MP yet cannot use bolt spell, get closer to target.
  78.  
  79. ## Lightning/water ball spells, melee mage
  80. Target  Distance    >   9       Move Forward        #Get close enough to use Shadow Step.
  81. Target  Distance    >   3       Move Forward        #Get close enough to use ball spell.
  82. Self    Mp          =>  10%     AND
  83. Target  Status      =   Wet     Thunder Vortex      #Use lightning ball on wet target.
  84. Target  Status      !=  Wet     AND
  85. Target  Distance    >   1       Move Forward        #if water ball below didnt hit the target, get around the corner.
  86.                                                     #It may still have a problem getting in range when target is already wet yet around the corner.
  87.                                                     #You may use Target Distance    >   1 instead of > 3 instead to avoid this.
  88. Target  Status      !=  Wet     Water Ball          #Make target wet.
  89. Target  Distance    >   1       Move Forward        #Get in melee range when all else fails.
  90. Target  Distance    =   1       Attack Melee        #Melee attack when all else fails.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement