Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created November 22, 2018 12: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/ec5ea04e44c6df80ca39cda455c97d7d to your computer and use it in GitHub Desktop.
Save aEnigmatic/ec5ea04e44c6df80ca39cda455c97d7d to your computer and use it in GitHub Desktop.
Twelve Weapons - 09 - Nunki - HARD / Chamber of Arms - The Dragon of Concealed Affection
##
# Mission 'Chamber of Arms - The Dragon of Concealed Affection' (8980118)
# Enemy has first strike!
# BattleScript: 898011801
#
# Battles
# * Nunki
##
##
# Monster Info
##
#
# Monster Nunki (307081001)
# Race Human, Dragon
# Level 99
# Actions 10-10
#
#
# Stats
# HP 10000000
# MP 4000
# ATK 800
# DEF 1400
# MAG 950
# SPR 1400
#
#
# 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 (+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
###
#
# Book Hammer (186920) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Reduce ATK and MAG by 50% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chain Smash (186930) [Physical]
#
# Physical damage (4x, ATK) to all enemies
# Reduce DEF and SPR by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Nunki is surrounded by water. (186940) [None]
#
# Set Water resistance to 300% for one turn to caster (can not be removed)
# Set Lightning resistance to -1000% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Water is coming out of the book! (186950) [Magic]
#
# Magic water damage (9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Murky water is coming from the book! (186960) [Magic]
#
# Magic water damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Nunki is surrounded by fire. (186970) [None]
#
# Set Fire resistance to 300% for one turn to caster (can not be removed)
# Set Ice resistance to -1000% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fire is coming out of the book! (186980) [Magic]
#
# Magic fire damage (9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Flames are coming from the book! (186990) [Magic]
#
# Magic fire damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Nunki is surrounded by earth! (187000) [None]
#
# Set Earth resistance to 300% for one turn to caster (can not be removed)
# Set Wind resistance to -1000% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rocks are coming out of the book! (187010) [Magic]
#
# Magic earth damage (9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Boulders are coming from the book! (187020) [Magic]
#
# Magic earth damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Nunki is surrounded by wind. (187030) [None]
#
# Set Wind resistance to 300% for one turn to caster (can not be removed)
# Set Earth resistance to -1000% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Wind is coming out of the book! (187040) [Magic]
#
# Magic wind damage (9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# A tornado is coming from the book! (187050) [Magic]
#
# Magic wind damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Akashic Force (187060) [None]
#
# Increase ATK, DEF, MAG and SPR by 50% for 3 turns to caster
# Set Ice, Lightning, Wind and Earth resistance to -1000% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tranquil Glint (187070) [None]
#
# Inflict Paralyze (100%) on one enemy
# Inflict Stop (100%) for 2 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Bright Scales (187080) [None]
#
# Set Ice, Lightning, Wind and Earth resistance to 300% for 9999 turns to caster (can not be removed)
# Reduce magic damage taken by 50% to caster for 9999 turns (can not be removed)
# Set Fire, Water, Light and Dark resistance to -1000% for 9999 turns to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dragon's Jaw (187090) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Reduce DEF and SPR by 50% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Toxic Breath (187100) [Magic]
#
# Magic damage (4x, MAG) to all enemies
# Inflict Poison and Paralyze (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Soul Drain (187110) [Magic]
#
# Magic damage (50x, MAG) as HP drain (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chaos Media (187120) [Magic]
#
# Magic damage (4x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gorge (187130) [Magic]
#
# 199% HP damage to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (187140) [None]
#
# Dodge 1 physical attacks for 5 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(3, 'random') # Nunki is surrounded by water. (186940): Set Water resistance to 300% for one turn to caster (can not be removed), Set Lightning resistance to -1000% for one turn to caster (can not be removed)
apple = True # reset next turn
elif green == 0 and self.HP < 0.5 and once():
useSkill(17, 'random') # Bright Scales (187080): Set Ice, Lightning, Wind and Earth resistance to 300% for 9999 turns to caster (can not be removed), Reduce magic damage taken by 50% to caster for 9999 turns (can not be removed), Set Fire, Water, Light and Dark resistance to -1000% for 9999 turns to caster (can not be removed)
green += 1
elif green == 1 and self.HP < 0.3 and once():
useSkill(21, 'random') # Chaos Media (187120): Magic damage (4x, MAG) to all enemies
green += 1
berry = True # reset next turn
elif green == 1 and berry == False:
useSkill(19, 'random') # Toxic Breath (187100): Magic damage (4x, MAG) to all enemies, Inflict Poison and Paralyze (100%) on all enemies
berry = True # reset next turn
elif green == 1 and isTurnMod(2) and peach == False:
useSkill(19, 'random') # Toxic Breath (187100): Magic damage (4x, MAG) to all enemies, Inflict Poison and Paralyze (100%) on all enemies
peach = True # reset next turn
elif random() <= 0.35 and green == 1:
useSkill(18, 'random') # Dragon's Jaw (187090): Physical damage (4x, ATK) to one enemy, Reduce DEF and SPR by 50% for 3 turns to one enemy
elif green == 2 and berry == False:
useSkill(21, 'random') # Chaos Media (187120): Magic damage (4x, MAG) to all enemies
berry = True # reset next turn
elif green == 2 and isTurnMod(2) and peach == False:
useSkill(21, 'random') # Chaos Media (187120): Magic damage (4x, MAG) to all enemies
peach = True # reset next turn
elif green == 2 and guava == False:
useSkill(22, 'random') # Gorge (187130): 199% HP damage to one enemy
guava = True # reset next turn
elif green == 2 and isTurnMod(3) and olive == False:
useSkill(20, 'random') # Soul Drain (187110): Magic damage (50x, MAG) as HP drain (100%) to one enemy
olive = True # reset next turn
elif green == 2 and mango == False:
useSkill(23, 'random') # Fascinating Glint (187140): Dodge 1 physical attacks for 5 turns to caster
mango = True # reset next turn
elif green == 0 and self.HP < 0.9 and once():
useSkill(6, 'random') # Nunki is surrounded by fire. (186970): Set Fire resistance to 300% for one turn to caster (can not be removed), Set Ice resistance to -1000% for one turn to caster (can not be removed)
white += 1
berry = True # reset next turn
elif green == 0 and self.HP < 0.8 and once():
useSkill(9, 'random') # Nunki is surrounded by earth! (187000): Set Earth resistance to 300% for one turn to caster (can not be removed), Set Wind resistance to -1000% for one turn to caster (can not be removed)
white += 1
berry = True # reset next turn
elif green == 0 and self.HP < 0.7 and once():
useSkill(12, 'random') # Nunki is surrounded by wind. (187030): Set Wind resistance to 300% for one turn to caster (can not be removed), Set Earth resistance to -1000% for one turn to caster (can not be removed)
white += 1
berry = True # reset next turn
elif green == 0 and self.HP < 0.6 and once():
useSkill(16, 'random') # Tranquil Glint (187070): Inflict Paralyze (100%) on one enemy, Inflict Stop (100%) for 2 turns on one enemy
white += 1
olive = True # reset next turn
berry = True # reset next turn
elif green == 0 and white == 0 and berry == False:
useSkill(3, 'random') # Nunki is surrounded by water. (186940): Set Water resistance to 300% for one turn to caster (can not be removed), Set Lightning resistance to -1000% for one turn to caster (can not be removed)
berry = True # reset next turn
elif green == 0 and white == 1 and berry == False:
useSkill(6, 'random') # Nunki is surrounded by fire. (186970): Set Fire resistance to 300% for one turn to caster (can not be removed), Set Ice resistance to -1000% for one turn to caster (can not be removed)
berry = True # reset next turn
elif green == 0 and white == 2 and berry == False:
useSkill(9, 'random') # Nunki is surrounded by earth! (187000): Set Earth resistance to 300% for one turn to caster (can not be removed), Set Wind resistance to -1000% for one turn to caster (can not be removed)
berry = True # reset next turn
elif green == 0 and white == 3 and berry == False:
useSkill(12, 'random') # Nunki is surrounded by wind. (187030): Set Wind resistance to 300% for one turn to caster (can not be removed), Set Earth resistance to -1000% for one turn to caster (can not be removed)
berry = True # reset next turn
elif green == 0 and white == 0 and peach == False:
useSkill(4, 'random') # Water is coming out of the book! (186950): Magic water damage (9x, MAG) to one enemy
peach = True # reset next turn
elif green == 0 and white == 0 and isTurnMod(2) and olive == False:
useSkill(4, 'random') # Water is coming out of the book! (186950): Magic water damage (9x, MAG) to one enemy
olive = True # reset next turn
elif green == 0 and white == 0 and mango == False:
useSkill(5, 'random') # Murky water is coming from the book! (186960): Magic water damage (10x, MAG) to all enemies
mango = True # reset next turn
elif green == 0 and white == 1 and peach == False:
useSkill(7, 'random') # Fire is coming out of the book! (186980): Magic fire damage (9x, MAG) to one enemy
peach = True # reset next turn
elif green == 0 and white == 1 and isTurnMod(2) and olive == False:
useSkill(7, 'random') # Fire is coming out of the book! (186980): Magic fire damage (9x, MAG) to one enemy
olive = True # reset next turn
elif green == 0 and white == 1 and mango == False:
useSkill(8, 'random') # Flames are coming from the book! (186990): Magic fire damage (10x, MAG) to all enemies
mango = True # reset next turn
elif green == 0 and white == 2 and peach == False:
useSkill(10, 'random') # Rocks are coming out of the book! (187010): Magic earth damage (9x, MAG) to one enemy
peach = True # reset next turn
elif green == 0 and white == 2 and isTurnMod(2) and olive == False:
useSkill(10, 'random') # Rocks are coming out of the book! (187010): Magic earth damage (9x, MAG) to one enemy
olive = True # reset next turn
elif green == 0 and white == 2 and mango == False:
useSkill(11, 'random') # Boulders are coming from the book! (187020): Magic earth damage (10x, MAG) to all enemies
mango = True # reset next turn
elif green == 0 and white == 3 and peach == False:
useSkill(13, 'random') # Wind is coming out of the book! (187040): Magic wind damage (9x, MAG) to one enemy
peach = True # reset next turn
elif green == 0 and white == 3 and isTurnMod(2) and olive == False:
useSkill(13, 'random') # Wind is coming out of the book! (187040): Magic wind damage (9x, MAG) to one enemy
olive = True # reset next turn
elif green == 0 and white == 3 and mango == False:
useSkill(14, 'random') # A tornado is coming from the book! (187050): Magic wind damage (10x, MAG) to all enemies
mango = True # reset next turn
elif green == 0 and lemon == False:
useSkill(1, 'random') # Book Hammer (186920): Physical damage (4x, ATK) to one enemy, Reduce ATK and MAG by 50% for 3 turns to one enemy
lemon = True # reset next turn
elif green == 0 and isTurnMod(2) and melon == False:
useSkill(1, 'random') # Book Hammer (186920): Physical damage (4x, ATK) to one enemy, Reduce ATK and MAG by 50% for 3 turns to one enemy
melon = True # reset next turn
elif green == 0 and grape == False:
useSkill(2, 'random') # Chain Smash (186930): Physical damage (4x, ATK) to all enemies, Reduce DEF and SPR by 50% for 3 turns to all enemies
grape = True # reset next turn
elif green == 0 and white == 4 and peach == False:
useSkill(15, 'random') # Akashic Force (187060): Increase ATK, DEF, MAG and SPR by 50% for 3 turns to caster, Set Ice, Lightning, Wind and Earth resistance to -1000% for one turn to caster (can not be removed)
peach = True # reset next turn
elif green == 0 and white == 4 and olive == False:
useSkill(16, 'random') # Tranquil Glint (187070): Inflict Paralyze (100%) on one enemy, Inflict Stop (100%) for 2 turns on one enemy
olive = True # reset next turn
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment