Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created August 23, 2019 12:20
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/d071ae51caa871a41016c98f40b741af to your computer and use it in GitHub Desktop.
Save aEnigmatic/d071ae51caa871a41016c98f40b741af to your computer and use it in GitHub Desktop.
March of the Demons
##
# Mission 'March of the Demons' (9800101)
# Enemy has first strike!
#
# Battles
# * Youkai Lantern
##
##
# Monster Info
##
#
# Monster Youkai Lantern (900010687)
# Race Demon, Fairy
# Level 99
# Actions 12-12
#
#
# Stats
# HP 15000000
# MP 10000
# ATK 1500
# DEF 3000
# MAG 800
# SPR 3000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 100%
# Water 20%
# Wind 100%
# Earth 100%
# Light 100%
# Dark 100%
# Non-Elemental 200%
#
#
# Status resist (+10% / application)
# Poison 50%
# Blind 50%
# Sleep 50%
# Silence 50%
# Paralyze 50%
# Confusion 50%
# Disease 50%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 0%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 0%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Melting Candle (900363) [Physical]
#
# Physical damage (3x, ATK) to all enemies
# Physical damage (3x, ATK) per turn to all enemies for 10 turns
# Unused parameters: [0,0,900363]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Light It Up (900364) [Physical]
#
# Physical fire damage (5x, ATK) to all enemies
# Physical fire damage (5x, ATK) per turn to all enemies for 5 turns
# Unused parameters: [0,0,900364]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mesmerizing Blaze (900367) [Physical]
#
# Physical damage (2x, ATK) to one enemy
# Inflict Confusion (50%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Stunning Blaze (900368) [Physical]
#
# Physical damage (2x, ATK) to one enemy
# Inflict Paralyze (50%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Immobilizing Blaze (900369) [Physical]
#
# Physical damage (2x, ATK) to one enemy
# Inflict Petrify (50%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Calming Blaze (900370) [Physical]
#
# Physical damage (2x, ATK) to one enemy
# Inflict Silence (50%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dispersing Smoke (900372) [None]
#
# Increase break resistance to DEF and SPR by 100% for one turn to caster
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Purifying Pyre (900373) [None]
#
# Cure all status effects for caster
# Remove ATK and MAG debuff from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sea of Flames (900374) [Physical]
#
# Physical fire damage (10x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Burning Soul (900375) [None]
#
# Physical* fire damage (3x, ATK) to one random enemy
# Physical* fire damage (4x, ATK) to one random enemy
# Physical* fire damage (5x, ATK) to one random enemy
# Physical* fire damage (6x, ATK) to one random enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spontaneous Combustion (900376) [None]
#
# Increase ATK by 100% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Haunting Curse (900377) [None]
#
# Inflict Silence, Paralyze, Confusion and Petrify (50%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Devouring Blaze (900378) [Physical]
#
# Physical fire damage (5x, ATK) as HP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sick Burn (900379) [Physical]
#
# Physical damage (1x, ATK) to all enemies
# Reduce resistance to Fire by 200% for 3 turns to all enemies
# Unused parameters: [1]
# Physical damage (5x, ATK) to one random enemy
# Physical damage (5x, ATK) to one random enemy
# Physical damage (5x, ATK) to one random enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Obliterating Wrath (900380) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ethereal Wrath (900381) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Corporeal Wrath (900382) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Desolating Wrath (900383) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == True:
endTurn()
honey = False # persistent
elif once():
useSkill(1, 'random') # Melting Candle (900363): Physical damage (3x, ATK) to all enemies, Physical damage (3x, ATK) per turn to all enemies for 10 turns
elif once():
useSkill(7, 'random') # Dispersing Smoke (900372): Increase break resistance to DEF and SPR by 100% for one turn to caster
honey = True # persistent
elif self.hasStatus('any') and apple == False:
useSkill(8, 'random') # Purifying Pyre (900373): Cure all status effects for caster, Remove ATK and MAG debuff from caster
apple = True # reset next turn
elif apple == False and berry == False:
useSkill(7, 'random') # Dispersing Smoke (900372): Increase break resistance to DEF and SPR by 100% for one turn to caster
berry = True # reset next turn
elif peach == False and isTurnMod(4):
useSkill(9, 'random') # Sea of Flames (900374): Physical fire damage (10x, ATK) to all enemies
peach = True # reset next turn
elif unit('5:enemy:any').usedLastTurn('limitburst') and olive == False:
useSkill(14, 'random') # Sick Burn (900379): Physical damage (1x, ATK) to all enemies, Reduce resistance to Fire by 200% for 3 turns to all enemies, Physical damage (5x, ATK) to one random enemy, Physical damage (5x, ATK) to one random enemy, Physical damage (5x, ATK) to one random enemy
olive = True # reset next turn
elif var_63 == True:
useSkill(15, 'atk_min') # Obliterating Wrath (900380): Physical damage (3x, ATK) to one enemy
var_63 = False # unknown flag type
elif var_64 == True:
useSkill(16, 'mind_min') # Ethereal Wrath (900381): Physical damage (3x, ATK) to one enemy
var_64 = False # unknown flag type
elif var_65 == True:
useSkill(17, 'def_min') # Corporeal Wrath (900382): Physical damage (3x, ATK) to one enemy
var_65 = False # unknown flag type
elif var_66 == True:
useSkill(18, 'int_min') # Desolating Wrath (900383): Physical damage (3x, ATK) to one enemy
var_66 = False # unknown flag type
elif self.HP < 0.3 and once() and peach == False:
useSkill(14, 'random') # Sick Burn (900379): Physical damage (1x, ATK) to all enemies, Reduce resistance to Fire by 200% for 3 turns to all enemies, Physical damage (5x, ATK) to one random enemy, Physical damage (5x, ATK) to one random enemy, Physical damage (5x, ATK) to one random enemy
elif self.HP < 0.3 and once() and peach == False:
useSkill(11, 'random') # Spontaneous Combustion (900376): Increase ATK by 100% for 3 turns to caster
elif random() <= 0.50 and self.HP < 0.3 and mango == False and peach == True:
useSkill(1, 'random') # Melting Candle (900363): Physical damage (3x, ATK) to all enemies, Physical damage (3x, ATK) per turn to all enemies for 10 turns
mango = True # reset next turn
elif self.HP < 0.5 and once() and peach == False:
useSkill(11, 'random') # Spontaneous Combustion (900376): Increase ATK by 100% for 3 turns to caster
elif random() <= 0.50 and self.HP < 0.5 and lemon == False and peach == True:
useSkill(13, 'random') # Devouring Blaze (900378): Physical fire damage (5x, ATK) as HP drain (50%) to one enemy
lemon = True # reset next turn
elif self.HP < 0.8 and once() and peach == False:
useSkill(11, 'random') # Spontaneous Combustion (900376): Increase ATK by 100% for 3 turns to caster
elif random() <= 0.50 and self.HP < 0.8 and grape == False and peach == True:
useSkill(12, 'random') # Haunting Curse (900377): Inflict Silence, Paralyze, Confusion and Petrify (50%) on all enemies
grape = True # reset next turn
elif random() <= 0.50 and self.HP < 0.8 and melon == False and peach == False:
useSkill(4, 'highest ATK') # Stunning Blaze (900368): Physical damage (2x, ATK) to one enemy, Inflict Paralyze (50%) on one enemy
var_63 = True # unknown flag type
melon = True # reset next turn
elif random() <= 0.50 and self.HP < 0.8 and guava == False and peach == False:
useSkill(5, 'highest SPR') # Immobilizing Blaze (900369): Physical damage (2x, ATK) to one enemy, Inflict Petrify (50%) on one enemy
var_64 = True # unknown flag type
guava = True # reset next turn
elif random() <= 0.50 and self.HP < 0.8 and gourd == False and peach == False:
useSkill(6, 'highest DEF') # Calming Blaze (900370): Physical damage (2x, ATK) to one enemy, Inflict Silence (50%) on one enemy
var_65 = True # unknown flag type
gourd = True # reset next turn
elif random() <= 0.50 and self.HP < 0.8 and var_61 == False and peach == False:
useSkill(7, 'highest MAG') # Dispersing Smoke (900372): Increase break resistance to DEF and SPR by 100% for one turn to caster
var_66 = True # unknown flag type
var_61 = True # unknown flag type
elif random() <= 0.50 and self.HP < 0.8 and peach == True:
useSkill(15, 'atk_min') # Obliterating Wrath (900380): Physical damage (3x, ATK) to one enemy
elif random() <= 0.50 and self.HP < 0.8 and peach == True:
useSkill(16, 'mind_min') # Ethereal Wrath (900381): Physical damage (3x, ATK) to one enemy
elif random() <= 0.50 and self.HP < 0.8 and peach == True:
useSkill(17, 'def_min') # Corporeal Wrath (900382): Physical damage (3x, ATK) to one enemy
elif random() <= 0.50 and self.HP < 0.8 and peach == True:
useSkill(18, 'int_min') # Desolating Wrath (900383): Physical damage (3x, ATK) to one enemy
elif random() <= 0.50 and peach == True and var_62 == False:
useSkill(10, 'random') # Burning Soul (900375): Physical* fire damage (3x, ATK) to one random enemy, Physical* fire damage (4x, ATK) to one random enemy, Physical* fire damage (5x, ATK) to one random enemy, Physical* fire damage (6x, ATK) to one random enemy
var_62 = True # unknown flag type
elif random() <= 0.30:
useSkill(2, 'random') # Light It Up (900364): Physical fire damage (5x, ATK) to all enemies, Physical fire damage (5x, ATK) per turn to all enemies for 5 turns
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment