Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created April 13, 2021 11:18
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/6765f2140eefb6859a49e63eed591f7a to your computer and use it in GitHub Desktop.
Save aEnigmatic/6765f2140eefb6859a49e63eed591f7a to your computer and use it in GitHub Desktop.
Scorn of the Erinyes
##
# Mission 'Scorn of the Erinyes - INT' (8998101)
# Enemy has first strike!
#
# Battles
# * Erinyes
##
##
# Monster Info
##
#
# Monster Erinyes (408011010, 408011000)
# Race Demon
# Level 99
# Actions 7-7
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 3500000000
# MP 6000
# ATK 2000
# DEF 200000
# MAG 2000
# SPR 100000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 220%
# Ice 220%
# Lightning 220%
# Water -100%
# Wind -100%
# Earth 220%
# Light 220%
# Dark -100%
# Non-Elemental 0%
#
#
# Status resist (+100% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 0%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Poison All (163330) [Magic]
#
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Infect All (163340) [Magic]
#
# Inflict Disease (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tranquilize All (163350) [Magic]
#
# Inflict Sleep (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Blind All (163360) [Magic]
#
# Inflict Blind (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Paralyze All (163370) [Magic]
#
# Inflict Paralyze (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Silence All (163380) [Magic]
#
# Inflict Silence (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Confuse All (163390) [Magic]
#
# Inflict Confusion (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Petrify All (163400) [Magic]
#
# Inflict Petrify (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beast Claw (163410) [Magic]
#
# Magic water and light damage (2x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Song of the Dead (163420) [Magic]
#
# Magic dark damage (4x, MAG) to all enemies
# Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deep Tsunami (163430) [Magic]
#
# Magic water and light damage (2.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fog of Conviction (163440) [Hybrid]
#
# Inflict Charm (100%) on one enemy for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wall of Resentment (163450) [Magic]
#
# Physical* damage (2x, ATK) to one enemy
# Inflict Blind and Silence (100%) on one enemy
# Unknown parameters: [1]
# Reflect all spell(s) for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Evil spirits are all around! (163460) [Magic]
#
# Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies
# Unused parameters: [1]
# Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Eye of the Killer (163470) [Magic]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(15, 'highest MP') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
apple = True # reset next turn
elif green == 0 and berry == False:
useSkill(1, 'random') # Poison All (163330): Inflict Poison (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 1 and berry == False:
useSkill(2, 'random') # Infect All (163340): Inflict Disease (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 2 and berry == False:
useSkill(3, 'random') # Tranquilize All (163350): Inflict Sleep (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 3 and berry == False:
useSkill(4, 'random') # Blind All (163360): Inflict Blind (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 4 and berry == False:
useSkill(5, 'random') # Paralyze All (163370): Inflict Paralyze (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 5 and berry == False:
useSkill(6, 'random') # Silence All (163380): Inflict Silence (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 6 and berry == False:
useSkill(7, 'random') # Confuse All (163390): Inflict Confusion (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 7 and berry == False:
useSkill(8, 'random') # Petrify All (163400): Inflict Petrify (100%) on all enemies
green = 0
berry = True # reset next turn
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest ATK') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest MAG') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest MP') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.7 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
honey = True # persistent
elif self.HP < 0.5 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(14, 'random') # Evil spirits are all around! (163460): Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies, Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
peach = True # reset next turn
elif self.HP < 0.7 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif self.HP < 0.4 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif self.HP < 0.2 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif isTurnMod(3) and olive == False:
useSkill(11, 'random') # Deep Tsunami (163430): Magic water and light damage (2.5x, MAG) to all enemies
olive = True # reset next turn
elif random() <= 0.15:
useSkill(9, 'lowest HP') # Beast Claw (163410): Magic water and light damage (2x, MAG) to one enemy
elif random() <= 0.07 and mango == False:
useSkill(13, 'random') # Wall of Resentment (163450): Physical* damage (2x, ATK) to one enemy, Inflict Blind and Silence (100%) on one enemy, Reflect all spell(s) for 3 turns to one enemy
mango = True # reset next turn
elif self.HP < 0.5 and peach == False and isTurnMod(4):
useSkill(14, 'random') # Evil spirits are all around! (163460): Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies, Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
peach = True # reset next turn
else:
attack('random')
##
# Mission 'Scorn of the Erinyes - ADV' (8998102)
# Enemy has first strike!
#
# Battles
# * Erinyes
##
##
# Monster Info
##
#
# Monster Erinyes (408011011, 408011000)
# Race Demon
# Level 99
# Actions 7-7
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 6000000000
# MP 6000
# ATK 5000
# DEF 200000
# MAG 5000
# SPR 100000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 220%
# Ice 220%
# Lightning 220%
# Water -100%
# Wind -100%
# Earth 220%
# Light 220%
# Dark -100%
# Non-Elemental 0%
#
#
# Status resist (+100% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 0%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Poison All (163330) [Magic]
#
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Infect All (163340) [Magic]
#
# Inflict Disease (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tranquilize All (163350) [Magic]
#
# Inflict Sleep (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Blind All (163360) [Magic]
#
# Inflict Blind (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Paralyze All (163370) [Magic]
#
# Inflict Paralyze (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Silence All (163380) [Magic]
#
# Inflict Silence (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Confuse All (163390) [Magic]
#
# Inflict Confusion (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Petrify All (163400) [Magic]
#
# Inflict Petrify (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beast Claw (163410) [Magic]
#
# Magic water and light damage (2x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Song of the Dead (163420) [Magic]
#
# Magic dark damage (4x, MAG) to all enemies
# Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deep Tsunami (163430) [Magic]
#
# Magic water and light damage (2.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fog of Conviction (163440) [Hybrid]
#
# Inflict Charm (100%) on one enemy for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wall of Resentment (163450) [Magic]
#
# Physical* damage (2x, ATK) to one enemy
# Inflict Blind and Silence (100%) on one enemy
# Unknown parameters: [1]
# Reflect all spell(s) for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Evil spirits are all around! (163460) [Magic]
#
# Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies
# Unused parameters: [1]
# Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Eye of the Killer (163470) [Magic]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(15, 'highest MP') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
apple = True # reset next turn
elif green == 0 and berry == False:
useSkill(1, 'random') # Poison All (163330): Inflict Poison (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 1 and berry == False:
useSkill(2, 'random') # Infect All (163340): Inflict Disease (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 2 and berry == False:
useSkill(3, 'random') # Tranquilize All (163350): Inflict Sleep (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 3 and berry == False:
useSkill(4, 'random') # Blind All (163360): Inflict Blind (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 4 and berry == False:
useSkill(5, 'random') # Paralyze All (163370): Inflict Paralyze (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 5 and berry == False:
useSkill(6, 'random') # Silence All (163380): Inflict Silence (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 6 and berry == False:
useSkill(7, 'random') # Confuse All (163390): Inflict Confusion (100%) on all enemies
green += 1
berry = True # reset next turn
elif green == 7 and berry == False:
useSkill(8, 'random') # Petrify All (163400): Inflict Petrify (100%) on all enemies
green = 0
berry = True # reset next turn
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest ATK') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest MAG') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.5 and honey == False and apple == False and once():
useSkill(15, 'highest MP') # Eye of the Killer (163470): Inflict Stop (100%) for 2 turns on one enemy
elif self.HP < 0.7 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
honey = True # persistent
elif self.HP < 0.5 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(10, 'random') # Song of the Dead (163420): Magic dark damage (4x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(14, 'random') # Evil spirits are all around! (163460): Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies, Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
peach = True # reset next turn
elif self.HP < 0.7 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif self.HP < 0.4 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif self.HP < 0.2 and once() and lemon == False:
useSkill(12, 'random') # Fog of Conviction (163440): Inflict Charm (100%) on one enemy for 2 turns
lemon = True # reset next turn
elif isTurnMod(3) and olive == False:
useSkill(11, 'random') # Deep Tsunami (163430): Magic water and light damage (2.5x, MAG) to all enemies
olive = True # reset next turn
elif random() <= 0.15:
useSkill(9, 'lowest HP') # Beast Claw (163410): Magic water and light damage (2x, MAG) to one enemy
elif random() <= 0.07 and mango == False:
useSkill(13, 'random') # Wall of Resentment (163450): Physical* damage (2x, ATK) to one enemy, Inflict Blind and Silence (100%) on one enemy, Reflect all spell(s) for 3 turns to one enemy
mango = True # reset next turn
elif self.HP < 0.5 and peach == False and isTurnMod(4):
useSkill(14, 'random') # Evil spirits are all around! (163460): Add Water, Light and Dark element (100%) to physical attacks for 3 turns to all enemies, Increase ATK, DEF, MAG and SPR by 20% for 3 turns to caster
peach = 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