Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created December 27, 2019 06:12
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/1f80792e2e73ecc8942dabef17864ff0 to your computer and use it in GitHub Desktop.
Save aEnigmatic/1f80792e2e73ecc8942dabef17864ff0 to your computer and use it in GitHub Desktop.
Fixed-Party Trial - Essence of Despair
##
# Mission 'Fixed-Party Trial - Essence of Despair' (9970101)
# BattleScript: 900000041
#
# Battles
# * Essence of Despair
##
##
# Monster Info
##
#
# Monster Essence of Despair (900010787, 900010778)
# Race Demon
# Level 100
# Actions 50-50
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 500000000
# MP 100000
# ATK 400
# DEF 850
# MAG 300
# SPR 200
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light 100%
# Dark 100%
# Non-Elemental 80%
#
#
# Status resist (+10% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ60% (100048) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 60%
#
##
###
# Skills
###
#
# Undying Force (900477) [None]
#
# Increase DEF and SPR by 100% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Killing Stance (900478) [None]
#
# Increase ATK and MAG by 100% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Foul Miasma (900479) [Magic]
#
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Black Miasma (900480) [Magic]
#
# Inflict Blind (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chaotic Miasma (900481) [Magic]
#
# Inflict Confusion (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ethereal Barrier (900482) [None]
#
# Increase resistance to all elements by 50% for one turn to caster
# Unused parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Mystic Barricade (900483) [None]
#
# Reduce magic damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hardened Skin (900484) [None]
#
# Reduce physical damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Storm (900485) [Physical]
#
# Physical dark damage (8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Event Horizon (900486) [Magic]
#
# Magic dark damage (8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Avenging Bite (900487) [Physical]
#
# Physical damage (40x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Diabolical Strike (900488) [Physical]
#
# Physical damage (12x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Depression (900489) [Physical]
#
# Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover)
# Reduce resistance to Dark by 100% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Unholy Screech (900490) [Physical]
#
# Fixed* damage (5000) to all enemies
#
# Sealable - Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Demonic Gaze (900491) [Physical]
#
# Fixed* damage (10000) to one enemy
#
# Sealable - Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Mad Rampage (900492) [Physical]
#
# Physical damage (12x * 2 = 24x, ATK) to all enemies (ignore cover)
# Reduce resistance to Fire by 300% for one turn to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Broken Mind (900493) [None]
#
# Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Incantation Blast (900494) [Magic]
#
# Magic damage (16x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if random() <= 0.50 and isTurnMod(3) and apple == False and white >= 4:
useSkill(1, 'random') # Undying Force (900477): Increase DEF and SPR by 100% for 2 turns to caster
apple = True # reset next turn
elif isTurnMod(3) and apple == False and white >= 4:
useSkill(2, 'random') # Killing Stance (900478): Increase ATK and MAG by 100% for 2 turns to caster
apple = True # reset next turn
honey = True # persistent
elif random() <= 0.10 and self.HP < 0.5 and lemon == False and white >= 4:
useSkill(2, 'random') # Killing Stance (900478): Increase ATK and MAG by 100% for 2 turns to caster
lemon = True # reset next turn
honey = True # persistent
elif white >= 9:
endTurn()
white = 0
elif sushi == True:
endTurn()
elif self.HP < 0.01 and sushi == False:
useSkill(17, 'random') # Broken Mind (900493): Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
sushi = True # persistent
elif apple == False and honey == True:
useSkill(13, 'random') # Dark Depression (900489): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Dark by 100% for 3 turns to all enemies
apple = True # reset next turn
honey = False # persistent
elif green >= 4 and green < 9 and berry == False:
useSkill(3, 'random') # Foul Miasma (900479): Inflict Poison (100%) on all enemies
green += 1
berry = True # reset next turn
elif random() <= 0.05 and green >= 4 and green < 9 and peach == False:
useSkill(4, 'random') # Black Miasma (900480): Inflict Blind (100%) on all enemies
green += 1
peach = True # reset next turn
elif random() <= 0.05 and green >= 4 and green < 9 and olive == False:
useSkill(5, 'random') # Chaotic Miasma (900481): Inflict Confusion (100%) on all enemies
green += 1
olive = True # reset next turn
elif green >= 8 and green < 16 and berry == False:
useSkill(4, 'random') # Black Miasma (900480): Inflict Blind (100%) on all enemies
green += 1
berry = True # reset next turn
elif random() <= 0.03 and green >= 8 and green < 16:
useSkill(11, 'random') # Avenging Bite (900487): Physical damage (40x, ATK) to one enemy
white += 1
elif random() <= 0.05 and green >= 8 and green < 16 and peach == False:
useSkill(15, 'random') # Demonic Gaze (900491): Fixed* damage (10000) to one enemy
peach = True # reset next turn
ramen = True # persistent
elif random() <= 0.01 and green >= 8 and green < 16 and olive == False:
useSkill(16, 'random') # Mad Rampage (900492): Physical damage (12x * 2 = 24x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 300% for one turn to caster
green = 0
olive = True # reset next turn
elif green >= 15 and berry == False:
useSkill(5, 'random') # Chaotic Miasma (900481): Inflict Confusion (100%) on all enemies
green += 1
berry = True # reset next turn
elif random() <= 0.10 and green >= 15:
useSkill(11, 'random') # Avenging Bite (900487): Physical damage (40x, ATK) to one enemy
white += 1
elif random() <= 0.05 and green >= 15 and peach == False:
useSkill(15, 'random') # Demonic Gaze (900491): Fixed* damage (10000) to one enemy
peach = True # reset next turn
ramen = True # persistent
elif random() <= 0.30 and green >= 15 and olive == False:
useSkill(16, 'random') # Mad Rampage (900492): Physical damage (12x * 2 = 24x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 300% for one turn to caster
green = 0
olive = True # reset next turn
elif peach == False and ramen == True:
useSkill(14, 'random') # Unholy Screech (900490): Fixed* damage (5000) to all enemies
peach = True # reset next turn
ramen = False # persistent
elif random() <= 0.33 and self.HP < 0.5 and mango == False:
useSkill(6, 'random') # Ethereal Barrier (900482): Increase resistance to all elements by 50% for one turn to caster
mango = True # reset next turn
elif random() <= 0.66 and self.HP < 0.5 and mango == False:
useSkill(7, 'random') # Mystic Barricade (900483): Reduce magic damage taken by 50% to caster for one turn (can not be removed)
mango = True # reset next turn
elif self.HP < 0.5 and mango == False:
useSkill(8, 'random') # Hardened Skin (900484): Reduce physical damage taken by 50% to caster for one turn (can not be removed)
mango = True # reset next turn
elif random() <= 0.03 and self.HP < 0.5:
useSkill(9, 'random') # Dark Storm (900485): Physical dark damage (8x, ATK) to all enemies
white += 1
green += 1
elif random() <= 0.10 and self.HP < 0.5:
useSkill(13, 'random') # Dark Depression (900489): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Dark by 100% for 3 turns to all enemies
white += 1
elif random() <= 0.10 and self.HP < 0.5:
useSkill(10, 'random') # Event Horizon (900486): Magic dark damage (8x, MAG) to all enemies
white += 1
green += 1
elif random() <= 0.20 and self.HP < 0.5:
useSkill(12, 'random') # Diabolical Strike (900488): Physical damage (12x, ATK) to one enemy
white += 1
green += 1
elif random() <= 0.15 and self.HP < 0.5:
useSkill(18, 'random') # Incantation Blast (900494): Magic damage (16x, MAG) to all enemies
white += 1
elif random() <= 0.03 and self.HP > 0.5:
useSkill(9, 'random') # Dark Storm (900485): Physical dark damage (8x, ATK) to all enemies
white += 1
green += 1
elif random() <= 0.05 and self.HP > 0.5:
useSkill(13, 'random') # Dark Depression (900489): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Dark by 100% for 3 turns to all enemies
white += 1
elif random() <= 0.05 and self.HP > 0.5:
useSkill(10, 'random') # Event Horizon (900486): Magic dark damage (8x, MAG) to all enemies
white += 1
green += 1
elif random() <= 0.20 and self.HP > 0.5:
useSkill(12, 'random') # Diabolical Strike (900488): Physical damage (12x, ATK) to one enemy
white += 1
green += 1
else:
attack('random')
white += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment