Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic aEnigmatic/9520102.gl.py
Last active Dec 28, 2018

Embed
What would you like to do?
Season of Mayhem - Trial (Hard)
##
# Mission 'Season of Mayhem - Trial (Hard)' (9520102)
# Enemy has first strike!
# BattleScript: 900000020
#
# Battles
# * Mischievous Archmage
##
##
# Monster Info
##
#
# Monster Mischievous Archmage (900010567)
# Race Human, Plant
# Level 99
# Actions 8-8
#
#
# Stats
# HP 10000000
# MP 10000
# ATK 750
# DEF 600
# MAG 600
# SPR 200
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 200%
# Lightning 200%
# Water 200%
# Wind 200%
# Earth 200%
# Light 200%
# Dark 200%
# Non-Elemental 0%
#
#
# Status resist (+50% / 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
###
#
# Wood Sweep (900209) [Physical]
#
# Physical damage (5x, ATK) to all enemies
# Reduce DEF and SPR by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Jolly Tree (900210) [Magic]
#
# Reduce physical damage taken by 20% to caster for 2 turns (can not be removed)
# Reduce magic damage taken by 20% to caster for 2 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fire Extinguisher (900211) [Magic]
#
# Remove all buffs from all enemies
# 60% HP damage to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Don't hurt my tree! (900212) [Magic]
#
# Magic damage (8x, MAG) to one enemy
# Inflict Silence and Paralyze (70%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Freeze! (900213) [Magic]
#
# Magic damage (3x, MAG) to one enemy
# Inflict Stop (100%) for 3 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ENOUGH! (900214) [Magic]
#
# Reduce physical damage taken by 95% to caster for one turn (can not be removed)
# Reduce magic damage taken by 95% to caster for one turn (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Unstoppable Hammer (900215) [Physical]
#
# Physical damage (10x, ATK) to all enemies
# Reduce ATK, DEF, MAG and SPR by 60% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Oh no... (900216) [Magic]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == False and mango == False:
useSkill(2, 'random') # Jolly Tree (900210): Reduce physical damage taken by 20% to caster for 2 turns (can not be removed), Reduce magic damage taken by 20% to caster for 2 turns (can not be removed)
mango = True # reset next turn
elif ramen == False:
endTurn()
ramen = True # persistent
elif unit('4:ally:any').sufferedDamageLastTurn('fire', 'physical') and sushi == True and berry == False:
wait() # No action
green += 1
berry = True # reset next turn
elif unit('4:ally:any').sufferedDamageLastTurn('fire', 'magical') and sushi == True and berry == False:
wait() # No action
green += 1
berry = True # reset next turn
elif sushi == True and green >= 4 and bacon == False:
useSkill(8, 'random') # Oh no... (900216): No effect
bacon = True # persistent
sushi = True # persistent
elif random() <= 0.50 and bacon == True:
useSkill(7, 'random') # Unstoppable Hammer (900215): Physical damage (10x, ATK) to all enemies, Reduce ATK, DEF, MAG and SPR by 60% for 3 turns to all enemies
elif random() <= 0.30 and bacon == True:
useSkill(4, 'random') # Don't hurt my tree! (900212): Magic damage (8x, MAG) to one enemy, Inflict Silence and Paralyze (70%) on one enemy
elif random() <= 0.60 and bacon == True and peach == False:
useSkill(5, 'random') # Freeze! (900213): Magic damage (3x, MAG) to one enemy, Inflict Stop (100%) for 3 turns on one enemy
white += 1
peach = True # reset next turn
elif bacon == True:
attack('random')
elif self.HP < 0.3 and lemon == False:
useSkill(6, 'random') # ENOUGH! (900214): Reduce physical damage taken by 95% to caster for one turn (can not be removed), Reduce magic damage taken by 95% to caster for one turn (can not be removed)
lemon = True # reset next turn
sushi = True # persistent
honey = True # persistent
elif random() <= 0.20 and sushi == True:
useSkill(7, 'random') # Unstoppable Hammer (900215): Physical damage (10x, ATK) to all enemies, Reduce ATK, DEF, MAG and SPR by 60% for 3 turns to all enemies
elif random() <= 0.40 and sushi == True:
useSkill(4, 'random') # Don't hurt my tree! (900212): Magic damage (8x, MAG) to one enemy, Inflict Silence and Paralyze (70%) on one enemy
elif random() <= 0.75 and sushi == True and peach == False:
useSkill(5, 'random') # Freeze! (900213): Magic damage (3x, MAG) to one enemy, Inflict Stop (100%) for 3 turns on one enemy
peach = True # reset next turn
elif sushi == True:
useSkill(1, 'random') # Wood Sweep (900209): Physical damage (5x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
elif unit('4:ally:any').sufferedDamageLastTurn('fire', 'physical') and sushi == False and apple == False and bacon == False:
useSkill(3, 'random') # Fire Extinguisher (900211): Remove all buffs from all enemies, 60% HP damage to all enemies
apple = True # reset next turn
elif unit('4:ally:any').sufferedDamageLastTurn('fire', 'magical') and sushi == False and apple == False and bacon == False:
useSkill(3, 'random') # Fire Extinguisher (900211): Remove all buffs from all enemies, 60% HP damage to all enemies
apple = True # reset next turn
elif self.HP < 0.5 and fries == False:
wait() # No action
fries = True # persistent
salad = True # persistent
steak = True # persistent
elif steak == True and olive == False:
useSkill(4, 'random') # Don't hurt my tree! (900212): Magic damage (8x, MAG) to one enemy, Inflict Silence and Paralyze (70%) on one enemy
olive = True # reset next turn
elif random() <= 0.50 and steak == True:
useSkill(1, 'random') # Wood Sweep (900209): Physical damage (5x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
elif steak == True and peach == False:
useSkill(5, 'random') # Freeze! (900213): Magic damage (3x, MAG) to one enemy, Inflict Stop (100%) for 3 turns on one enemy
peach = True # reset next turn
elif random() <= 0.10 and steak == True:
useSkill(4, 'random') # Don't hurt my tree! (900212): Magic damage (8x, MAG) to one enemy, Inflict Silence and Paralyze (70%) on one enemy
elif steak == True:
attack('random')
elif random() <= 0.05 and salad == False:
useSkill(4, 'random') # Don't hurt my tree! (900212): Magic damage (8x, MAG) to one enemy, Inflict Silence and Paralyze (70%) on one enemy
elif random() <= 0.40 and salad == False:
useSkill(1, 'random') # Wood Sweep (900209): Physical damage (5x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
elif random() <= 0.30 and salad == False and peach == False:
useSkill(5, 'random') # Freeze! (900213): Magic damage (3x, MAG) to one enemy, Inflict Stop (100%) for 3 turns on one enemy
peach = True # reset next turn
elif salad == False:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.