Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active October 25, 2018 17:24
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/cea59f4b290fc87dc93764e05bbcc686 to your computer and use it in GitHub Desktop.
Save aEnigmatic/cea59f4b290fc87dc93764e05bbcc686 to your computer and use it in GitHub Desktop.
Odin 3* - New Trial of the Blade
##
# Mission 'New Trial of the Blade' (1425107)
#
# Battles
# * Odin
##
##
# Monster Info
##
#
# Monster Odin (305021002)
# Race Human
# Level 99
# Actions 20-20
#
#
# Stats
# HP 120000000
# MP 100000
# ATK 800
# DEF 350
# MAG 700
# SPR 300
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning -100%
# Water 0%
# Wind 0%
# 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
###
#
# 物理カウンター(円月斬) (100023) [Passive]
#
# 100% chance to counter physical attacks with Moonring Blade (188440) to the attacker
#
##
#
# 魔法カウンター中(スレイプニル) (100024) [Passive]
#
# 100% chance to counter magic attacks with Sleipnir (188450) to the attacker
#
##
###
# Skills
###
#
# Gungnir (188430) [Physical]
#
# Physical damage (1.4x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Moonring Blade (188440) [Physical]
#
# Physical damage (1.8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sleipnir (188450) [Magic]
#
# Magic damage (1.9x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sanngetall (188460) [None]
#
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cavalier Charge (188470) [None]
#
# Increase DEF and SPR by 50% and ATK and MAG by 30% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Geirrothr (188480) [Physical]
#
# Physical damage (2.4x, ATK) to all enemies
# Inflict Paralyze (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Obliteration (188490) [Magic]
#
# Magic damage (1.9x, MAG) to all enemies
# Inflict Blind (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Summon Einherjar (188500) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Einherjar (188510) [None]
#
# Magic* damage (2.2x, MAG) to all enemies
# Inflict Poison and Disease (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# True Zantetsuken Stance (188520) [None]
#
# Increase ATK and MAG by 50% for 3 turns to caster
# Reduce physical damage taken by 60% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 60% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# On guard.........! (188530) [None]
#
# Increase ATK and MAG by 60% for 3 turns to caster
# Reduce physical damage taken by 65% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 65% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# On guard......! (188540) [None]
#
# Increase ATK and MAG by 70% for 3 turns to caster
# Reduce physical damage taken by 70% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 70% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# On guard...! (188550) [None]
#
# Increase ATK and MAG by 80% for 3 turns to caster
# Reduce physical damage taken by 75% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# On guard! (188560) [None]
#
# Increase ATK and MAG by 90% for 3 turns to caster
# Reduce physical damage taken by 80% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 80% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shin-Zantetsuken (188570) [None]
#
# Instant KO (100%) to all enemies
# Reduce physical damage taken by 100% to caster for 999 turns (can not be removed)
# Reduce magic damage taken by 100% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif self.HP < 0.4 and once():
useSkill(4, 'random') # Sanngetall (188460): Remove all buffs and debuffs from all enemies
elif self.HP < 0.4 and once():
useSkill(10, 'random') # True Zantetsuken Stance (188520): Increase ATK and MAG by 50% for 3 turns to caster, Reduce physical damage taken by 60% to caster for 999 turns (can not be removed), Reduce magic damage taken by 60% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(11, 'random') # On guard.........! (188530): Increase ATK and MAG by 60% for 3 turns to caster, Reduce physical damage taken by 65% to caster for 999 turns (can not be removed), Reduce magic damage taken by 65% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(12, 'random') # On guard......! (188540): Increase ATK and MAG by 70% for 3 turns to caster, Reduce physical damage taken by 70% to caster for 999 turns (can not be removed), Reduce magic damage taken by 70% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(13, 'random') # On guard...! (188550): Increase ATK and MAG by 80% for 3 turns to caster, Reduce physical damage taken by 75% to caster for 999 turns (can not be removed), Reduce magic damage taken by 75% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(14, 'random') # On guard! (188560): Increase ATK and MAG by 90% for 3 turns to caster, Reduce physical damage taken by 80% to caster for 999 turns (can not be removed), Reduce magic damage taken by 80% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP < 0.4 and berry == False:
useSkill(4, 'random') # Sanngetall (188460): Remove all buffs and debuffs from all enemies
berry = True # reset next turn
elif self.HP < 0.4:
useSkill(15, 'random') # Shin-Zantetsuken (188570): Instant KO (100%) to all enemies, Reduce physical damage taken by 100% to caster for 999 turns (can not be removed), Reduce magic damage taken by 100% to caster for 999 turns (can not be removed)
apple = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.7 and white >= 9 and var_62 == False and isTurnMod(2):
useSkill(4, 'random') # Sanngetall (188460): Remove all buffs and debuffs from all enemies
var_62 = 1
elif self.HP > 0.7 and white >= 8 and var_62 == False and isTurnMod(4):
useSkill(4, 'random') # Sanngetall (188460): Remove all buffs and debuffs from all enemies
var_62 = 1
elif self.HP > 0.4 and self.HP < 0.7 and white >= 9 and melon == False and isTurnMod(2):
useSkill(8, 'random') # Summon Einherjar (188500): No effect
melon = True # reset next turn
ramen = True # persistent
elif self.HP > 0.7 and white >= 8 and melon == False and isTurnMod(3):
useSkill(8, 'random') # Summon Einherjar (188500): No effect
melon = True # reset next turn
ramen = True # persistent
elif self.HP > 0.4 and self.HP < 0.7 and white >= 9:
endTurn()
white = 0
elif self.HP > 0.7 and white >= 8:
endTurn()
white = 0
elif self.HP > 0.4 and self.HP < 0.7 and once():
useSkill(5, 'random') # Cavalier Charge (188470): Increase DEF and SPR by 50% and ATK and MAG by 30% for 3 turns to caster
var_61 = 1
elif self.HP > 0.4 and self.HP < 0.7 and isTurnMod(3) and var_61 == False:
useSkill(5, 'random') # Cavalier Charge (188470): Increase DEF and SPR by 50% and ATK and MAG by 30% for 3 turns to caster
var_61 = 1
elif self.HP > 0.7 and isTurnMod(4) and var_61 == False:
useSkill(5, 'random') # Cavalier Charge (188470): Increase DEF and SPR by 50% and ATK and MAG by 30% for 3 turns to caster
var_61 = 1
elif gourd == False and ramen == True:
useSkill(9, 'random') # Einherjar (188510): Magic* damage (2.2x, MAG) to all enemies, Inflict Poison and Disease (100%) on all enemies
gourd = True # reset next turn
ramen = False # persistent
elif random() <= 0.30 and berry == False:
useSkill(1, 'random') # Gungnir (188430): Physical damage (1.4x, ATK) to one enemy
white += 1
berry = True # reset next turn
elif random() <= 0.50 and berry == False:
useSkill(2, 'random') # Moonring Blade (188440): Physical damage (1.8x, ATK) to one enemy
white += 1
berry = True # reset next turn
elif berry == False:
useSkill(3, 'random') # Sleipnir (188450): Magic damage (1.9x, MAG) to one enemy
white += 1
berry = True # reset next turn
elif random() <= 0.30 and peach == False:
useSkill(2, 'random') # Moonring Blade (188440): Physical damage (1.8x, ATK) to one enemy
white += 1
peach = True # reset next turn
elif random() <= 0.50 and peach == False:
useSkill(3, 'random') # Sleipnir (188450): Magic damage (1.9x, MAG) to one enemy
white += 1
peach = True # reset next turn
elif peach == False:
useSkill(1, 'random') # Gungnir (188430): Physical damage (1.4x, ATK) to one enemy
white += 1
peach = True # reset next turn
elif random() <= 0.30 and olive == False:
useSkill(3, 'random') # Sleipnir (188450): Magic damage (1.9x, MAG) to one enemy
white += 1
olive = True # reset next turn
elif random() <= 0.50 and olive == False:
useSkill(2, 'random') # Moonring Blade (188440): Physical damage (1.8x, ATK) to one enemy
white += 1
olive = True # reset next turn
elif olive == False:
useSkill(1, 'random') # Gungnir (188430): Physical damage (1.4x, ATK) to one enemy
white += 1
olive = True # reset next turn
elif random() <= 0.30 and mango == False:
useSkill(3, 'random') # Sleipnir (188450): Magic damage (1.9x, MAG) to one enemy
white += 1
mango = True # reset next turn
elif random() <= 0.50 and mango == False:
useSkill(2, 'random') # Moonring Blade (188440): Physical damage (1.8x, ATK) to one enemy
white += 1
mango = True # reset next turn
elif mango == False:
useSkill(1, 'random') # Gungnir (188430): Physical damage (1.4x, ATK) to one enemy
white += 1
mango = True # reset next turn
elif self.HP > 0.7 and lemon == False and honey == False:
useSkill(6, 'random') # Geirrothr (188480): Physical damage (2.4x, ATK) to all enemies, Inflict Paralyze (100%) on all enemies
lemon = True # reset next turn
honey = True # persistent
elif self.HP > 0.7 and lemon == False and honey == True:
useSkill(7, 'random') # Obliteration (188490): Magic damage (1.9x, MAG) to all enemies, Inflict Blind (100%) on all enemies
lemon = True # reset next turn
honey = False # persistent
elif self.HP > 0.4 and self.HP < 0.7 and lemon == False and bacon == False:
useSkill(6, 'random') # Geirrothr (188480): Physical damage (2.4x, ATK) to all enemies, Inflict Paralyze (100%) on all enemies
lemon = True # reset next turn
bacon = True # persistent
elif self.HP > 0.4 and self.HP < 0.7 and lemon == False and bacon == True:
useSkill(7, 'random') # Obliteration (188490): Magic damage (1.9x, MAG) to all enemies, Inflict Blind (100%) on all enemies
lemon = True # reset next turn
bacon = False # persistent
elif self.HP > 0.4 and self.HP < 0.7 and grape == False and sushi == False:
useSkill(7, 'random') # Obliteration (188490): Magic damage (1.9x, MAG) to all enemies, Inflict Blind (100%) on all enemies
grape = True # reset next turn
sushi = True # persistent
elif self.HP > 0.4 and self.HP < 0.7 and grape == False and sushi == True:
useSkill(6, 'random') # Geirrothr (188480): Physical damage (2.4x, ATK) to all enemies, Inflict Paralyze (100%) on all enemies
grape = True # reset next turn
sushi = False # persistent
else:
attack('random')
white += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment