Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active February 15, 2019 09:35
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/eef0cc24d12fef5ab38da22f1324b0b8 to your computer and use it in GitHub Desktop.
Save aEnigmatic/eef0cc24d12fef5ab38da22f1324b0b8 to your computer and use it in GitHub Desktop.
Lord of the Beasts - ELT
##
# Mission 'Lord of the Beasts - ELT' (9560101)
# BattleScript: 900000021
#
# Battles
# * Hog Guardian
##
##
# Monster Info
##
#
# Monster Hog Guardian (900010605)
# Race Beast
# Level 99
# Actions 5-5
#
#
# Stats
# HP 15000000
# MP 9900
# ATK 480
# DEF 780
# MAG 435
# SPR 80
#
#
# 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 (+80% / 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 +
#
###
###
# Skills
###
#
# Massive Slam (900217) [Physical]
#
# Physical damage (4x, ATK) to all enemies
# Inflict Confusion (30%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ground Pummel (900218) [Physical]
#
# Physical damage (4x, ATK) to all enemies
# Inflict Paralyze (30%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Weapon Break (900219) [Physical]
#
# Physical damage (3x, ATK) to all enemies
# Reduce ATK and MAG by 30% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Weapon Break (900220) [Physical]
#
# Physical damage (3x, ATK) to all enemies
# Reduce ATK and MAG by 80% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crushing Flames (900221) [Magic]
#
# Magic fire damage (5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Saint Strike (900222) [Magic]
#
# Magic light damage (5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fear Ignite (900223) [Magic]
#
# Magic fire damage (7x, MAG) to one enemy
# Inflict Stop (100%) for 2 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Light (900224) [Magic]
#
# Magic light damage (9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Loud Grunts (900225) [Hybrid]
#
# Remove ATK, DEF, MAG and SPR debuff from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Soul Burn (900226) [None]
#
# Hybrid* damage (1x, ATK & MAG) as MP drain (300%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The Dragon's Destiny (900227) [None]
#
# Fixed damage (99999) to all enemies
# Unknown parameters: [0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# It's preparing for a counterattack! (900228) [Hybrid]
#
# Reduce magic damage taken by 100% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# It's restoring its health! (900229) [None]
#
# Restore 100% HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == False and self.HP < 0.5 and once():
useSkill(13, 'random') # It's restoring its health! (900229): Restore 100% HP to caster
honey = True # persistent
elif random() <= 0.10 and honey == False and apple == False:
useSkill(3, 'random') # Weapon Break (900219): Physical damage (3x, ATK) to all enemies, Reduce ATK and MAG by 30% for 3 turns to all enemies
apple = True # reset next turn
elif random() <= 0.10 and honey == False:
useSkill(8, 'random') # Divine Light (900224): Magic light damage (9x, MAG) to one enemy
elif random() <= 0.15 and honey == False:
useSkill(5, 'random') # Crushing Flames (900221): Magic fire damage (5x, MAG) to all enemies
elif random() <= 0.15 and honey == False:
useSkill(6, 'random') # Saint Strike (900222): Magic light damage (5x, MAG) to all enemies
elif random() <= 0.20 and honey == False:
useSkill(1, 'random') # Massive Slam (900217): Physical damage (4x, ATK) to all enemies, Inflict Confusion (30%) on all enemies
elif random() <= 0.20 and honey == False:
useSkill(2, 'random') # Ground Pummel (900218): Physical damage (4x, ATK) to all enemies, Inflict Paralyze (30%) on all enemies
elif honey == False:
attack('random')
elif honey == True and berry == False and isTurnMod(3):
useSkill(12, 'random') # It's preparing for a counterattack! (900228): Reduce magic damage taken by 100% to caster for one turn (can not be removed)
mango = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
ramen = True # persistent
elif self.hitByLastTurn('ability') and honey == True and ramen == True and peach == False:
useSkill(9, 'random') # Loud Grunts (900225): Remove ATK, DEF, MAG and SPR debuff from caster
green += 1
peach = True # reset next turn
elif self.hitByLastTurn('attack') and honey == True and ramen == True and peach == False:
useSkill(9, 'random') # Loud Grunts (900225): Remove ATK, DEF, MAG and SPR debuff from caster
green += 1
peach = True # reset next turn
elif self.hitByLastTurn('magic') and honey == True and ramen == True and peach == False:
useSkill(9, 'random') # Loud Grunts (900225): Remove ATK, DEF, MAG and SPR debuff from caster
green += 1
peach = True # reset next turn
elif honey == True and ramen == True and peach == False:
attack('random')
ramen = False # persistent
elif random() <= 0.40 and honey == True and ramen == True and peach == True and mango == False:
useSkill(4, 'random') # Weapon Break (900220): Physical damage (3x, ATK) to all enemies, Reduce ATK and MAG by 80% for 3 turns to all enemies
mango = True # reset next turn
apple = True # reset next turn
ramen = False # persistent
elif honey == True and ramen == True and peach == True and mango == False:
useSkill(10, 'random') # Soul Burn (900226): Hybrid* damage (1x, ATK & MAG) as MP drain (300%) to all enemies
mango = True # reset next turn
ramen = False # persistent
elif honey == True and green == 2 and olive == False:
useSkill(11, 'random') # The Dragon's Destiny (900227): Fixed damage (99999) to all enemies
green = 0
olive = True # reset next turn
elif honey == True and olive == True:
endTurn()
green = 0
elif random() <= 0.15 and honey == True:
useSkill(7, 'highest SPR') # Fear Ignite (900223): Magic fire damage (7x, MAG) to one enemy, Inflict Stop (100%) for 2 turns on one enemy
elif random() <= 0.20 and honey == True:
useSkill(6, 'random') # Saint Strike (900222): Magic light damage (5x, MAG) to all enemies
elif random() <= 0.30 and honey == True:
useSkill(1, 'random') # Massive Slam (900217): Physical damage (4x, ATK) to all enemies, Inflict Confusion (30%) on all enemies
elif random() <= 0.30 and honey == True:
useSkill(2, 'random') # Ground Pummel (900218): Physical damage (4x, ATK) to all enemies, Inflict Paralyze (30%) on all enemies
elif random() <= 0.30 and honey == True and apple == False:
useSkill(3, 'random') # Weapon Break (900219): Physical damage (3x, ATK) to all enemies, Reduce ATK and MAG by 30% for 3 turns to all enemies
apple = True # reset next turn
elif honey == True:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment