Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active January 17, 2020 15:22
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/befcbf7cbae95cea42708efcddc29377 to your computer and use it in GitHub Desktop.
Save aEnigmatic/befcbf7cbae95cea42708efcddc29377 to your computer and use it in GitHub Desktop.
A Prayer for Hess SE - Bonus Stage
##
# Mission 'Bonus Stage 1' (8830901)
# Enemy has first strike!
#
# Battles
# * Brachiosaur
##
##
# Monster Info
##
#
# Monster Brachiosaur (307001003, 307001002)
# Race Dragon
# Level 99
# Actions 8-8
#
#
# Stats
# HP 55000000
# MP 100000
# ATK 750
# DEF 650
# MAG 700
# SPR 630
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice -50%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# 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 +
#
###
###
# Passives
###
#
# 真降臨ブラキオレイドス (100001) [Passive]
#
# 100% chance to counter physical attacks with Counter (173350) to the attacker (max 5 / turn)
#
##
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Snort (151230) [None]
#
# Remove one enemy from the fight
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spin (173290) [Physical]
#
# Physical damage (5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Disaster (173300) [Magic]
#
# Inflict Blind, Sleep and Confusion (100%) on all enemies
# Unknown parameters: [1]
# Magic damage (0.1x, MAG) as MP drain (100%) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Meteor (173310) [Magic]
#
# Magic damage (3x * 1.33 = 4x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultima (173320) [Magic]
#
# Magic damage (8x * 1.33 = 10.67x, MAG) to all enemies (ignore reflect)
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Focusing enormous magic power! (173330) [None]
#
# Reduce physical damage taken by 99% to one ally for one turn (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 99% to one ally for one turn (can not be removed)
# Unused parameters: [1]
# Increase ATK and MAG by 200% for 3 turns to one ally
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Strike (173340) [Physical]
#
# Physical damage (5x, ATK) to one enemy
# Reduce DEF and SPR by 50% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Counter (173350) [Physical]
#
# Physical damage (2x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Barrier (216487) [None]
#
# Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance to magic attacks has greatly risen! (216488) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(9, 'random') # Barrier (216487): Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
elif once():
wait() # No action
elif once():
wait() # No action
elif once():
useSkill(10, 'random') # Resistance to magic attacks has greatly risen! (216488): No effect
elif once():
wait() # No action
elif once():
wait() # No action
elif once():
useSkill(6, 'random') # Focusing enormous magic power! (173330): Reduce physical damage taken by 99% to one ally for one turn (can not be removed), Reduce magic damage taken by 99% to one ally for one turn (can not be removed), Increase ATK and MAG by 200% for 3 turns to one ally
apple = True # reset next turn
honey = True # persistent
elif honey == True and berry == False:
useSkill(5, 'random') # Ultima (173320): Magic damage (8x * 1.33 = 10.67x, MAG) to all enemies (ignore reflect)
honey = False # persistent
elif self.HP < 0.7 and once() and grape == False:
useSkill(6, 'random') # Focusing enormous magic power! (173330): Reduce physical damage taken by 99% to one ally for one turn (can not be removed), Reduce magic damage taken by 99% to one ally for one turn (can not be removed), Increase ATK and MAG by 200% for 3 turns to one ally
grape = True # reset next turn
apple = True # reset next turn
honey = True # persistent
elif self.HP < 0.5 and once() and berry == False:
useSkill(6, 'random') # Focusing enormous magic power! (173330): Reduce physical damage taken by 99% to one ally for one turn (can not be removed), Reduce magic damage taken by 99% to one ally for one turn (can not be removed), Increase ATK and MAG by 200% for 3 turns to one ally
berry = True # reset next turn
honey = True # persistent
elif self.HP < 0.3 and once() and berry == False:
useSkill(6, 'random') # Focusing enormous magic power! (173330): Reduce physical damage taken by 99% to one ally for one turn (can not be removed), Reduce magic damage taken by 99% to one ally for one turn (can not be removed), Increase ATK and MAG by 200% for 3 turns to one ally
berry = True # reset next turn
honey = True # persistent
elif timesExecuted() < 2 and berry == True and peach == False:
useSkill(1, 'random') # Snort (151230): Remove one enemy from the fight
peach = True # reset next turn
apple = True # reset next turn
honey = True # persistent
elif isTurnMod(4) and olive == False:
useSkill(3, 'random') # Disaster (173300): Inflict Blind, Sleep and Confusion (100%) on all enemies, Magic damage (0.1x, MAG) as MP drain (100%) to all enemies
olive = True # reset next turn
elif isTurnMod(4) and mango == False:
useSkill(4, 'random') # Meteor (173310): Magic damage (3x * 1.33 = 4x, MAG) to all enemies (ignore reflect)
mango = True # reset next turn
elif isTurnMod(2) and mango == False and lemon == False:
useSkill(2, 'random') # Spin (173290): Physical damage (5x, ATK) to all enemies
lemon = True # reset next turn
elif random() <= 0.20 and mango == False and lemon == False:
useSkill(7, 'random') # Strike (173340): Physical damage (5x, ATK) to one enemy, Reduce DEF and SPR by 50% for 3 turns to one enemy
lemon = True # reset next turn
else:
attack('random')
##
# Mission 'Bonus Stage 2' (8830902)
# Enemy has first strike!
#
# Battles
# * Amalthea
##
##
# Monster Info
##
#
# Monster Amalthea (306015008)
# Race Machina
# Level 99
# Actions 8-8
#
#
# Stats
# HP 62000000
# MP 100000
# ATK 750
# DEF 460
# MAG 650
# SPR 450
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind -50%
# 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 100%
# DEF 0%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Exploding Ammunition (201750) [Physical]
#
# Fixed* damage (7000) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Omnidirectional Cannon (201760) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mop-Up Mode (201770) [None]
#
# Increase ATK and MAG by 30% for 3 turns to one ally
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# High-Density Energy Mass (201780) [Magic]
#
# Magic damage (2.3x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Self-Repair (201790) [None]
#
# Restore 100000 HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Genocidal Scatter Cannon (201800) [Physical]
#
# Fixed* damage (6000) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Barrier (216487) [None]
#
# Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance to magic attacks has greatly risen! (216488) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(7, 'random') # Barrier (216487): Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
elif once():
wait() # No action
elif once():
wait() # No action
elif once():
useSkill(8, 'random') # Resistance to magic attacks has greatly risen! (216488): No effect
elif once():
wait() # No action
elif once():
wait() # No action
elif once():
useSkill(1, 'highest ATK') # Exploding Ammunition (201750): Fixed* damage (7000) to one enemy
green += 1
apple = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
lemon = True # reset next turn
elif self.HP < 0.5 and once() and honey == False:
useSkill(2, 'random') # Omnidirectional Cannon (201760): Physical damage (2x, ATK) to all enemies
elif lemon == True and once():
useSkill(6, 'random') # Genocidal Scatter Cannon (201800): Fixed* damage (6000) to all enemies
grape = True # reset next turn
honey = True # persistent
elif grape == True and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
melon = True # reset next turn
elif melon == True and once():
useSkill(3, 'random') # Mop-Up Mode (201770): Increase ATK and MAG by 30% for 3 turns to one ally
green = 0
apple = True # reset next turn
elif self.HP < 0.6 and honey == True and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
lemon = True # reset next turn
elif self.HP < 0.3 and once() and honey == True and ramen == False:
useSkill(2, 'random') # Omnidirectional Cannon (201760): Physical damage (2x, ATK) to all enemies
elif honey == True and lemon == True and once():
useSkill(6, 'random') # Genocidal Scatter Cannon (201800): Fixed* damage (6000) to all enemies
grape = True # reset next turn
ramen = True # persistent
elif honey == True and grape == True and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
melon = True # reset next turn
elif honey == True and melon == True and once():
useSkill(3, 'random') # Mop-Up Mode (201770): Increase ATK and MAG by 30% for 3 turns to one ally
green = 0
apple = True # reset next turn
elif self.HP < 0.3 and ramen == True and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
lemon = True # reset next turn
elif self.HP < 0.01 and ramen == True and once() and sushi == False:
useSkill(2, 'random') # Omnidirectional Cannon (201760): Physical damage (2x, ATK) to all enemies
elif ramen == True and lemon == True and once():
useSkill(6, 'random') # Genocidal Scatter Cannon (201800): Fixed* damage (6000) to all enemies
grape = True # reset next turn
sushi = True # persistent
elif ramen == True and grape == True and once():
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
melon = True # reset next turn
elif ramen == True and melon == True and once():
useSkill(3, 'random') # Mop-Up Mode (201770): Increase ATK and MAG by 30% for 3 turns to one ally
green = 0
apple = True # reset next turn
elif green >= 3 and berry == False:
useSkill(5, 'random') # Self-Repair (201790): Restore 100000 HP to caster
green = 0
mango = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
elif mango == True:
useSkill(3, 'random') # Mop-Up Mode (201770): Increase ATK and MAG by 30% for 3 turns to one ally
mango = False # reset next turn
elif berry == False:
useSkill(1, 'random') # Exploding Ammunition (201750): Fixed* damage (7000) to one enemy
green += 1
berry = True # reset next turn
elif peach == False:
useSkill(2, 'random') # Omnidirectional Cannon (201760): Physical damage (2x, ATK) to all enemies
peach = True # reset next turn
elif random() <= 0.15:
useSkill(4, 'random') # High-Density Energy Mass (201780): Magic damage (2.3x, MAG) to one enemy
else:
attack('random')
##
# Mission 'Bonus Stage 3' (8830903)
# Enemy has first strike!
#
# Battles
# * Jackalto
##
##
# Monster Info
##
#
# Monster Jackalto (305006002)
# Race Human
# Level 99
# Actions 8-8
#
#
# Stats
# HP 67000000
# MP 100000
# ATK 600
# DEF 500
# MAG 500
# SPR 500
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice -50%
# Lightning 0%
# Water 0%
# Wind -50%
# 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 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Gigantic Swing (214849) [Physical]
#
# Physical damage (3.3x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chain Blow (214850) [Physical]
#
# Physical damage (3.8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Reaper (214851) [Physical]
#
# Physical damage (3x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Body Crusher (214852) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Reduce DEF by 50% for 2 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Head Splitter (214853) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Reduce ATK by 50% for 2 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cruel Rampage (214854) [Physical]
#
# Physical damage (7.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cruel Rampage (214855) [Physical]
#
# Physical damage (2x, ATK) to all enemies
# Reduce DEF by 50% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cruel Rampage (214856) [Physical]
#
# Physical damage (4.8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Roundhouse Kick (214857) [Physical]
#
# Physical damage (3.4x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Double Afterimage (214858) [None]
#
# Dodge 2 physical attacks for 5 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elevated Strike (214859) [Physical]
#
# Physical damage (2x, ATK) to one enemy
# Increase ATK by 40% for one turn to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Battle Roar (214860) [None]
#
# Increase ATK by 50% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Merciless Combo (214861) [Physical]
#
# Physical damage (2x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Merciless Combo (214862) [Physical]
#
# Physical damage (4x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Merciless Combo (214863) [Physical]
#
# Physical damage (8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Merciless Combo (214864) [Physical]
#
# Physical damage (16x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Reaper (214865) [Physical]
#
# Physical damage (3.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Barrier (216487) [None]
#
# Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance to magic attacks has greatly risen! (216488) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if gourd == True:
endTurn()
elif once():
useSkill(18, 'random') # Barrier (216487): Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
elif once():
wait() # No action
elif once():
wait() # No action
elif once():
useSkill(19, 'random') # Resistance to magic attacks has greatly risen! (216488): No effect
elif once():
wait() # No action
elif once():
wait() # No action
gourd = True # reset next turn
elif self.HP > 0.3 and isTurnMod(4) and honey == False and apple == False:
useSkill(12, 'random') # Battle Roar (214860): Increase ATK by 50% for 3 turns to caster
apple = True # reset next turn
honey = True # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and apple == False and honey == True:
useSkill(7, 'random') # Cruel Rampage (214855): Physical damage (2x, ATK) to all enemies, Reduce DEF by 50% for 3 turns to caster
honey = False # persistent
elif apple == False and honey == True:
useSkill(6, 'random') # Cruel Rampage (214854): Physical damage (7.5x, ATK) to all enemies
honey = False # persistent
elif self.HP < 0.6 and isTurnMod(3) and berry == False:
useSkill(10, 'random') # Double Afterimage (214858): Dodge 2 physical attacks for 5 turns to caster
berry = True # reset next turn
elif ramen == False and green >= 3:
useSkill(13, 'random') # Merciless Combo (214861): Physical damage (2x, ATK) to one enemy
green = 0
ramen = True # persistent
elif ramen == True and sushi == False and green >= 3:
useSkill(14, 'random') # Merciless Combo (214862): Physical damage (4x, ATK) to one enemy
green = 0
sushi = True # persistent
elif sushi == True and bacon == False and green >= 3:
useSkill(15, 'random') # Merciless Combo (214863): Physical damage (8x, ATK) to one enemy
green = 0
bacon = True # persistent
elif bacon == True and peach == False and green >= 3:
useSkill(16, 'random') # Merciless Combo (214864): Physical damage (16x, ATK) to one enemy
green = 0
peach = True # reset next turn
elif self.HP < 0.5 and olive == False:
useSkill(11, 'random') # Elevated Strike (214859): Physical damage (2x, ATK) to one enemy, Increase ATK by 40% for one turn to caster
olive = True # reset next turn
elif random() <= 0.15 and self.HP < 0.3 and mango == False:
useSkill(8, 'random') # Cruel Rampage (214856): Physical damage (4.8x, ATK) to all enemies
mango = True # reset next turn
elif random() <= 0.25 and self.HP < 0.5:
useSkill(2, 'random') # Chain Blow (214850): Physical damage (3.8x, ATK) to all enemies
green += 1
elif random() <= 0.15 and self.HP < 0.5:
useSkill(17, 'random') # Reaper (214865): Physical damage (3.5x, ATK) to all enemies
elif random() <= 0.30 and self.HP < 0.5:
useSkill(4, 'random') # Body Crusher (214852): Physical damage (4x, ATK) to one enemy, Reduce DEF by 50% for 2 turns to one enemy
elif random() <= 0.40 and self.HP < 0.5:
useSkill(5, 'random') # Head Splitter (214853): Physical damage (4x, ATK) to one enemy, Reduce ATK by 50% for 2 turns to one enemy
elif random() <= 0.20 and self.HP > 0.5:
useSkill(1, 'random') # Gigantic Swing (214849): Physical damage (3.3x, ATK) to all enemies
green += 1
elif random() <= 0.25 and self.HP > 0.5:
useSkill(2, 'random') # Chain Blow (214850): Physical damage (3.8x, ATK) to all enemies
green += 1
elif random() <= 0.30 and self.HP > 0.5:
useSkill(3, 'random') # Reaper (214851): Physical damage (3x, ATK) to all enemies
elif random() <= 0.15 and self.HP > 0.5:
useSkill(9, 'random') # Roundhouse Kick (214857): Physical damage (3.4x, 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