Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created June 15, 2018 07:04
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/8e6c027f4826120d9156f4d60f826878 to your computer and use it in GitHub Desktop.
Save aEnigmatic/8e6c027f4826120d9156f4d60f826878 to your computer and use it in GitHub Desktop.
12 Weapons - 04 - Tegmine - HARD
##
# Mission 'Chamber of Arms - Warrior of Bravery and Pride' (8980108)
# Enemy has first strike!
# BattleScript: 898010801
##
##
# Monster Info
##
#
# Monster Tegmine (410011001)
# Race Stone, Reaper
# Level 99
# Actions 9-9
#
#
# Stats
# HP 5500000
# MP 4000
# ATK 1000
# DEF 400
# MAG 900
# SPR 240
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -100%
# Ice -100%
# Lightning -100%
# Water 0%
# Wind -100%
# Earth -100%
# Light 0%
# Dark -100%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 0%
# Berserk? 0%
#
#
# Immunity
# Death +
# Gravity +
# Unknown (7) +
#
###
###
# Passives
###
#
# 水光属性吸収 (100008) [Passive]
#
# Absorb Water and Light elemental attacks
#
##
###
# Skills
###
#
# Something's moving in the coffin (176460) [None]
#
# Reduce physical damage taken by 100% to caster for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shocking Shell (176480) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Light of Destruction (176500) [Magic]
#
# Magic light damage (4x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Australis (176520) [Magic]
#
# Magic light damage (8x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# It's wrapped in a suspicious light! (176540) [None]
#
# Reduce resistance to Light by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# They were swallowed into the coffin! (176550) [Magic]
#
# [Death]
# Instant KO (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# A strange figure appeared from the coffin! (176560) [None]
#
# Reduce magic damage taken by 100% to one ally for 9999 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# This is our all-out attack! (176570) [Physical]
#
# Physical damage (3x, ATK) to all enemies
# Inflict Paralyze (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel our blades! (176580) [Physical]
#
# Physical damage (3.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Counter Zapper (176590) [Magic]
#
# Magic damage (4x, MAG) to all enemies
# Inflict Poison, Paralyze and Disease (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Your attack sent a piece of them flying (176600) [None]
#
# Reduce ATK and DEF by 60% for 3 turns to all enemies
# Reduce resistance to Water by 75% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Your attack sent some liquid flying (176610) [None]
#
# Reduce MAG and SPR by 60% for 3 turns to all enemies
# Reduce resistance to Water by 75% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chaos Rampage (176620) [Hybrid]
#
# Hybrid 300 damage (10x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sewage is pouring down! (176630) [None]
#
# Magic* water damage (13x, MAG) to all units
# Reduce resistance to Water by 75% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lethal Stab (176640) [Magic]
#
# [Death]
# Instant KO (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mjul Ujul (176650) [Physical]
#
# Physical damage (4.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Megyornia (176660) [Magic]
#
# Magic damage (4.5x, MAG) to one enemy
# Inflict Poison (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
end_turn()
elif once():
useSkill(1, 'random') # Something's moving in the coffin (176460): Reduce physical damage taken by 100% to caster for one turn
elif once():
useSkill(5, 'random') # It's wrapped in a suspicious light! (176540): Reduce resistance to Light by 50% for 3 turns to all enemies
elif once():
useSkill(6, 'random') # They were swallowed into the coffin! (176550): [Death] Instant KO (100%) to one enemy
apple = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('spell') and honey == True and grape == False:
useSkill(10, 'random') # Counter Zapper (176590): Magic damage (4x, MAG) to all enemies Inflict Poison, Paralyze and Disease (100%) on all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('spell') and honey == True and grape == False:
useSkill(11, 'random') # Your attack sent a piece of them flying (176600): Reduce ATK and DEF by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('spell') and honey == True and grape == False:
useSkill(12, 'random') # Your attack sent some liquid flying (176610): Reduce MAG and SPR by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif self.lastTurnHitBy('spell') and honey == True and grape == False:
useSkill(17, 'random') # Megyornia (176660): Magic damage (4.5x, MAG) to one enemy Inflict Poison (100%) on one enemy
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('ability') and honey == True and grape == False:
useSkill(10, 'random') # Counter Zapper (176590): Magic damage (4x, MAG) to all enemies Inflict Poison, Paralyze and Disease (100%) on all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('ability') and honey == True and grape == False:
useSkill(11, 'random') # Your attack sent a piece of them flying (176600): Reduce ATK and DEF by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('ability') and honey == True and grape == False:
useSkill(12, 'random') # Your attack sent some liquid flying (176610): Reduce MAG and SPR by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif self.lastTurnHitBy('ability') and honey == True and grape == False:
useSkill(17, 'random') # Megyornia (176660): Magic damage (4.5x, MAG) to one enemy Inflict Poison (100%) on one enemy
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('esper') and honey == True and grape == False:
useSkill(10, 'random') # Counter Zapper (176590): Magic damage (4x, MAG) to all enemies Inflict Poison, Paralyze and Disease (100%) on all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('esper') and honey == True and grape == False:
useSkill(11, 'random') # Your attack sent a piece of them flying (176600): Reduce ATK and DEF by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif random() <= 0.33 and self.lastTurnHitBy('esper') and honey == True and grape == False:
useSkill(12, 'random') # Your attack sent some liquid flying (176610): Reduce MAG and SPR by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif self.lastTurnHitBy('esper') and honey == True and grape == False:
useSkill(17, 'random') # Megyornia (176660): Magic damage (4.5x, MAG) to one enemy Inflict Poison (100%) on one enemy
grape = True # reset next turn
elif random() <= 0.33 and unit('player_any').is('before_turn_attack:1') and honey == True and grape == False:
useSkill(10, 'random') # Counter Zapper (176590): Magic damage (4x, MAG) to all enemies Inflict Poison, Paralyze and Disease (100%) on all enemies
grape = True # reset next turn
elif random() <= 0.33 and unit('player_any').is('before_turn_attack:1') and honey == True and grape == False:
useSkill(11, 'random') # Your attack sent a piece of them flying (176600): Reduce ATK and DEF by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif random() <= 0.33 and unit('player_any').is('before_turn_attack:1') and honey == True and grape == False:
useSkill(12, 'random') # Your attack sent some liquid flying (176610): Reduce MAG and SPR by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
grape = True # reset next turn
elif unit('player_any').is('before_turn_attack:1') and honey == True and grape == False:
useSkill(17, 'random') # Megyornia (176660): Magic damage (4.5x, MAG) to one enemy Inflict Poison (100%) on one enemy
grape = True # reset next turn
elif self.HP < 0.6 and once():
useSkill(7, 'random') # A strange figure appeared from the coffin! (176560): Reduce magic damage taken by 100% to one ally for 9999 turns
honey = True # persistent
elif self.HP < 0.6 and once():
useSkill(8, 'random') # This is our all-out attack! (176570): Physical damage (3x, ATK) to all enemies Inflict Paralyze (100%) on all enemies
elif self.HP < 0.6 and once():
useSkill(8, 'random') # This is our all-out attack! (176570): Physical damage (3x, ATK) to all enemies Inflict Paralyze (100%) on all enemies
elif self.HP < 0.6 and once():
useSkill(8, 'random') # This is our all-out attack! (176570): Physical damage (3x, ATK) to all enemies Inflict Paralyze (100%) on all enemies
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(12, 'random') # Your attack sent some liquid flying (176610): Reduce MAG and SPR by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
ramen = True # persistent
elif self.HP < 0.4 and once():
useSkill(11, 'random') # Your attack sent a piece of them flying (176600): Reduce ATK and DEF by 60% for 3 turns to all enemies Reduce resistance to Water by 75% for 3 turns to all enemies
elif self.HP < 0.4 and once():
useSkill(10, 'random') # Counter Zapper (176590): Magic damage (4x, MAG) to all enemies Inflict Poison, Paralyze and Disease (100%) on all enemies
elif self.HP < 0.4 and once():
useSkill(13, 'random') # Chaos Rampage (176620): Hybrid 300 damage (10x, ATK & MAG) to all enemies
elif self.HP < 0.4 and once():
useSkill(15, 'random') # Lethal Stab (176640): [Death] Instant KO (100%) to one enemy
apple = True # reset next turn
elif self.HP < 0.2 and once():
useSkill(13, 'random') # Chaos Rampage (176620): Hybrid 300 damage (10x, ATK & MAG) to all enemies
elif self.HP < 0.2 and once():
useSkill(14, 'random') # Sewage is pouring down! (176630): Magic* water damage (13x, MAG) to all units Reduce resistance to Water by 75% for 3 turns to all enemies
elif random() <= 0.50 and honey == True and ramen == True and peach == False:
useSkill(16, 'random') # Mjul Ujul (176650): Physical damage (4.5x, ATK) to all enemies
peach = True # reset next turn
elif honey == True and ramen == True and peach == False:
useSkill(17, 'random') # Megyornia (176660): Magic damage (4.5x, MAG) to one enemy Inflict Poison (100%) on one enemy
peach = True # reset next turn
elif honey == True and ramen == True and lemon == False:
useSkill(14, 'random') # Sewage is pouring down! (176630): Magic* water damage (13x, MAG) to all units Reduce resistance to Water by 75% for 3 turns to all enemies
lemon = True # reset next turn
elif honey == True and ramen == False and peach == False:
useSkill(8, 'random') # This is our all-out attack! (176570): Physical damage (3x, ATK) to all enemies Inflict Paralyze (100%) on all enemies
peach = True # reset next turn
elif random() <= 0.20 and honey == True and ramen == False:
useSkill(9, 'random') # Feel our blades! (176580): Physical damage (3.5x, ATK) to all enemies
elif honey == False and berry == False:
useSkill(1, 'random') # Something's moving in the coffin (176460): Reduce physical damage taken by 100% to caster for one turn
berry = True # reset next turn
elif honey == False and self.HP < 0.9 and once():
useSkill(4, 'random') # Australis (176520): Magic light damage (8x, MAG) to one enemy
elif honey == False and self.HP < 0.9 and once():
useSkill(5, 'random') # It's wrapped in a suspicious light! (176540): Reduce resistance to Light by 50% for 3 turns to all enemies
apple = True # reset next turn
elif honey == False and self.HP < 0.75 and once():
useSkill(4, 'random') # Australis (176520): Magic light damage (8x, MAG) to one enemy
elif honey == False and self.HP < 0.75 and once():
useSkill(5, 'random') # It's wrapped in a suspicious light! (176540): Reduce resistance to Light by 50% for 3 turns to all enemies
apple = True # reset next turn
elif honey == False and isTurnMod(3) and olive == False:
useSkill(5, 'random') # It's wrapped in a suspicious light! (176540): Reduce resistance to Light by 50% for 3 turns to all enemies
olive = True # reset next turn
elif honey == False and isTurnMod(4) and mango == False:
useSkill(6, 'random') # They were swallowed into the coffin! (176550): [Death] Instant KO (100%) to one enemy
mango = True # reset next turn
elif honey == False and lemon == False:
useSkill(3, 'random') # Light of Destruction (176500): Magic light damage (4x, MAG) to all enemies
lemon = True # reset next turn
elif random() <= 0.30 and honey == False:
useSkill(2, 'random') # Shocking Shell (176480): Physical damage (3x, 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