Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created January 31, 2018 12:16
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/ac4d6f02de55a6fa23f4302ed60de961 to your computer and use it in GitHub Desktop.
Save aEnigmatic/ac4d6f02de55a6fa23f4302ed60de961 to your computer and use it in GitHub Desktop.
Leviathan 3* AI ONLY
###
# Leviathan
###
# Skills
###
#
# 大海嘯 (Magic)
#
# Magic water damage (45x, MAG) to all enemies
# Reduce resistance to Water by 30% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ウォタジャ (Magic)
#
# Magic water damage (30x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ブリザジャ (Magic)
#
# Magic ice damage (30x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# 石化にらみ (None)
#
# Inflict Petrify (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 叩きつける (Physical)
#
# Physical damage (5x, ATK) to one enemy
# Reduce DEF and SPR by 50% for 5 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 薙ぎ払う (Physical)
#
# Physical damage (5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 止封の水泡 (None)
#
# Inflict Stop (100%) for 2 turns on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 水の渦がリヴァイアサンを包む (None)
#
# Reduce damage taken by 99% to caster for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 水の渦が凍りだした (None)
#
# Reduce damage taken by 99% to caster for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 水の渦が壊れた! (None)
#
# No effect.
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 濁流 (None)
#
# Magic* water damage (40x, MAG) to all enemies
# Remove one enemy from the fight
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# バブルボム (Magic)
#
# Magic damage (7x, MAG) to one enemy
# Reduce ATK, DEF, MAG and SPR by 50% for 2 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# あたりに水が満ちる (Magic)
#
# Add Water element to physical attacks for 3 turn(s) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
end_turn()
elif honey == False and green == 3 and berry == False and once():
useSkill(10, 'random') # 水の渦が壊れた! (191910): No effect.
berry = True # reset next turn
honey = True # persistent
elif honey == False and once():
useSkill(8, 'random') # 水の渦がリヴァイアサンを包む (191890): Reduce damage taken by 99% to caster for one turn
berry = True # reset next turn
elif unit('player_any').sufferedDamageLastTurn('ice', 'phys') and honey == False and berry == False:
useSkill(9, 'random') # 水の渦が凍りだした (191900): Reduce damage taken by 99% to caster for one turn
berry = True # reset next turn
green += 1
elif unit('player_any').sufferedDamageLastTurn('ice', 'mag') and honey == False and berry == False:
useSkill(9, 'random') # 水の渦が凍りだした (191900): Reduce damage taken by 99% to caster for one turn
berry = True # reset next turn
green += 1
elif honey == False and berry == False:
useSkill(8, 'random') # 水の渦がリヴァイアサンを包む (191890): Reduce damage taken by 99% to caster for one turn
berry = True # reset next turn
elif honey == True and once():
useSkill(11, 'random') # 濁流 (191920): Magic* water damage (40x, MAG) to all enemies, Remove one enemy from the fight
apple = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(1, 'random') # 大海嘯 (191820): Magic water damage (45x, MAG) to all enemies, Reduce resistance to Water by 30% for 3 turns to all enemies
ramen = True # persistent
elif self.HP < 0.4 and once():
useSkill(1, 'random') # 大海嘯 (191820): Magic water damage (45x, MAG) to all enemies, Reduce resistance to Water by 30% for 3 turns to all enemies
ramen = True # persistent
elif ramen == True and peach == False:
useSkill(13, 'random') # あたりに水が満ちる (191940): Add Water element to physical attacks for 3 turn(s) to all enemies
apple = True # reset next turn
ramen = False # persistent
elif self.HP < 0.8 and peach == False:
useSkill(7, 'random') # 止封の水泡 (191880): Inflict Stop (100%) for 2 turns on all enemies
peach = True # reset next turn
elif self.HP < 0.6 and olive == False:
useSkill(12, 'random') # バブルボム (191930): Magic damage (7x, MAG) to one enemy, Reduce ATK, DEF, MAG and SPR by 50% for 2 turns to one enemy
olive = True # reset next turn
elif self.HP < 0.5 and mango == False:
useSkill(2, 'random') # ウォタジャ (191830): Magic water damage (30x, MAG) to all enemies
mango = True # reset next turn
elif isTurnMod(2) and mango == False and lemon == False:
useSkill(2, 'random') # ウォタジャ (191830): Magic water damage (30x, MAG) to all enemies
lemon = True # reset next turn
elif lemon == False:
useSkill(3, 'random') # ブリザジャ (191840): Magic ice damage (30x, MAG) to all enemies
lemon = True # reset next turn
elif isTurnMod(2) and grape == False:
useSkill(6, 'random') # 薙ぎ払う (191870): Physical damage (5x, ATK) to all enemies
grape = True # reset next turn
elif isTurnMod(2) and gourd == False:
useSkill(4, 'random') # 石化にらみ (191850): Inflict Petrify (100%) on one enemy
gourd = True # reset next turn
elif melon == False:
useSkill(6, 'random') # 薙ぎ払う (191870): Physical damage (5x, ATK) to all enemies
melon = True # reset next turn
elif guava == False:
useSkill(5, 'random') # 叩きつける (191860): Physical damage (5x, ATK) to one enemy, Reduce DEF and SPR by 50% for 5 turns to one enemy
guava = True # reset next turn
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment