Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created October 28, 2019 14: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/43bd7360306aa0e8ee22e4168bab445b to your computer and use it in GitHub Desktop.
Save aEnigmatic/43bd7360306aa0e8ee22e4168bab445b to your computer and use it in GitHub Desktop.
Demon Matsuri - PRO & ELT
##
# Mission 'Demon Matsuri - PRO' (9630301)
# Enemy has first strike!
#
# Battles
# * Obake Lantern
##
##
# Monster Info
##
#
# Monster Obake Lantern (900010701, 900010687)
# Race Demon, Fairy
# Level 60
# Actions 10-10
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 15000000
# MP 1000
# ATK 165
# DEF 300
# MAG 25
# SPR 800
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 50%
# Ice 50%
# Lightning 50%
# Water -50%
# Wind 50%
# Earth 50%
# Light 50%
# Dark 50%
# Non-Elemental 0%
#
#
# 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 +
#
###
###
# 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')
##
# Mission 'Demon Matsuri - ELT' (9630302)
# Enemy has first strike!
#
# Battles
# * Youkai Lantern
##
##
# Monster Info
##
#
# Monster Youkai Lantern (900010702, 900010687)
# Race Demon, Fairy
# Level 99
# Actions 12-12
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 26000000
# MP 100000
# ATK 600
# DEF 2000
# MAG 800
# SPR 2000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 80%
# Ice 80%
# Lightning 80%
# Water 0%
# Wind 80%
# Earth 80%
# Light 80%
# Dark 80%
# Non-Elemental 100%
#
#
# Status resist (+10% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 100%
# MAG 100%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# 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