Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active September 27, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aEnigmatic/e226767fff22ae5670fed134a75e7310 to your computer and use it in GitHub Desktop.
Save aEnigmatic/e226767fff22ae5670fed134a75e7310 to your computer and use it in GitHub Desktop.
Anima 3* [AI only]
###
# Anima 3*
###
# Skills
###
#
# Pain (216281) [Magic]
#
# Cast Death (100%) or 60% chance to deal magic damage (2.5x * 1 = 2.5x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Abyss Blow (216282) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Endless Lament (216283) [None]
#
# Magic* damage (2.5x, MAG) per turn to one enemy for 5 turns
# Unused parameters: [0,0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Eternal Mourning (216284) [None]
#
# Magic* damage (2.8x, MAG) per turn to all enemies for 10 turns
# Unused parameters: [0,0,1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Firaga (216285) [Magic]
#
# Magic fire damage (4x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Thundaga (216286) [Magic]
#
# Magic lightning damage (4x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Blizzaga (216287) [Magic]
#
# Magic ice damage (4x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Waterga (216288) [Magic]
#
# Magic water damage (4x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Bioga (216289) [Magic]
#
# Magic dark damage (3.5x, MAG) to all enemies
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Dispel (216290) [Magic]
#
# Remove all buffs and debuffs from one enemy
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Curse of Chains (216291) [None]
#
# Inflict Zombie (100%) to one enemy
# Unused parameters: [[0,0,0,0,0,0,0,1]]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chain of Gold (216292) [Physical]
#
# Physical damage (4.5x, ATK) to all enemies
# Inflict Paralyze (60%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Silent Darkness (216293) [None]
#
# Inflict Stop (60%) for 3 turns on all enemies
# Inflict Blind and Silence (60%) on all enemies
# Unknown parameters: [1]
# Reduce resistance to Dark by 60% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Overstrain (216294) [None]
#
# Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chained Impulse (216295) [None]
#
# Increase ATK and MAG by 60% and DEF and SPR by 30% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Oblivion (216296) [Magic]
#
# Magic dark damage (8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Endless Dark Lunacy (216297) [None]
#
# Inflict berserk (+0% ATK) on one enemy
# Add Dark element (100%) to physical attacks for 10 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Howl of Lament (216298) [None]
#
# Restore 4444444 HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Soul-Sucking Chain (216299) [None]
#
# Hybrid* damage (1.5x, ATK & MAG) as HP drain (100%) to all enemies
# Hybrid* damage (0.05x, ATK & MAG) as MP drain (100%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(4, 'random') # Eternal Mourning (216284): Magic* damage (2.8x, MAG) per turn to all enemies for 10 turns
elif once():
useSkill(15, 'random') # Chained Impulse (216295): Increase ATK and MAG by 60% and DEF and SPR by 30% for 3 turns to caster
apple = True # reset next turn
elif self.HP < 0.9 and green >= 8 and once():
useSkill(4, 'random') # Eternal Mourning (216284): Magic* damage (2.8x, MAG) per turn to all enemies for 10 turns
elif self.HP < 0.9 and green >= 8 and once():
useSkill(16, 'random') # Oblivion (216296): Magic dark damage (8x, MAG) to all enemies
var_69 = True # unknown flag type
elif self.HP < 0.6 and green >= 8 and once() and var_69 == False:
useSkill(4, 'random') # Eternal Mourning (216284): Magic* damage (2.8x, MAG) per turn to all enemies for 10 turns
elif self.HP < 0.6 and green >= 8 and once() and var_69 == False:
useSkill(16, 'random') # Oblivion (216296): Magic dark damage (8x, MAG) to all enemies
elif self.HP < 0.6 and green >= 8 and once() and var_69 == False:
useSkill(11, 'highest ATK') # Curse of Chains (216291): Inflict Zombie (100%) to one enemy
var_70 = True # unknown flag type
elif self.HP < 0.3 and green >= 8 and once() and var_69 == False and var_70 == False:
useSkill(4, 'random') # Eternal Mourning (216284): Magic* damage (2.8x, MAG) per turn to all enemies for 10 turns
elif self.HP < 0.3 and green >= 8 and once() and var_69 == False and var_70 == False:
useSkill(16, 'random') # Oblivion (216296): Magic dark damage (8x, MAG) to all enemies
elif self.HP < 0.3 and green >= 8 and once() and var_69 == False and var_70 == False:
useSkill(11, 'highest ATK') # Curse of Chains (216291): Inflict Zombie (100%) to one enemy
var_70 = True # unknown flag type
elif self.hasDebuff('any') and green >= 8 and isTurnMod(3) and melon == False:
useSkill(14, 'random') # Overstrain (216294): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster
melon = True # reset next turn
elif self.HP > 0.5 and green >= 8 and isTurnMod(4) and var_65 == False:
useSkill(15, 'random') # Chained Impulse (216295): Increase ATK and MAG by 60% and DEF and SPR by 30% for 3 turns to caster
var_65 = True # unknown flag type
elif self.HP < 0.5 and green >= 8 and isTurnMod(3) and var_65 == False:
useSkill(15, 'random') # Chained Impulse (216295): Increase ATK and MAG by 60% and DEF and SPR by 30% for 3 turns to caster
var_65 = True # unknown flag type
elif green >= 8 and sushi == True and var_66 == False:
useSkill(9, 'random') # Bioga (216289): Magic dark damage (3.5x, MAG) to all enemies, Inflict Poison (100%) on all enemies
var_66 = True # unknown flag type
sushi = False # persistent
elif self.HP < 0.4 and green >= 8 and isTurnMod(3) and guava == False:
useSkill(17, 'random') # Endless Dark Lunacy (216297): Inflict berserk (+0% ATK) on one enemy, Add Dark element (100%) to physical attacks for 10 turns to one enemy
guava = True # reset next turn
elif green >= 8 and isTurnMod(6) and var_67 == False:
useSkill(19, 'random') # Soul-Sucking Chain (216299): Hybrid* damage (1.5x, ATK & MAG) as HP drain (100%) to all enemies, Hybrid* damage (0.05x, ATK & MAG) as MP drain (100%) to all enemies
var_67 = True # unknown flag type
elif green >= 8 and isTurnMod(5) and var_68 == False:
useSkill(18, 'random') # Howl of Lament (216298): Restore 4444444 HP to caster
var_68 = True # unknown flag type
elif green >= 8:
endTurn()
green = 0
elif self.HP > 0.5 and isTurnMod(3) and gourd == False:
useSkill(3, 'random') # Endless Lament (216283): Magic* damage (2.5x, MAG) per turn to one enemy for 5 turns
gourd = True # reset next turn
elif self.HP < 0.5 and isTurnMod(2) and gourd == False:
useSkill(3, 'random') # Endless Lament (216283): Magic* damage (2.5x, MAG) per turn to one enemy for 5 turns
gourd = True # reset next turn
elif self.HP > 0.6 and isTurnMod(2) and peach == False:
useSkill(12, 'random') # Chain of Gold (216292): Physical damage (4.5x, ATK) to all enemies, Inflict Paralyze (60%) on all enemies
green += 1
peach = True # reset next turn
elif self.HP < 0.6 and peach == False:
useSkill(12, 'random') # Chain of Gold (216292): Physical damage (4.5x, ATK) to all enemies, Inflict Paralyze (60%) on all enemies
green += 1
peach = True # reset next turn
elif honey == False and berry == False:
useSkill(5, 'random') # Firaga (216285): Magic fire damage (4x, MAG) to all enemies
green += 1
berry = True # reset next turn
elif honey == True and berry == False:
useSkill(7, 'random') # Blizzaga (216287): Magic ice damage (4x, MAG) to all enemies
green += 1
berry = True # reset next turn
elif random() <= 0.50 and isTurnMod(4) and grape == False:
useSkill(10, 'highest DEF') # Dispel (216290): Remove all buffs and debuffs from one enemy
grape = True # reset next turn
elif isTurnMod(4) and grape == False:
useSkill(10, 'random') # Dispel (216290): Remove all buffs and debuffs from one enemy
grape = True # reset next turn
elif ramen == False and var_62 == False and var_61 == False:
useSkill(1, 'highest DEF') # Pain (216281): Cast Death (100%) or 60% chance to deal magic damage (2.5x * 1 = 2.5x, MAG) to one enemy
var_62 = True # unknown flag type
var_61 = True # unknown flag type
elif ramen == False and var_63 == False and var_64 == False:
useSkill(1, 'random') # Pain (216281): Cast Death (100%) or 60% chance to deal magic damage (2.5x * 1 = 2.5x, MAG) to one enemy
var_64 = True # unknown flag type
var_63 = True # unknown flag type
ramen = True # persistent
elif ramen == True and var_61 == False:
useSkill(2, 'highest ATK') # Abyss Blow (216282): Physical damage (3x, ATK) to one enemy
var_61 = True # unknown flag type
elif ramen == True and var_62 == False:
useSkill(2, 'highest ATK') # Abyss Blow (216282): Physical damage (3x, ATK) to one enemy
var_62 = True # unknown flag type
elif ramen == True and var_63 == False:
useSkill(2, 'highest ATK') # Abyss Blow (216282): Physical damage (3x, ATK) to one enemy
var_63 = True # unknown flag type
elif ramen == True and var_64 == False:
useSkill(2, 'highest ATK') # Abyss Blow (216282): Physical damage (3x, ATK) to one enemy
var_64 = True # unknown flag type
ramen = False # persistent
elif honey == False and olive == False:
useSkill(6, 'random') # Thundaga (216286): Magic lightning damage (4x, MAG) to all enemies
green += 1
olive = True # reset next turn
honey = True # persistent
elif honey == True and olive == False:
useSkill(8, 'random') # Waterga (216288): Magic water damage (4x, MAG) to all enemies
green += 1
olive = True # reset next turn
honey = False # persistent
elif self.HP > 0.6 and isTurnMod(5) and mango == False:
useSkill(13, 'random') # Silent Darkness (216293): Inflict Stop (60%) for 3 turns on all enemies, Inflict Blind and Silence (60%) on all enemies, Reduce resistance to Dark by 60% for 3 turns to all enemies
green += 1
mango = True # reset next turn
sushi = True # persistent
elif self.HP < 0.6 and isTurnMod(4) and mango == False:
useSkill(13, 'random') # Silent Darkness (216293): Inflict Stop (60%) for 3 turns on all enemies, Inflict Blind and Silence (60%) on all enemies, Reduce resistance to Dark by 60% for 3 turns to all enemies
green += 1
mango = True # reset next turn
sushi = True # persistent
elif self.HP < 0.4 and lemon == False:
useSkill(12, 'random') # Chain of Gold (216292): Physical damage (4.5x, ATK) to all enemies, Inflict Paralyze (60%) on all enemies
green += 1
lemon = True # reset next turn
else:
attack('random')
green += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment