Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created December 19, 2019 18:46
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/089186972ffbe1078dcf6fd877d783b9 to your computer and use it in GitHub Desktop.
Save aEnigmatic/089186972ffbe1078dcf6fd877d783b9 to your computer and use it in GitHub Desktop.
Save Your Elf - ELT & LGD
##
# Mission 'Save Your Elf - ELT' (9920104)
# Enemy has first strike!
#
# Battles
# * Elf Off the Shelf
##
##
# Monster Info
##
#
# Monster Elf Off the Shelf (900010793, 900010790)
# Race Fairy
# Level 99
# Actions 7-7
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 4000000
# MP 10000
# ATK 300
# DEF 1000
# MAG 300
# SPR 1000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 60%
# Ice -60%
# Lightning 60%
# Water 60%
# Wind 60%
# Earth 60%
# Light 60%
# Dark 60%
# Non-Elemental 30%
#
#
# 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
###
#
# Wind-Up Toy (900583) [Magic]
#
# Magic wind damage (4x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Toy Pinwheel (900584) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sprinkle of Magic (900585) [Magic]
#
# Magic damage (15x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fairy Dust (900586) [Magic]
#
# Magic wind damage (2x, MAG) to one enemy
# Inflict Confusion (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dash of Wonder (900587) [Magic]
#
# Magic damage (2x, MAG) with consecutive damage increase (max. 56 times, +0.5x MAG each, 30x total) to one enemy
# Unused parameters: [0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Winds of Winter (900588) [Magic]
#
# Magic wind damage (3x, MAG) with consecutive damage increase (max. 22 times, +1x MAG each, 25x total) to one enemy
# Unused parameters: [0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spirit of the Season (900589) [None]
#
# Increase break resistance to SPR by 100% for one turn to caster
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elf-Recovery (900590) [None]
#
# Restore 20000 HP to caster
# Reduce DEF and SPR by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gift Exchange (900591) [Magic]
#
# Fixed* damage (10000) to all enemies
# Unknown parameters: [100]
# Restore 200 MP to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
useSkill(4, 'highest ATK') # Fairy Dust (900586): Magic wind damage (2x, MAG) to one enemy, Inflict Confusion (100%) on one enemy
honey = True # persistent
elif honey == True:
endTurn()
honey = False # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and apple == False:
useSkill(3, 'random') # Sprinkle of Magic (900585): Magic damage (15x, MAG) to all enemies
apple = True # reset next turn
elif self.HP < 0.2 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif self.HP < 0.2 and once():
useSkill(3, 'random') # Sprinkle of Magic (900585): Magic damage (15x, MAG) to all enemies
elif self.HP < 0.2 and berry == False:
useSkill(4, 'highest ATK') # Fairy Dust (900586): Magic wind damage (2x, MAG) to one enemy, Inflict Confusion (100%) on one enemy
berry = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif self.HP < 0.5 and once():
useSkill(9, 'random') # Gift Exchange (900591): Fixed* damage (10000) to all enemies, Restore 200 MP to all enemies
elif self.HP < 0.8 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif peach == False:
useSkill(2, 'random') # Toy Pinwheel (900584): Magic wind damage (6x, MAG) to all enemies
peach = True # reset next turn
elif olive == False and green >= 2:
useSkill(1, 'random') # Wind-Up Toy (900583): Magic wind damage (4x, MAG) to one enemy
green = 0
olive = True # reset next turn
elif random() <= 0.30 and olive == False:
useSkill(1, 'random') # Wind-Up Toy (900583): Magic wind damage (4x, MAG) to one enemy
green += 1
elif self.sufferedDamageLastTurn('physical', 'ice') and mango == False:
wait() # No action
mango = True # reset next turn
elif self.sufferedDamageLastTurn('magical', 'ice') and mango == False:
wait() # No action
mango = True # reset next turn
elif mango == True and lemon == False:
useSkill(7, 'random') # Spirit of the Season (900589): Increase break resistance to SPR by 100% for one turn to caster
lemon = True # reset next turn
elif mango == True:
useSkill(6, 'random') # Winds of Winter (900588): Magic wind damage (3x, MAG) with consecutive damage increase (max. 22 times, +1x MAG each, 25x total) to one enemy
elif mango == False:
useSkill(5, 'random') # Dash of Wonder (900587): Magic damage (2x, MAG) with consecutive damage increase (max. 56 times, +0.5x MAG each, 30x total) to one enemy
else:
attack('random')
##
# Mission 'Save Your Elf - LGD' (9920105)
#
# Battles
# * Ignis Fatuus, Ignis Fatuus, Ignis Fatuus, Ignis Fatuus, Ignis Fatuus, Ignis Fatuus
# * Elf Off the Shelf
##
##
# Monster Info
##
#
# Monster Ignis Fatuus (900010806, 5)
# Race Fairy
# Level 40
# Actions 1-1
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 12000
# MP 70
# ATK 170
# DEF 25
# MAG 25
# SPR 25
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 0%
# Blind 0%
# Sleep 0%
# Silence 0%
# Paralyze 0%
# Confusion 0%
# Disease 0%
# Petrify 0%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 0%
# Charm 0%
# Berserk 0%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Fire (120010) [Magic]
#
# Magic fire damage (1.2x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if random() <= 0.70:
useRandomSkill('random')
else:
attack('random')
##
# Monster Info
##
#
# Monster Ignis Fatuus (900010807, 5)
# Race Fairy
# Level 40
# Actions 1-1
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 12000
# MP 70
# ATK 170
# DEF 25
# MAG 25
# SPR 25
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 0%
# Blind 0%
# Sleep 0%
# Silence 0%
# Paralyze 0%
# Confusion 0%
# Disease 0%
# Petrify 0%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 0%
# Charm 0%
# Berserk 0%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Fire (120010) [Magic]
#
# Magic fire damage (1.2x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if random() <= 0.70:
useRandomSkill('random')
else:
attack('random')
##
# Monster Info
##
#
# Monster Ignis Fatuus (900010805, 5)
# Race Fairy
# Level 40
# Actions 1-1
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 12000
# MP 70
# ATK 170
# DEF 25
# MAG 25
# SPR 25
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 0%
# Blind 0%
# Sleep 0%
# Silence 0%
# Paralyze 0%
# Confusion 0%
# Disease 0%
# Petrify 0%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 0%
# Charm 0%
# Berserk 0%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Fire (120010) [Magic]
#
# Magic fire damage (1.2x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if random() <= 0.70:
useRandomSkill('random')
else:
attack('random')
##
# Monster Info
##
#
# Monster Ignis Fatuus (900010798, 5)
# Race Fairy
# Level 40
# Actions 1-1
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 12000
# MP 70
# ATK 170
# DEF 25
# MAG 25
# SPR 25
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 0%
# Blind 0%
# Sleep 0%
# Silence 0%
# Paralyze 0%
# Confusion 0%
# Disease 0%
# Petrify 0%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 0%
# Charm 0%
# Berserk 0%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Fire (120010) [Magic]
#
# Magic fire damage (1.2x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if random() <= 0.70:
useRandomSkill('random')
else:
attack('random')
##
# Monster Info
##
#
# Monster Elf Off the Shelf (900010794, 900010790)
# Race Fairy
# Level 99
# Actions 10-10
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 10000000
# MP 100000
# ATK 500
# DEF 2000
# MAG 500
# SPR 2000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 80%
# Ice -60%
# Lightning 80%
# Water 80%
# Wind 80%
# Earth 80%
# Light 80%
# Dark 80%
# Non-Elemental 40%
#
#
# 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
###
#
# Wind-Up Toy (900583) [Magic]
#
# Magic wind damage (4x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Toy Pinwheel (900584) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sprinkle of Magic (900585) [Magic]
#
# Magic damage (15x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fairy Dust (900586) [Magic]
#
# Magic wind damage (2x, MAG) to one enemy
# Inflict Confusion (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dash of Wonder (900587) [Magic]
#
# Magic damage (2x, MAG) with consecutive damage increase (max. 56 times, +0.5x MAG each, 30x total) to one enemy
# Unused parameters: [0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Winds of Winter (900588) [Magic]
#
# Magic wind damage (3x, MAG) with consecutive damage increase (max. 22 times, +1x MAG each, 25x total) to one enemy
# Unused parameters: [0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spirit of the Season (900589) [None]
#
# Increase break resistance to SPR by 100% for one turn to caster
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elf-Recovery (900590) [None]
#
# Restore 20000 HP to caster
# Reduce DEF and SPR by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gift Exchange (900591) [Magic]
#
# Fixed* damage (10000) to all enemies
# Unknown parameters: [100]
# Restore 200 MP to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
useSkill(4, 'highest ATK') # Fairy Dust (900586): Magic wind damage (2x, MAG) to one enemy, Inflict Confusion (100%) on one enemy
honey = True # persistent
elif honey == True:
endTurn()
honey = False # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and apple == False:
useSkill(3, 'random') # Sprinkle of Magic (900585): Magic damage (15x, MAG) to all enemies
apple = True # reset next turn
elif self.HP < 0.2 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif self.HP < 0.2 and once():
useSkill(3, 'random') # Sprinkle of Magic (900585): Magic damage (15x, MAG) to all enemies
elif self.HP < 0.2 and berry == False:
useSkill(4, 'highest ATK') # Fairy Dust (900586): Magic wind damage (2x, MAG) to one enemy, Inflict Confusion (100%) on one enemy
berry = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif self.HP < 0.5 and once():
useSkill(9, 'random') # Gift Exchange (900591): Fixed* damage (10000) to all enemies, Restore 200 MP to all enemies
elif self.HP < 0.8 and once():
useSkill(8, 'random') # Elf-Recovery (900590): Restore 20000 HP to caster, Reduce DEF and SPR by 20% for 3 turns to caster
elif peach == False:
useSkill(2, 'random') # Toy Pinwheel (900584): Magic wind damage (6x, MAG) to all enemies
peach = True # reset next turn
elif olive == False and green >= 2:
useSkill(1, 'random') # Wind-Up Toy (900583): Magic wind damage (4x, MAG) to one enemy
green = 0
olive = True # reset next turn
elif random() <= 0.30 and olive == False:
useSkill(1, 'random') # Wind-Up Toy (900583): Magic wind damage (4x, MAG) to one enemy
green += 1
elif unit('1:ally:any').sufferedDamageLastTurn('physical', 'ice') and mango == False:
wait() # No action
mango = True # reset next turn
elif unit('1:ally:any').sufferedDamageLastTurn('magical', 'ice') and mango == False:
wait() # No action
mango = True # reset next turn
elif mango == True and lemon == False:
useSkill(7, 'random') # Spirit of the Season (900589): Increase break resistance to SPR by 100% for one turn to caster
lemon = True # reset next turn
elif mango == True:
useSkill(6, 'random') # Winds of Winter (900588): Magic wind damage (3x, MAG) with consecutive damage increase (max. 22 times, +1x MAG each, 25x total) to one enemy
elif mango == False:
useSkill(5, 'random') # Dash of Wonder (900587): Magic damage (2x, MAG) with consecutive damage increase (max. 56 times, +0.5x MAG each, 30x total) to one enemy
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment