Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created November 12, 2020 13:48
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/3b58e197a72a327c720877cf3d0c3e84 to your computer and use it in GitHub Desktop.
Save aEnigmatic/3b58e197a72a327c720877cf3d0c3e84 to your computer and use it in GitHub Desktop.
Scorn of the Beasts of the Dark II
##
# Mission 'Scorn of the Beasts of the Dark II' (8995704)
# Enemy has first strike!
#
# Battles
# * Dark Shiva, Dark Golem
##
##
# Monster Info
##
#
# Monster Dark Shiva (205028004, 205028001)
# Race Human
# Level 99
# Actions 12-12
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 600000000
# MP 100000
# ATK 2500
# DEF 3600
# MAG 2500
# SPR 5600
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -100%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# 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 0%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 氷属性吸収 (100004) [Passive]
#
# Absorb Ice elemental attacks
#
##
#
# 全ステ50% (100065) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
#
# 闇属性吸収 (100013) [Passive]
#
# Absorb Dark elemental attacks
#
##
###
# Skills
###
#
# Osmose (219849) [Magic]
#
# Magic damage (0.75x, MAG) as MP drain (75%) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Silencega (219850) [Magic]
#
# Inflict Silence (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Shooting Hail (219851) [Physical]
#
# Physical damage (5x, ATK) to all enemies
# Reduce DEF and SPR by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Curada (219852) [Magic]
#
# Restore 10% HP to one ally
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Blizzard (219853) [Magic]
#
# Magic ice and dark damage (10x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Blizzaja (219854) [Magic]
#
# Magic ice and dark damage (18x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Black Diamond Dust (219855) [Magic]
#
# Magic ice and dark damage (25x, MAG) to all enemies
# Reduce resistance to Ice and Dark by 120% for 3 turns to all enemies
# Unused parameters: [1]
# Reduce ATK and MAG by 100% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Alluring Eye (219856) [None]
#
# Inflict Charm (100%) on one enemy for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crystal Shell (219857) [None]
#
# Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Anti-Magic Fire & Wind Barrier (219858) [None]
#
# Reduce magic damage taken by 100% to all allies for one turn (can not be removed)
# Unused parameters: [1]
# Increase resistance to Fire and Wind by 1000% for 3 turns to all allies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Octocolored Ice Shield (219859) [None]
#
# Increase resistance to all elements by 30% for 2 turns to all allies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dispel (219860) [Magic]
#
# Remove all buffs from one enemy
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Demonic Breath (219861) [Magic]
#
# Magic damage (15x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Necro Breath (219862) [None]
#
# Inflict Zombie (100%) to one enemy
# Unused parameters: [[0,0,0,0,0,0,0,1]]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
green = 0
elif once():
useSkill(8, 'highest SPR') # Alluring Eye (219856): Inflict Charm (100%) on one enemy for 2 turns
apple = True # reset next turn
elif unit('3:ally:2:Dark Golem').is('alive') and ramen == True:
endTurn()
elif honey == False and green == 4:
endTurn()
green = 0
elif unit('3:ally:2:Dark Golem').is('dead') and once():
useSkill(9, 'random') # Crystal Shell (219857): Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
honey = True # persistent
elif honey == True and berry == False:
useSkill(7, 'random') # Black Diamond Dust (219855): Magic ice and dark damage (25x, MAG) to all enemies, Reduce resistance to Ice and Dark by 120% for 3 turns to all enemies, Reduce ATK and MAG by 100% for 3 turns to all enemies
berry = True # reset next turn
elif gourd == False and isTurnMod(2):
useSkill(11, 'random') # Octocolored Ice Shield (219859): Increase resistance to all elements by 30% for 2 turns to all allies
gourd = True # reset next turn
elif self.HP < 0.8 and once() and peach == False:
useSkill(9, 'random') # Crystal Shell (219857): Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
green += 1
peach = True # reset next turn
elif self.HP < 0.8 and once() and olive == False:
useSkill(10, 'random') # Anti-Magic Fire & Wind Barrier (219858): Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase resistance to Fire and Wind by 1000% for 3 turns to all allies
green += 1
olive = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(7, 'random') # Black Diamond Dust (219855): Magic ice and dark damage (25x, MAG) to all enemies, Reduce resistance to Ice and Dark by 120% for 3 turns to all enemies, Reduce ATK and MAG by 100% for 3 turns to all enemies
green += 1
elif self.HP < 0.8 and once():
useSkill(8, 'random') # Alluring Eye (219856): Inflict Charm (100%) on one enemy for 2 turns
green += 1
elif self.HP < 0.5 and once() and peach == False:
useSkill(9, 'random') # Crystal Shell (219857): Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
green += 1
peach = True # reset next turn
elif self.HP < 0.5 and once() and olive == False:
useSkill(10, 'random') # Anti-Magic Fire & Wind Barrier (219858): Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase resistance to Fire and Wind by 1000% for 3 turns to all allies
green += 1
olive = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(7, 'random') # Black Diamond Dust (219855): Magic ice and dark damage (25x, MAG) to all enemies, Reduce resistance to Ice and Dark by 120% for 3 turns to all enemies, Reduce ATK and MAG by 100% for 3 turns to all enemies
green += 1
elif self.HP < 0.5 and once():
useSkill(8, 'random') # Alluring Eye (219856): Inflict Charm (100%) on one enemy for 2 turns
green += 1
elif self.HP < 0.3 and once() and peach == False:
useSkill(9, 'random') # Crystal Shell (219857): Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
green += 1
peach = True # reset next turn
elif self.HP < 0.3 and once() and olive == False:
useSkill(10, 'random') # Anti-Magic Fire & Wind Barrier (219858): Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase resistance to Fire and Wind by 1000% for 3 turns to all allies
green += 1
olive = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(7, 'random') # Black Diamond Dust (219855): Magic ice and dark damage (25x, MAG) to all enemies, Reduce resistance to Ice and Dark by 120% for 3 turns to all enemies, Reduce ATK and MAG by 100% for 3 turns to all enemies
green += 1
elif self.HP < 0.3 and once():
useSkill(8, 'random') # Alluring Eye (219856): Inflict Charm (100%) on one enemy for 2 turns
green += 1
elif honey == True and var_61 == False:
useSkill(13, 'random') # Demonic Breath (219861): Magic damage (15x, MAG) to all enemies
var_61 = True # reset next turn
elif random() <= 0.50 and var_62 == False and isTurnMod(3):
useSkill(12, 'highest ATK') # Dispel (219860): Remove all buffs from one enemy
var_62 = True # reset next turn
elif var_62 == False and isTurnMod(3):
useSkill(12, 'highest SPR') # Dispel (219860): Remove all buffs from one enemy
var_62 = True # reset next turn
elif random() <= 0.50 and honey == False and isTurnMod(8) and peach == False:
useSkill(9, 'random') # Crystal Shell (219857): Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
green += 1
peach = True # reset next turn
elif honey == False and isTurnMod(8) and olive == False:
useSkill(10, 'random') # Anti-Magic Fire & Wind Barrier (219858): Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase resistance to Fire and Wind by 1000% for 3 turns to all allies
green += 1
olive = True # reset next turn
elif isTurnMod(3) and lemon == False:
useSkill(8, 'random') # Alluring Eye (219856): Inflict Charm (100%) on one enemy for 2 turns
green += 1
lemon = True # reset next turn
elif isTurnMod(4) and var_63 == False:
useSkill(14, 'random') # Necro Breath (219862): Inflict Zombie (100%) to one enemy
var_63 = True # reset next turn
green += 1
elif isTurnMod(9) and grape == False:
useSkill(4, 'lowest HP') # Curada (219852): Restore 10% HP to one ally
green += 1
grape = True # reset next turn
elif var_64 == True:
useSkill(3, 'random') # Shooting Hail (219851): Physical damage (5x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
var_64 = False # reset next turn
elif random() <= 0.50 and isTurnMod(8) and grape == False:
useSkill(1, 'random') # Osmose (219849): Magic damage (0.75x, MAG) as MP drain (75%) to one enemy
green += 1
grape = True # reset next turn
elif isTurnMod(3) and grape == False:
useSkill(2, 'random') # Silencega (219850): Inflict Silence (100%) on all enemies
green += 1
grape = True # reset next turn
elif self.HP < 0.5 and melon == False:
useSkill(3, 'random') # Shooting Hail (219851): Physical damage (5x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
var_64 = True # reset next turn
green += 1
melon = True # reset next turn
elif guava == False:
useSkill(6, 'random') # Dark Blizzaja (219854): Magic ice and dark damage (18x, MAG) to all enemies
green += 1
guava = True # reset next turn
elif random() <= 0.30:
useSkill(5, 'random') # Dark Blizzard (219853): Magic ice and dark damage (10x, MAG) to one enemy
green += 1
else:
attack('random')
green += 1
##
# Monster Info
##
#
# Monster Dark Golem (210018004, 210018001)
# Race Stone
# Level 99
# Actions 12-12
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 600000000
# MP 100000
# ATK 2500
# DEF 5600
# MAG 2500
# SPR 4100
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind -100%
# Earth 0%
# Light 0%
# Dark 0%
# 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 0%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 土属性吸収 (100007) [Passive]
#
# Absorb Earth elemental attacks
#
##
#
# 全ステ50% (100065) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
#
# 闇属性吸収 (100013) [Passive]
#
# Absorb Dark elemental attacks
#
##
###
# Skills
###
#
# Trample (219863) [Physical]
#
# Physical damage (7x, ATK) to one enemy
# Reduce DEF and SPR by 50% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Kick Away (219864) [Physical]
#
# Physical damage (7x, ATK) to one enemy
# Reduce ATK and MAG by 50% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Magnitude 8 (219865) [Physical]
#
# Physical earth damage (10x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earthen Wall (219866) [None]
#
# Reduce physical damage taken by 100% to all allies for one turn (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 100% to all allies for one turn (can not be removed)
# Unused parameters: [1]
# Increase DEF and SPR by 999% for one turn to all allies (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fragmental Rock (219867) [Magic]
#
# Magic earth damage (12x, MAG) to all enemies
# Unknown parameters: [0]
# Reduce ATK, DEF, MAG and SPR by 40% for 5 turns to all enemies
# Reduce resistance to Earth by 80% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Golem Support System (219868) [None]
#
# Intercept unknown damage to allies for one turn, reducing damage by 50%
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Stone Prison (219869) [None]
#
# 90% HP damage to one enemy
# Unknown parameters: [90,100]
# Reduce resistance to Earth and Dark by 150% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rampage (219870) [Physical]
#
# Physical damage (13x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Power Stone (219871) [None]
#
# Increase ATK and MAG by 30% for one turn to one ally
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Your enemies seethe with malice. (219872) [None]
#
# Increase DEF and SPR by 100% for one turn to all allies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frigid Cavern (219873) [None]
#
# Magic* damage (35x, MAG) to all enemies
# Inflict Sleep and Confusion (100%) on all enemies
# Unknown parameters: [1]
# Inflict Stop (100%) for 2 turns on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gaia's Shield (219874) [None]
#
# Reduce physical damage taken by 50% to one ally for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Magnitude 9 (219875) [Physical]
#
# Physical earth damage (30x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
white += 1
green = 0
elif unit('3:ally:1:Dark Shiva').is('alive') and gourd == True:
useSkill(12, 'random') # Gaia's Shield (219874): Reduce physical damage taken by 50% to one ally for one turn (can not be removed)
apple = True # reset next turn
elif once():
useSkill(6, 'random') # Dark Golem Support System (219868): Intercept unknown damage to allies for one turn, reducing damage by 50%
gourd = True # reset next turn
elif unit('3:ally:1:Dark Shiva').is('alive') and ramen == True:
useSkill(11, 'random') # Frigid Cavern (219873): Magic* damage (35x, MAG) to all enemies, Inflict Sleep and Confusion (100%) on all enemies, Inflict Stop (100%) for 2 turns on all enemies
apple = True # reset next turn
ramen = False # persistent
elif unit('3:ally:1:Dark Shiva').is('dead') and peach == False:
useSkill(9, 'random') # Power Stone (219871): Increase ATK and MAG by 30% for one turn to one ally
green += 1
peach = True # reset next turn
honey = True # persistent
elif honey == True and peach == False:
useSkill(9, 'random') # Power Stone (219871): Increase ATK and MAG by 30% for one turn to one ally
peach = True # reset next turn
elif honey == False and white >= 12 and once():
useSkill(4, 'random') # Earthen Wall (219866): Reduce physical damage taken by 100% to all allies for one turn (can not be removed), Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase DEF and SPR by 999% for one turn to all allies (can not be removed)
apple = True # reset next turn
elif unit('3:ally:1:Dark Shiva').is('alive') and isTurnMod(9) and green >= 8:
useSkill(10, 'random') # Your enemies seethe with malice. (219872): Increase DEF and SPR by 100% for one turn to all allies
apple = True # reset next turn
ramen = True # persistent
elif honey == False and green >= 8:
useSkill(6, 'random') # Dark Golem Support System (219868): Intercept unknown damage to allies for one turn, reducing damage by 50%
gourd = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(5, 'random') # Fragmental Rock (219867): Magic earth damage (12x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 5 turns to all enemies, Reduce resistance to Earth by 80% for 3 turns to all enemies
guava = True # reset next turn
elif guava == True and once():
useSkill(4, 'random') # Earthen Wall (219866): Reduce physical damage taken by 100% to all allies for one turn (can not be removed), Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase DEF and SPR by 999% for one turn to all allies (can not be removed)
apple = True # reset next turn
elif self.HP < 0.6 and once():
useSkill(5, 'random') # Fragmental Rock (219867): Magic earth damage (12x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 5 turns to all enemies, Reduce resistance to Earth by 80% for 3 turns to all enemies
guava = True # reset next turn
elif guava == True and once():
useSkill(4, 'random') # Earthen Wall (219866): Reduce physical damage taken by 100% to all allies for one turn (can not be removed), Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase DEF and SPR by 999% for one turn to all allies (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(5, 'random') # Fragmental Rock (219867): Magic earth damage (12x, MAG) to all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 5 turns to all enemies, Reduce resistance to Earth by 80% for 3 turns to all enemies
guava = True # reset next turn
elif guava == True and once():
useSkill(4, 'random') # Earthen Wall (219866): Reduce physical damage taken by 100% to all allies for one turn (can not be removed), Reduce magic damage taken by 100% to all allies for one turn (can not be removed), Increase DEF and SPR by 999% for one turn to all allies (can not be removed)
apple = True # reset next turn
elif honey == True and olive == False:
useSkill(8, 'random') # Rampage (219870): Physical damage (13x, ATK) to all enemies
olive = True # reset next turn
elif isTurnMod(2) and olive == False:
useSkill(8, 'random') # Rampage (219870): Physical damage (13x, ATK) to all enemies
green += 1
olive = True # reset next turn
elif honey == True and mango == False and isTurnMod(6):
useSkill(13, 'random') # Magnitude 9 (219875): Physical earth damage (30x, ATK) to all enemies
var_61 = True # reset next turn
mango = True # reset next turn
elif honey == True and mango == False:
useSkill(3, 'random') # Magnitude 8 (219865): Physical earth damage (10x, ATK) to all enemies
var_61 = True # reset next turn
mango = True # reset next turn
elif mango == False:
useSkill(3, 'random') # Magnitude 8 (219865): Physical earth damage (10x, ATK) to all enemies
var_61 = True # reset next turn
green += 1
mango = True # reset next turn
elif honey == True and lemon == False:
useSkill(7, 'random') # Dark Stone Prison (219869): 90% HP damage to one enemy, Reduce resistance to Earth and Dark by 150% for 3 turns to one enemy
lemon = True # reset next turn
elif grape == False:
useSkill(1, 'random') # Trample (219863): Physical damage (7x, ATK) to one enemy, Reduce DEF and SPR by 50% for 3 turns to one enemy
green += 1
grape = True # reset next turn
elif melon == False:
useSkill(2, 'random') # Kick Away (219864): Physical damage (7x, ATK) to one enemy, Reduce ATK and MAG by 50% for 3 turns to one enemy
green += 1
melon = True # reset next turn
elif var_61 == True:
useSkill(3, 'random') # Magnitude 8 (219865): Physical earth damage (10x, ATK) to all enemies
var_61 = False # reset next turn
elif random() <= 0.20 and honey == True:
useSkill(1, 'random') # Trample (219863): Physical damage (7x, ATK) to one enemy, Reduce DEF and SPR by 50% for 3 turns to one enemy
elif random() <= 0.30 and honey == True:
useSkill(2, 'random') # Kick Away (219864): Physical damage (7x, ATK) to one enemy, Reduce ATK and MAG by 50% for 3 turns to one enemy
else:
attack('random')
green += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment