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/02634af12544d6d05f6f1c551652661e to your computer and use it in GitHub Desktop.
Save aEnigmatic/02634af12544d6d05f6f1c551652661e to your computer and use it in GitHub Desktop.
Fixed-Party Trial - Maw of Malice
##
# Mission 'Fixed-Party Trial - Maw of Malice' (9970102)
# BattleScript: 900000040
#
# Battles
# * Maw of Malice
##
##
# Monster Info
##
#
# Monster Maw of Malice (900010788, 900010779)
# Race Demon
# Level 100
# Actions 50-50
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 300000000
# MP 100000
# ATK 250
# DEF 100
# MAG 300
# SPR 850
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 50%
# 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 II (900497) [None]
#
# Increase DEF and SPR by 200% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Killing Stance II (900498) [None]
#
# Increase ATK and MAG by 200% 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 -
#
##
#
# Paralyzing Miasma (900502) [Magic]
#
# Inflict Paralyze (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Immovable Miasma (900503) [Magic]
#
# Inflict Petrify (100%) on one enemy
# 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 -
#
##
#
# Flame Storm (900508) [Physical]
#
# Physical fire 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 -
#
##
#
# Molten Core (900510) [Magic]
#
# Magic fire 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 -
#
##
#
# Molten Blast (900514) [Physical]
#
# Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover)
# Reduce resistance to Fire 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 -
#
##
#
# Broken Mind (900493) [None]
#
# Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Unholy Purge (900518) [None]
#
# Remove all debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Degeneration (900519) [Magic]
#
# Magic damage (6x, MAG) to all enemies
# Reduce ATK by 50% for 8 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Terror (900520) [Magic]
#
# Magic damage (6x, MAG) to all enemies
# Reduce MAG by 50% for 8 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Despair (900521) [Magic]
#
# Magic damage (6x, MAG) to all enemies
# Reduce DEF by 50% for 8 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Black Misery (900522) [Magic]
#
# Magic damage (6x, MAG) to all enemies
# Reduce SPR by 50% for 8 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The enemy gazes at you... (900523) [Magic]
#
# Increase chance of being targeted by 200% for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dimensional Void (900524) [Magic]
#
# Magic damage (20x * 2 = 40x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Diabolical Judgement (900525) [Magic]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Disease (900526) [Magic]
#
# Remove resistances to Disease from all enemies for one turn
# Inflict Disease (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Merciless Death (900527) [None]
#
# Instant KO (100%) to all enemies (ignores death resist)
# Unknown parameters: [10,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if bacon == True and var_90 == False:
wait() # No action
var_90 = True # unknown flag type
mauve += 1
elif unit('5:enemy:any').usedLastTurn('limitburst') and bacon == True and fries == False and var_89 == False:
wait() # No action
var_89 = True # unknown flag type
black += 1
elif bacon == True and fries == False and black >= 4:
wait() # No action
black = 0
fries = True # persistent
elif bacon == False and self.HP < 0.05:
wait() # No action
bacon = True # persistent
elif salad == True:
endTurn()
elif bacon == True and fries == True and steak == False and self.HP < 0.01:
endTurn()
steak = True # persistent
elif bacon == True and salad == False and self.HP < 0.01:
useSkill(30, 'random') # Disease (900526): Remove resistances to Disease from all enemies for one turn, Inflict Disease (100%) on all enemies
salad = True # persistent
elif bacon == True and mauve >= 8:
useSkill(31, 'random') # Merciless Death (900527): Instant KO (100%) to all enemies (ignores death resist)
mauve = 0
bacon = False # persistent
elif random() <= 0.50 and isTurnMod(3) and berry == False and white >= 4:
useSkill(1, 'random') # Undying Force II (900497): Increase DEF and SPR by 200% for 2 turns to caster
berry = True # reset next turn
elif isTurnMod(3) and berry == False and white >= 4:
useSkill(2, 'random') # Killing Stance II (900498): Increase ATK and MAG by 200% for 2 turns to caster
berry = True # reset next turn
sushi = True # persistent
elif white >= 9:
endTurn()
white = 0
elif isTurnMod(5) and peach == False:
useSkill(27, 'random') # The enemy gazes at you... (900523): Increase chance of being targeted by 200% for 3 turns
peach = True # reset next turn
elif isTurnMod(5) and olive == False:
useSkill(7, 'random') # Immovable Miasma (900503): Inflict Petrify (100%) on one enemy
olive = True # reset next turn
elif var_87 == False and honey == True:
useSkill(13, 'random') # Event Horizon (900486): Magic dark damage (8x, MAG) to all enemies
honey = False # persistent
elif var_88 == False and ramen == True:
useSkill(14, 'random') # Molten Core (900510): Magic fire damage (8x, MAG) to all enemies
ramen = False # persistent
elif berry == False and sushi == True:
useSkill(28, 'random') # Dimensional Void (900524): Magic damage (20x * 2 = 40x, MAG) to all enemies (ignore reflect)
sushi = False # persistent
elif self.sufferedDamageLastTurn('physical', 'fire') and mango == False:
wait() # No action
green += 1
mango = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'fire') and mango == False:
wait() # No action
green += 1
mango = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'dark') and lemon == False:
wait() # No action
green += 1
lemon = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'dark') and lemon == False:
wait() # No action
green += 1
lemon = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'thunder') and grape == False:
wait() # No action
green += 1
grape = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'thunder') and grape == False:
wait() # No action
green += 1
grape = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'quake') and melon == False:
wait() # No action
green += 1
melon = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'quake') and melon == False:
wait() # No action
green += 1
melon = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'aero') and guava == False:
wait() # No action
green += 1
guava = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'aero') and guava == False:
wait() # No action
green += 1
guava = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'water') and gourd == False:
wait() # No action
green += 1
gourd = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'water') and gourd == False:
wait() # No action
green += 1
gourd = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'light') and var_61 == False:
wait() # No action
var_61 = True # unknown flag type
green += 1
elif self.sufferedDamageLastTurn('magical', 'light') and var_61 == False:
wait() # No action
var_61 = True # unknown flag type
green += 1
elif self.sufferedDamageLastTurn('physical', 'ice') and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
green += 1
elif self.sufferedDamageLastTurn('magical', 'ice') and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
green += 1
elif green >= 2 and apple == False:
useSkill(29, 'random') # Diabolical Judgement (900525): No effect
green = 0
apple = True # reset next turn
elif apple == False:
useSkill(22, 'random') # Unholy Purge (900518): Remove all debuffs from caster
green = 0
apple = True # reset next turn
elif mango == True and var_63 == False:
useSkill(23, 'random') # Degeneration (900519): Magic damage (6x, MAG) to all enemies, Reduce ATK by 50% for 8 turns to all enemies
var_63 = True # unknown flag type
elif mango == True and var_64 == False:
useSkill(17, '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
var_64 = True # unknown flag type
elif mango == True and var_65 == False:
useSkill(3, 'random') # Foul Miasma (900479): Inflict Poison (100%) on all enemies
var_65 = True # unknown flag type
elif lemon == True and var_66 == False:
useSkill(23, 'random') # Degeneration (900519): Magic damage (6x, MAG) to all enemies, Reduce ATK by 50% for 8 turns to all enemies
var_66 = True # unknown flag type
elif lemon == True and var_67 == False:
useSkill(17, '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
var_67 = True # unknown flag type
elif lemon == True and var_68 == False:
useSkill(3, 'random') # Foul Miasma (900479): Inflict Poison (100%) on all enemies
var_68 = True # unknown flag type
elif grape == True and var_69 == False:
useSkill(24, 'random') # Dark Terror (900520): Magic damage (6x, MAG) to all enemies, Reduce MAG by 50% for 8 turns to all enemies
var_69 = True # unknown flag type
elif grape == True and var_70 == False:
useSkill(17, '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
var_70 = True # unknown flag type
elif grape == True and var_71 == False:
useSkill(4, 'random') # Black Miasma (900480): Inflict Blind (100%) on all enemies
var_71 = True # unknown flag type
elif melon == True and var_72 == False:
useSkill(24, 'random') # Dark Terror (900520): Magic damage (6x, MAG) to all enemies, Reduce MAG by 50% for 8 turns to all enemies
var_72 = True # unknown flag type
elif melon == True and var_73 == False:
useSkill(17, '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
var_73 = True # unknown flag type
elif melon == True and var_74 == False:
useSkill(4, 'random') # Black Miasma (900480): Inflict Blind (100%) on all enemies
var_74 = True # unknown flag type
elif guava == True and var_75 == False:
useSkill(25, 'random') # Despair (900521): Magic damage (6x, MAG) to all enemies, Reduce DEF by 50% for 8 turns to all enemies
var_75 = True # unknown flag type
elif guava == True and var_76 == False:
useSkill(18, 'random') # Molten Blast (900514): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 100% for 3 turns to all enemies
var_76 = True # unknown flag type
elif guava == True and var_77 == False:
useSkill(5, 'random') # Chaotic Miasma (900481): Inflict Confusion (100%) on all enemies
var_77 = True # unknown flag type
elif gourd == True and var_78 == False:
useSkill(25, 'random') # Despair (900521): Magic damage (6x, MAG) to all enemies, Reduce DEF by 50% for 8 turns to all enemies
var_78 = True # unknown flag type
elif gourd == True and var_79 == False:
useSkill(18, 'random') # Molten Blast (900514): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 100% for 3 turns to all enemies
var_79 = True # unknown flag type
elif gourd == True and var_80 == False:
useSkill(5, 'random') # Chaotic Miasma (900481): Inflict Confusion (100%) on all enemies
var_80 = True # unknown flag type
elif var_61 == True and var_81 == False:
useSkill(26, 'random') # Black Misery (900522): Magic damage (6x, MAG) to all enemies, Reduce SPR by 50% for 8 turns to all enemies
var_81 = True # unknown flag type
elif var_61 == True and var_82 == False:
useSkill(18, 'random') # Molten Blast (900514): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 100% for 3 turns to all enemies
var_82 = True # unknown flag type
elif var_61 == True and var_83 == False:
useSkill(6, 'random') # Paralyzing Miasma (900502): Inflict Paralyze (100%) on one enemy
var_83 = True # unknown flag type
elif var_62 == True and var_84 == False:
useSkill(26, 'random') # Black Misery (900522): Magic damage (6x, MAG) to all enemies, Reduce SPR by 50% for 8 turns to all enemies
var_84 = True # unknown flag type
elif var_62 == True and var_85 == False:
useSkill(18, 'random') # Molten Blast (900514): Physical damage (10x * 2 = 20x, ATK) to all enemies (ignore cover), Reduce resistance to Fire by 100% for 3 turns to all enemies
var_85 = True # unknown flag type
elif var_62 == True and var_86 == False:
useSkill(6, 'random') # Paralyzing Miasma (900502): Inflict Paralyze (100%) on one enemy
var_86 = True # unknown flag type
elif random() <= 0.10 and self.HP < 0.8 and self.HP > 0.4:
useSkill(8, 'random') # Ethereal Barrier (900482): Increase resistance to all elements by 50% for one turn to caster
white += 1
elif random() <= 0.10 and self.HP < 0.8 and self.HP > 0.4:
useSkill(9, 'random') # Mystic Barricade (900483): Reduce magic damage taken by 50% to caster for one turn (can not be removed)
white += 1
elif random() <= 0.10 and self.HP < 0.8 and self.HP > 0.4:
useSkill(10, 'random') # Hardened Skin (900484): Reduce physical damage taken by 50% to caster for one turn (can not be removed)
white += 1
elif self.HP < 0.4 and once():
useSkill(21, 'random') # Broken Mind (900493): Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
elif self.HP < 0.4 and once():
useSkill(20, 'random') # Demonic Gaze (900491): Fixed* damage (10000) to one enemy
elif self.HP < 0.3 and once():
useSkill(21, 'random') # Broken Mind (900493): Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
elif self.HP < 0.3 and once():
useSkill(20, 'random') # Demonic Gaze (900491): Fixed* damage (10000) to one enemy
elif self.HP < 0.2 and once():
useSkill(21, 'random') # Broken Mind (900493): Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
elif self.HP < 0.2 and once():
useSkill(19, 'random') # Unholy Screech (900490): Fixed* damage (5000) to all enemies
elif self.HP < 0.1 and once():
useSkill(21, 'random') # Broken Mind (900493): Hybrid* damage (5x, ATK & MAG) as MP drain (50%) to all enemies
elif self.HP < 0.1 and once():
useSkill(19, 'random') # Unholy Screech (900490): Fixed* damage (5000) to all enemies
elif random() <= 0.10 and var_87 == False:
useSkill(11, 'random') # Dark Storm (900485): Physical dark damage (8x, ATK) to all enemies
var_87 = True # unknown flag type
honey = True # persistent
elif random() <= 0.10 and var_88 == False:
useSkill(12, 'random') # Flame Storm (900508): Physical fire damage (8x, ATK) to all enemies
var_88 = True # unknown flag type
ramen = True # persistent
elif random() <= 0.10 and var_87 == True:
useSkill(11, 'random') # Dark Storm (900485): Physical dark damage (8x, ATK) to all enemies
white += 1
elif random() <= 0.10 and var_88 == True:
useSkill(12, 'random') # Flame Storm (900508): Physical fire damage (8x, ATK) to all enemies
white += 1
elif random() <= 0.05:
useSkill(15, 'random') # Avenging Bite (900487): Physical damage (40x, ATK) to one enemy
white += 1
elif random() <= 0.30:
useSkill(16, 'random') # Diabolical Strike (900488): Physical damage (12x, ATK) to one enemy
white += 1
else:
attack('random')
white += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment