Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active July 11, 2019 16:03
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/f1ad8bef107c110c33df027cfc912af5 to your computer and use it in GitHub Desktop.
Save aEnigmatic/f1ad8bef107c110c33df027cfc912af5 to your computer and use it in GitHub Desktop.
Eggboss
##
# Mission 'Armeggeddon - LGD' (9630103)
# BattleScript: 900000027
#
# Battles
# * Eggsterminator Eggstraordinaire
##
##
# Monster Info
##
#
# Monster Eggsterminator Eggstraordinaire (900010632)
# Race Stone
# Level 100
# Actions 20-20
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 200000000
# MP 100000
# ATK 800
# DEF 2000
# MAG 1000
# SPR 5000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 50%
# Water 100%
# Wind 100%
# Earth 100%
# Light 100%
# Dark 100%
# 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
###
#
# Regeneggration (900241) [Hybrid]
#
# Restore 30% HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shattering Earth (900244) [Magic]
#
# Magic earth damage (5x, MAG) to all enemies
# Reduce resistance to Earth by 200% for 3 turns to all enemies
# Unused parameters: [1]
# Inflict Paralyze (50%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shaking Earth (900247) [Magic]
#
# Magic damage (5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rockslide (900250) [Physical]
#
# Physical damage (5x, ATK) to all enemies
# Inflict Petrify (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Scramble (900253) [Physical]
#
# Physical damage (8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Eggsecution (900256) [Physical]
#
# Fixed* damage (99999) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Its shell cracked! (900259) [Hybrid]
#
# Reduce DEF by 90% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hard Boiled (900261) [Hybrid]
#
# Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 100% to caster for 2 turns (can not be removed)
# Unused parameters: [1]
# Increase ATK and MAG by 100% for 5 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Destroyer's Shell (900326) [None]
#
# 99% HP damage to all enemies
# Unknown parameters: [99,100,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == False:
wait('non') # No action
green += 1
apple = True # reset next turn
ramen = False # persistent
honey = False # persistent
elif green == 5 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green == 10 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green == 10 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green == 15 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green == 15 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green == 15 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif green >= 20 and isTurnMod(5) and melon == False:
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
melon = True # reset next turn
elif green >= 20 and isTurnMod(5) and guava == False:
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
guava = True # reset next turn
elif green >= 20 and isTurnMod(5) and gourd == False:
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
gourd = True # reset next turn
elif unit('5:enemy:any').healedByLastTurn('magic_heal') and peach == False:
useSkill(1, 'random') # Regeneggration (900241): Restore 30% HP to caster
peach = True # reset next turn
elif self.HP < 0.6 and once():
useSkill(8, 'random') # Hard Boiled (900261): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Reduce magic damage taken by 100% to caster for 2 turns (can not be removed), Increase ATK and MAG by 100% for 5 turns to caster
ramen = True # persistent
elif self.HP < 0.6 and once():
useSkill(9, 'random') # Destroyer's Shell (900326): 99% HP damage to all enemies
elif self.HP < 0.5 and self.sufferedDamageLastTurn('physical', 'thunder') and berry == False:
useSkill(7, 'random') # Its shell cracked! (900259): Reduce DEF by 90% for 3 turns to caster
berry = True # reset next turn
elif self.HP < 0.05 and once():
useSkill(5, 'random') # Scramble (900253): Physical damage (8x, ATK) to one enemy
elif self.HP < 0.05 and once():
useSkill(2, 'random') # Shattering Earth (900244): Magic earth damage (5x, MAG) to all enemies, Reduce resistance to Earth by 200% for 3 turns to all enemies, Inflict Paralyze (50%) on all enemies
elif self.HP < 0.05 and once():
useSkill(3, 'random') # Shaking Earth (900247): Magic damage (5x, MAG) to all enemies
elif self.HP < 0.05 and once():
useSkill(4, 'random') # Rockslide (900250): Physical damage (5x, ATK) to all enemies, Inflict Petrify (100%) on all enemies
elif self.HP < 0.05 and once():
useSkill(6, 'random') # Eggsecution (900256): Fixed* damage (99999) to one enemy
elif ramen == True and once():
endTurn()
ramen = False # persistent
elif random() <= 0.10:
useSkill(2, 'random') # Shattering Earth (900244): Magic earth damage (5x, MAG) to all enemies, Reduce resistance to Earth by 200% for 3 turns to all enemies, Inflict Paralyze (50%) on all enemies
elif random() <= 0.20:
useSkill(3, 'random') # Shaking Earth (900247): Magic damage (5x, MAG) to all enemies
elif random() <= 0.20:
useSkill(4, 'random') # Rockslide (900250): Physical damage (5x, ATK) to all enemies, Inflict Petrify (100%) on all enemies
elif random() <= 0.30:
useSkill(5, 'random') # Scramble (900253): Physical damage (8x, ATK) to one enemy
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment