Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic aEnigmatic/8980110.gl.py
Last active Jul 15, 2018

Embed
What would you like to do?
12 Weapons - 05 - Aldhafera - Chamber of Arms - The Starving Wicked Beast
##
# Mission 'Chamber of Arms - The Starving Wicked Beast' (8980110)
# Enemy has first strike!
# BattleScript: 898011001
##
##
# Monster Info
##
#
# Monster Aldhafera (401071001)
# Race Beast, Human
# Level 99
# Actions 10-10
#
#
# Stats
# HP 4200000
# MP 30000
# ATK 1000
# DEF 340
# MAG 900
# SPR 350
#
#
# 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 (+100% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 0%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk? 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Spirits have entered into Aldhafera! (178200) [None]
#
# 3% HP damage to caster
# Unused paramaters: [3,100]
# Inflict Disease (100%) on caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf's Claw (178210) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Reduce DEF by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf's Claw (178220) [Physical]
#
# Physical damage (5x, ATK) to one enemy
# Reduce DEF by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf's Claw (178230) [Physical]
#
# Physical damage (7x, ATK) to one enemy
# Reduce DEF by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf Claw Combo (178240) [Physical]
#
# Physical damage (4x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf Claw Combo (178250) [Physical]
#
# Physical damage (5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wolf Claw Combo (178260) [Physical]
#
# Physical damage (7x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wicked Claw Flash (178270) [Physical]
#
# Physical damage (12x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wicked Claw Flash (178280) [Physical]
#
# Physical damage (13x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wicked Claw Flash (178290) [Physical]
#
# Physical damage (15x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Howl (178300) [None]
#
# Increase ATK and MAG by 50% for 3 turns to caster
# Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Snap (178310) [Physical]
#
# Physical damage (100x, ATK) to one enemy (+100% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spirits have wrapped Aldhafera! (178320) [None]
#
# Restore 100% HP to caster
# Reduce resistance to Wind and Earth by 100% for 999 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fire Claw of Death (178330) [Magic]
#
# Magic fire damage (7x, MAG) to one enemy
# Reduce resistance to Fire by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ice Claw of Death (178340) [Magic]
#
# Magic ice damage (7x, MAG) to one enemy
# Reduce resistance to Ice by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Water Claw of Death (178350) [Magic]
#
# Magic water damage (7x, MAG) to one enemy
# Reduce resistance to Water by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wind Claw of Death (178360) [Magic]
#
# Magic wind damage (7x, MAG) to one enemy
# Reduce resistance to Wind by 70% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lightning Claw of Death (178370) [Magic]
#
# Magic lightning damage (6x, MAG) to all enemies
# Reduce resistance to Lightning by 70% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Claw of Death (178380) [Magic]
#
# Magic earth damage (6x, MAG) to all enemies
# Reduce resistance to Earth by 70% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# World of Rot (178390) [Magic]
#
# Magic damage (14x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The beast's true nature has awakened! (178400) [None]
#
# Increase ATK and MAG by 100% for 999 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wicked Claw Flash (178190) [Physical]
#
# Physical damage (7x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
end_turn()
green = 0
elif once():
useSkill(1, 'random') # Spirits have entered into Aldhafera! (178200): 3% HP damage to caster, Inflict Disease (100%) on caster
elif once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
elif once():
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
apple = True # reset next turn
elif steak == True and green > 6 and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
green = 0
elif green > 7 and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
green = 0
elif self.HP < 0.5 and once():
useSkill(13, 'random') # Spirits have wrapped Aldhafera! (178320): Restore 100% HP to caster, Reduce resistance to Wind and Earth by 100% for 999 turns to caster
mango = True # reset next turn
bacon = True # persistent
green = 0
elif self.HP < 0.5 and once() and mango == False:
useSkill(21, 'random') # The beast's true nature has awakened! (178400): Increase ATK and MAG by 100% for 999 turns to caster
steak = True # persistent
green = 0
elif self.HP < 0.8 and bacon == True and mango == False and once():
useSkill(12, 'mind_max') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
elif self.HP < 0.8 and bacon == True and mango == False and once():
useSkill(20, 'random') # World of Rot (178390): Magic damage (14x, MAG) to all enemies
elif self.HP < 0.8 and bacon == True and mango == False and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.6 and bacon == True and mango == False and once():
useSkill(12, 'mind_max') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
elif self.HP < 0.6 and bacon == True and mango == False and once():
useSkill(20, 'random') # World of Rot (178390): Magic damage (14x, MAG) to all enemies
elif self.HP < 0.6 and bacon == True and mango == False and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.4 and bacon == True and mango == False and once():
useSkill(12, 'mind_max') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
elif self.HP < 0.4 and bacon == True and mango == False and once():
useSkill(20, 'random') # World of Rot (178390): Magic damage (14x, MAG) to all enemies
elif self.HP < 0.4 and bacon == True and mango == False and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
elif bacon == True and salad == True and lemon == False:
useSkill(19, 'random') # Earth Claw of Death (178380): Magic earth damage (6x, MAG) to all enemies, Reduce resistance to Earth by 70% for 3 turns to all enemies
lemon = True # reset next turn
unk_2 = True # reset next turn
salad = False # persistent
green += 1
elif bacon == True and salad == False and lemon == False:
useSkill(18, 'random') # Lightning Claw of Death (178370): Magic lightning damage (6x, MAG) to all enemies, Reduce resistance to Lightning by 70% for 3 turns to all enemies
lemon = True # reset next turn
unk_3 = True # reset next turn
salad = True # persistent
green += 1
elif bacon == True and unk_2* == True and grape == False:
useSkill(16, 'random') # Water Claw of Death (178350): Magic water damage (7x, MAG) to one enemy, Reduce resistance to Water by 70% for 3 turns to one enemy
grape = True # reset next turn
green += 1
elif bacon == True and unk_2* == True and melon == False:
useSkill(17, 'random') # Wind Claw of Death (178360): Magic wind damage (7x, MAG) to one enemy, Reduce resistance to Wind by 70% for 3 turns to one enemy
melon = True # reset next turn
green += 1
elif bacon == True and unk_3* == True and grape == False:
useSkill(14, 'random') # Fire Claw of Death (178330): Magic fire damage (7x, MAG) to one enemy, Reduce resistance to Fire by 70% for 3 turns to one enemy
grape = True # reset next turn
green += 1
elif bacon == True and unk_3* == True and melon == False:
useSkill(15, 'random') # Ice Claw of Death (178340): Magic ice damage (7x, MAG) to one enemy, Reduce resistance to Ice by 70% for 3 turns to one enemy
melon = True # reset next turn
green += 1
elif random() <= 0.20 and steak == True and guava == False:
useSkill(14, 'random') # Fire Claw of Death (178330): Magic fire damage (7x, MAG) to one enemy, Reduce resistance to Fire by 70% for 3 turns to one enemy
guava = True # reset next turn
green += 1
elif random() <= 0.20 and steak == True and guava == False:
useSkill(15, 'random') # Ice Claw of Death (178340): Magic ice damage (7x, MAG) to one enemy, Reduce resistance to Ice by 70% for 3 turns to one enemy
guava = True # reset next turn
green += 1
elif random() <= 0.30 and steak == True and guava == False:
useSkill(16, 'random') # Water Claw of Death (178350): Magic water damage (7x, MAG) to one enemy, Reduce resistance to Water by 70% for 3 turns to one enemy
guava = True # reset next turn
green += 1
elif steak == True and guava == False:
useSkill(17, 'random') # Wind Claw of Death (178360): Magic wind damage (7x, MAG) to one enemy, Reduce resistance to Wind by 70% for 3 turns to one enemy
guava = True # reset next turn
green += 1
elif steak == True and gourd == False and isTurnMod(3):
useSkill(22, 'random') # Wicked Claw Flash (178190): Physical damage (7x, ATK) to all enemies
gourd = True # reset next turn
green += 1
elif bacon == True:
attack('random')
green += 1
elif bacon == False and self.HP > 0.6 and berry == False:
useSkill(1, 'random') # Spirits have entered into Aldhafera! (178200): 3% HP damage to caster, Inflict Disease (100%) on caster
berry = True # reset next turn
green += 1
elif bacon == False and green > 7:
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
green += 1
elif self.HP < 0.7 and once():
useSkill(10, 'random') # Wicked Claw Flash (178290): Physical damage (15x, ATK) to all enemies
otter = True # reset next turn
elif otter* == True and once():
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
tiger = True # reset next turn
elif tiger* == True and once():
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
mouse = True # reset next turn
elif mouse* == True and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
sushi = True # persistent
elif self.HP < 0.8 and sushi == False and once():
useSkill(9, 'random') # Wicked Claw Flash (178280): Physical damage (13x, ATK) to all enemies
goose = True # reset next turn
elif goose* == True and sushi == False and once():
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
horse = True # reset next turn
elif horse* == True and sushi == False and once():
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
unk_1 = True # reset next turn
elif unk_1* == True and sushi == False and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
ramen = True # persistent
elif self.HP < 0.9 and sushi == False and ramen == False and once():
useSkill(8, 'random') # Wicked Claw Flash (178270): Physical damage (12x, ATK) to all enemies
elif self.HP < 0.9 and sushi == False and ramen == False and once():
useSkill(11, 'random') # Howl (178300): Increase ATK and MAG by 50% for 3 turns to caster, Reduce ATK, DEF, MAG and SPR by 15% for 3 turns to all enemies
apple = True # reset next turn
honey = True # persistent
elif sushi == True and peach == False:
useSkill(4, 'mind_max') # Wolf's Claw (178230): Physical damage (7x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
peach = True # reset next turn
green += 1
elif sushi == True and olive == False:
useSkill(4, 'mind_max') # Wolf's Claw (178230): Physical damage (7x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
olive = True # reset next turn
green += 1
elif sushi == True and grape == False:
useSkill(4, 'mind_max') # Wolf's Claw (178230): Physical damage (7x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
grape = True # reset next turn
green += 1
elif sushi == True and mango == False:
useSkill(7, 'random') # Wolf Claw Combo (178260): Physical damage (7x, ATK) to one enemy
mango = True # reset next turn
green += 1
elif sushi == True and isTurnMod(6) and lemon == False:
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
lemon = True # reset next turn
green += 1
elif ramen == True and sushi == False and olive == False:
useSkill(3, 'mind_max') # Wolf's Claw (178220): Physical damage (5x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
olive = True # reset next turn
green += 1
elif ramen == True and sushi == False and grape == False:
useSkill(3, 'mind_max') # Wolf's Claw (178220): Physical damage (5x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
grape = True # reset next turn
green += 1
elif ramen == True and sushi == False and mango == False:
useSkill(6, 'random') # Wolf Claw Combo (178250): Physical damage (5x, ATK) to one enemy
mango = True # reset next turn
green += 1
elif ramen == True and sushi == False and isTurnMod(3) and lemon == False:
useSkill(12, 'random') # Snap (178310): Physical damage (100x, ATK) to one enemy (+100% accuracy)
lemon = True # reset next turn
green += 1
elif honey == True and ramen == False and peach == False:
useSkill(2, 'mind_max') # Wolf's Claw (178210): Physical damage (4x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
peach = True # reset next turn
green += 1
elif honey == True and ramen == False and olive == False:
useSkill(2, 'mind_max') # Wolf's Claw (178210): Physical damage (4x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
olive = True # reset next turn
green += 1
elif random() <= 0.15 and honey == False:
useSkill(2, 'random') # Wolf's Claw (178210): Physical damage (4x, ATK) to one enemy, Reduce DEF by 70% for 3 turns to one enemy
green += 1
else:
attack('random')
green += 1
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.