Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created November 23, 2023 17:57
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/7a177f0efb8c60dd6dbc6b880f57c830 to your computer and use it in GitHub Desktop.
Save aEnigmatic/7a177f0efb8c60dd6dbc6b880f57c830 to your computer and use it in GitHub Desktop.
Fighting As One
##
# Mission 'Fighting As One' (99470802)
# Enemy has first strike!
#
# Monsters
# * Veritas of the Frost (900011358)
# + Veritas of the Frost (900011369)
#
##
##
# Monster Info
##
#
# Monster Veritas of the Frost (900011369)
# Race Human
# Level 99
# Actions 18-18
#
#
# Stats
# HP 12000000000
# MP 10000
# ATK 10000
# DEF 1000000
# MAG 10000
# SPR 1000000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light 100%
# Dark 100%
# Non-Elemental 100%
#
#
# 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 +
#
###
###
# Passives
###
#
# Permafrost (920041) [Passive]
#
# Absorb Ice elemental attacks
#
##
###
# Skills
###
#
# Daunting Presence (902022) [None]
#
# Increase DEF and SPR by 50% for 3 turns to caster
# Increase ATK and MAG by 25% for 999 turns to caster (can not be removed)
# Reduce damage taken from physical attacks taken by 75% to caster for 3 turns
# Reduce damage taken by magic attacks by 75% to caster for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cold Edge (902023) [Physical]
#
# Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frost Wave (902024) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Commanding Force (902025) [Magic]
#
# Magic damage (5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Precision Pierce (902026) [Physical]
#
# Physical damage (15x, ATK) to one enemy (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crushing Cleave (902027) [Physical]
#
# Physical damage (30x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sub-Zero Sweep (902028) [Physical]
#
# Physical ice damage (20x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ice Prison (902029) [Magic]
#
# Magic ice damage (3x, MAG) to one enemy
# Inflict Stop (100%) for 999 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Iceshorn Force (902030) [None]
#
# Add Ice element (100%) to physical attacks for 3 turns to all enemies
# Reduce resistance to Ice by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Clear Blade (902031) [Physical]
#
# Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
# Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
# Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
# Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
# Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Soul Breaker (902032) [None]
#
# Reduce ATK, DEF, MAG and SPR by 90% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Countless Futures (902033) [None]
#
# Remove all debuffs from caster
# Remove ATK and MAG debuff from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Icy Refraction (902034) [None]
#
# Increase ATK and MAG by 50% for 999 turns to caster (can not be removed)
# Reduce damage taken from physical attacks taken by 50% to caster for 3 turns
# Reduce damage taken by magic attacks by 50% to caster for 3 turns
# Dodge 5 physical attacks for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Refraction (902035) [None]
#
# Increase ATK and MAG by 75% for 999 turns to caster (can not be removed)
# Reduce damage taken from physical attacks taken by 25% to caster for 3 turns
# Reduce damage taken by magic attacks by 25% to caster for 3 turns
# Dodge 10 physical attacks for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Snowstorm Strike (902036) [Physical]
#
# Physical ice damage (3x, ATK) to all enemies
# Inflict Blind (100%) on all enemies
# Remove resistances to Blind from all enemies for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cold Silence (902037) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Inflict Silence (100%) on all enemies
# Remove resistances to Silence from all enemies for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You will no go further. (902038) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You cannot defeat me. (902039) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The enemy's katana has dulled! (902040) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The enemy's katana has dulled greatly! (902041) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Guillotine Katana IV (902042) [Physical]
#
# Physical damage (240x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Guillotine Katana III (902043) [Physical]
#
# Physical damage (120x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Guillotine Katana II (902044) [Physical]
#
# Physical damage (80x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Guillotine Katana I (902045) [Physical]
#
# Physical damage (60x, ATK) to all enemies (+200% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if isFirstTurn():
useSkill(1, 'random') # Daunting Presence (902022): Increase DEF and SPR by 50% for 3 turns to caster, Increase ATK and MAG by 25% for 999 turns to caster (can not be removed), Reduce damage taken from physical attacks taken by 75% to caster for 3 turns, Reduce damage taken by magic attacks by 75% to caster for 3 turns
endTurn()
return
if apple:
endTurn()
return
if timesExecuted() < 5:
wait()
return
if self.HP < 0.7 and once():
white += 1
useSkill(13, 'random') # Icy Refraction (902034): Increase ATK and MAG by 50% for 999 turns to caster (can not be removed), Reduce damage taken from physical attacks taken by 50% to caster for 3 turns, Reduce damage taken by magic attacks by 50% to caster for 3 turns, Dodge 5 physical attacks for 3 turns to caster
return
if self.HP < 0.3 and once():
white += 1
useSkill(14, 'random') # Glacial Refraction (902035): Increase ATK and MAG by 75% for 999 turns to caster (can not be removed), Reduce damage taken from physical attacks taken by 25% to caster for 3 turns, Reduce damage taken by magic attacks by 25% to caster for 3 turns, Dodge 10 physical attacks for 3 turns to caster
return
if not berry:
if not unit('1:ally:any').sufferedDamageLastTurn('physical', 'fire'):
olive = True # reset next turn
berry = True # reset next turn
wait()
return
if not unit('1:ally:any').sufferedDamageLastTurn('physical', 'nonelemental') \
or not unit('1:ally:any').sufferedDamageLastTurn('physical', 'ice') \
or not unit('1:ally:any').sufferedDamageLastTurn('physical', 'aero|quake|thunder|water|dark|light'):
berry = True # reset next turn
wait()
return
if not peach:
if not unit('1:ally:any').sufferedDamageLastTurn('magical', 'fire'):
olive = True # reset next turn
peach = True # reset next turn
wait()
return
if not unit('1:ally:any').sufferedDamageLastTurn('magical', 'nonelemental') \
or not unit('1:ally:any').sufferedDamageLastTurn('magical', 'ice') \
or not unit('1:ally:any').sufferedDamageLastTurn('magical', 'aero|quake|thunder|water|dark|light'):
peach = True # reset next turn
wait()
return
if not grape and olive:
if black == 0 or black == 1:
black += 1
grape = True # reset next turn
useSkill(19, 'random') # The enemy's katana has dulled! (902040): No effect
return
if black == 2:
black += 1
grape = True # reset next turn
useSkill(20, 'random') # The enemy's katana has dulled greatly! (902041): No effect
return
if not mango and berry:
mango = True # reset next turn
useSkill(15, 'random') # Snowstorm Strike (902036): Physical ice damage (3x, ATK) to all enemies, Inflict Blind (100%) on all enemies, Remove resistances to Blind from all enemies for 2 turns
return
if not lemon and peach:
lemon = True # reset next turn
useSkill(16, 'random') # Cold Silence (902037): Magic ice damage (3x, MAG) to all enemies, Inflict Silence (100%) on all enemies, Remove resistances to Silence from all enemies for 2 turns
return
if white == 0:
if green == 0:
if not var_61:
var_61 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_63:
var_63 = True # reset next turn
useSkill(9, 'random') # Iceshorn Force (902030): Add Ice element (100%) to physical attacks for 3 turns to all enemies, Reduce resistance to Ice by 200% for 3 turns to all enemies
return
if not var_64:
var_64 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(17, 'random') # You will no go further. (902038): No effect
return
if green == 1:
if not var_61:
var_61 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(3, 'random') # Frost Wave (902024): Magic ice damage (3x, MAG) to all enemies
return
if not var_63:
var_63 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_64:
var_64 = True # reset next turn
useSkill(7, 'random') # Sub-Zero Sweep (902028): Physical ice damage (20x, ATK) to all enemies (+200% accuracy)
return
if not var_65:
var_65 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(18, 'random') # You cannot defeat me. (902039): No effect
return
if green == 2:
if not var_61:
var_61 = True # reset next turn
useSkill(10, 'random') # Clear Blade (902031): Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
return
if not var_62 and black == 0:
var_62 = True # reset next turn
useSkill(21, 'random') # Guillotine Katana IV (902042): Physical damage (240x, ATK) to all enemies (+200% accuracy)
return
if not var_63 and black == 1:
var_63 = True # reset next turn
useSkill(22, 'random') # Guillotine Katana III (902043): Physical damage (120x, ATK) to all enemies (+200% accuracy)
return
if not var_64 and black == 2:
var_64 = True # reset next turn
useSkill(23, 'random') # Guillotine Katana II (902044): Physical damage (80x, ATK) to all enemies (+200% accuracy)
return
if not var_65 and black == 3:
var_65 = True # reset next turn
useSkill(24, 'random') # Guillotine Katana I (902045): Physical damage (60x, ATK) to all enemies (+200% accuracy)
return
if not var_66:
var_66 = True # unknown flag type (66)
black = 0
green = 0
apple = True # reset next turn
useSkill(12, 'random') # Countless Futures (902033): Remove all debuffs from caster, Remove ATK and MAG debuff from caster
return
if white == 1:
if green == 0:
if not var_61:
var_61 = True # reset next turn
useSkill(5, 'random') # Precision Pierce (902026): Physical damage (15x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(5, 'random') # Precision Pierce (902026): Physical damage (15x, ATK) to one enemy (+200% accuracy)
return
if not var_63:
var_63 = True # reset next turn
useSkill(5, 'random') # Precision Pierce (902026): Physical damage (15x, ATK) to one enemy (+200% accuracy)
return
if not var_64:
var_64 = True # reset next turn
useSkill(9, 'random') # Iceshorn Force (902030): Add Ice element (100%) to physical attacks for 3 turns to all enemies, Reduce resistance to Ice by 200% for 3 turns to all enemies
return
if not var_65:
var_65 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(17, 'random') # You will no go further. (902038): No effect
return
if green == 1:
if not var_61:
var_61 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_63:
var_63 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_64:
var_64 = True # reset next turn
useSkill(6, 'random') # Crushing Cleave (902027): Physical damage (30x, ATK) to all enemies (+200% accuracy)
return
if not var_65:
var_65 = True # reset next turn
useSkill(11, 'random') # Soul Breaker (902032): Reduce ATK, DEF, MAG and SPR by 90% for 2 turns to all enemies
return
if not var_66:
var_66 = True # unknown flag type (66)
green += 1
apple = True # reset next turn
useSkill(18, 'random') # You cannot defeat me. (902039): No effect
return
if green == 2:
if not var_61:
var_61 = True # reset next turn
useSkill(10, 'random') # Clear Blade (902031): Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
return
if not var_62 and black == 0:
var_62 = True # reset next turn
useSkill(21, 'random') # Guillotine Katana IV (902042): Physical damage (240x, ATK) to all enemies (+200% accuracy)
return
if not var_63 and black == 1:
var_63 = True # reset next turn
useSkill(22, 'random') # Guillotine Katana III (902043): Physical damage (120x, ATK) to all enemies (+200% accuracy)
return
if not var_64 and black == 2:
var_64 = True # reset next turn
useSkill(23, 'random') # Guillotine Katana II (902044): Physical damage (80x, ATK) to all enemies (+200% accuracy)
return
if not var_65 and black == 3:
var_65 = True # reset next turn
useSkill(24, 'random') # Guillotine Katana I (902045): Physical damage (60x, ATK) to all enemies (+200% accuracy)
return
if not var_66:
var_66 = True # unknown flag type (66)
black = 0
green = 0
apple = True # reset next turn
useSkill(12, 'random') # Countless Futures (902033): Remove all debuffs from caster, Remove ATK and MAG debuff from caster
return
if white == 2:
if green == 0:
if not var_61:
var_61 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902023): Physical ice damage (10x, ATK) to one enemy (+200% accuracy)
return
if not var_63:
var_63 = True # reset next turn
useSkill(4, 'random') # Commanding Force (902025): Magic damage (5x, MAG) to all enemies
return
if not var_64:
var_64 = True # reset next turn
useSkill(6, 'random') # Crushing Cleave (902027): Physical damage (30x, ATK) to all enemies (+200% accuracy)
return
if not var_65:
var_65 = True # reset next turn
useSkill(9, 'random') # Iceshorn Force (902030): Add Ice element (100%) to physical attacks for 3 turns to all enemies, Reduce resistance to Ice by 200% for 3 turns to all enemies
return
if not var_66:
var_66 = True # unknown flag type (66)
green += 1
apple = True # reset next turn
useSkill(17, 'random') # You will no go further. (902038): No effect
return
if green == 1:
if not var_61:
var_61 = True # reset next turn
useSkill(5, 'random') # Precision Pierce (902026): Physical damage (15x, ATK) to one enemy (+200% accuracy)
return
if not var_62:
var_62 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_63:
var_63 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_64:
var_64 = True # reset next turn
useSkill(8, 'random') # Ice Prison (902029): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_65:
var_65 = True # reset next turn
useSkill(7, 'random') # Sub-Zero Sweep (902028): Physical ice damage (20x, ATK) to all enemies (+200% accuracy)
return
if not var_66:
var_66 = True # unknown flag type (66)
useSkill(11, 'random') # Soul Breaker (902032): Reduce ATK, DEF, MAG and SPR by 90% for 2 turns to all enemies
return
if not var_67:
var_67 = True # unknown flag type (67)
green += 1
apple = True # reset next turn
useSkill(18, 'random') # You cannot defeat me. (902039): No effect
return
if green == 2:
if not var_61:
var_61 = True # reset next turn
useSkill(10, 'random') # Clear Blade (902031): Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy), Physical damage (0.1x, ATK) to all enemies (+200% accuracy)
return
if not var_62 and black == 0:
var_62 = True # reset next turn
useSkill(21, 'random') # Guillotine Katana IV (902042): Physical damage (240x, ATK) to all enemies (+200% accuracy)
return
if not var_63 and black == 1:
var_63 = True # reset next turn
useSkill(22, 'random') # Guillotine Katana III (902043): Physical damage (120x, ATK) to all enemies (+200% accuracy)
return
if not var_64 and black == 2:
var_64 = True # reset next turn
useSkill(23, 'random') # Guillotine Katana II (902044): Physical damage (80x, ATK) to all enemies (+200% accuracy)
return
if not var_65 and black == 3:
var_65 = True # reset next turn
useSkill(24, 'random') # Guillotine Katana I (902045): Physical damage (60x, ATK) to all enemies (+200% accuracy)
return
if not var_66:
var_66 = True # unknown flag type (66)
black = 0
green = 0
apple = True # reset next turn
useSkill(12, 'random') # Countless Futures (902033): Remove all debuffs from caster, Remove ATK and MAG debuff from caster
return
else:
attack('random')
return
##
# Monster Info
##
#
# Monster Veritas of the Frost (900011358, 900011357)
# Race Human
# Level 50
# Actions 18-18
#
#
# Stats
# HP 400000
# MP 10000
# ATK 800
# DEF 1000
# MAG 800
# SPR 1000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light 100%
# Dark 100%
# Non-Elemental 100%
#
#
# 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 +
#
###
###
# Passives
###
#
# Permafrost (920041) [Passive]
#
# Absorb Ice elemental attacks
#
##
###
# Skills
###
#
# Daunting Presence (902012) [None]
#
# Increase DEF and SPR by 50% for 3 turns to caster
# Increase ATK and MAG by 25% for 999 turns to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cold Edge (902013) [Physical]
#
# Physical ice damage (5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Commanding Force (902014) [Magic]
#
# Magic damage (3x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Precision Pierce (902015) [Physical]
#
# Physical damage (7x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sub-Zero Sweep (902016) [Physical]
#
# Physical ice damage (5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ice Prison (902017) [Magic]
#
# Magic ice damage (3x, MAG) to one enemy
# Inflict Stop (100%) for 999 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Iceshorn Force (902018) [None]
#
# Reduce resistance to Ice by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Snowstorm Strike (902019) [Physical]
#
# Physical ice damage (1x, ATK) to all enemies
# Inflict Blind (100%) on all enemies
# Remove resistances to Blind from all enemies for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cold Silence (902020) [Magic]
#
# Magic ice damage (1x, MAG) to all enemies
# Inflict Silence (100%) on all enemies
# Remove resistances to Silence from all enemies for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You cannot escape the future... (902021) [None]
#
# Summon random ally
# Escape Battle
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if isFirstTurn():
useSkill(1, 'random') # Daunting Presence (902012): Increase DEF and SPR by 50% for 3 turns to caster, Increase ATK and MAG by 25% for 999 turns to caster (can not be removed)
endTurn()
return
if apple:
endTurn()
return
if not berry:
if not unit('1:ally:any').sufferedDamageLastTurn('physical', 'ice'):
olive = True # reset next turn
berry = True # reset next turn
wait()
return
if not unit('1:ally:any').sufferedDamageLastTurn('physical', 'nonelemental') \
or not unit('1:ally:any').sufferedDamageLastTurn('physical', 'fire') \
or not unit('1:ally:any').sufferedDamageLastTurn('physical', 'aero|quake|thunder|water|dark|light'):
berry = True # reset next turn
wait()
return
if not peach:
if not unit('1:ally:any').sufferedDamageLastTurn('magical', 'ice'):
olive = True # reset next turn
peach = True # reset next turn
wait()
return
if not unit('1:ally:any').sufferedDamageLastTurn('magical', 'nonelemental') \
or not unit('1:ally:any').sufferedDamageLastTurn('magical', 'fire') \
or not unit('1:ally:any').sufferedDamageLastTurn('magical', 'aero|quake|thunder|water|dark|light'):
peach = True # reset next turn
wait()
return
if not olive and not melon:
white = 0
melon = True # reset next turn
wait()
return
if not grape and olive:
if white == 0 or white == 1:
white += 1
grape = True # reset next turn
wait()
return
if white == 2:
white += 1
grape = True # reset next turn
useSkill(10, 'random') # You cannot escape the future... (902021): Summon random ally, Escape Battle
return
if not mango and berry:
mango = True # reset next turn
useSkill(8, 'random') # Snowstorm Strike (902019): Physical ice damage (1x, ATK) to all enemies, Inflict Blind (100%) on all enemies, Remove resistances to Blind from all enemies for 2 turns
return
if not lemon and peach:
lemon = True # reset next turn
useSkill(9, 'random') # Cold Silence (902020): Magic ice damage (1x, MAG) to all enemies, Inflict Silence (100%) on all enemies, Remove resistances to Silence from all enemies for 2 turns
return
if green == 0:
if not var_61:
var_61 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902013): Physical ice damage (5x, ATK) to one enemy
return
if not var_62:
var_62 = True # reset next turn
useSkill(2, 'random') # Cold Edge (902013): Physical ice damage (5x, ATK) to one enemy
return
if not var_63:
var_63 = True # reset next turn
useSkill(3, 'random') # Commanding Force (902014): Magic damage (3x, MAG) to all enemies
return
if not var_64:
var_64 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(7, 'random') # Iceshorn Force (902018): Reduce resistance to Ice by 200% for 3 turns to all enemies
return
if green == 1:
if not var_61:
var_61 = True # reset next turn
useSkill(3, 'random') # Commanding Force (902014): Magic damage (3x, MAG) to all enemies
return
if not var_62:
var_62 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(5, 'random') # Sub-Zero Sweep (902016): Physical ice damage (5x, ATK) to all enemies
return
if green == 2:
if not var_61:
var_61 = True # reset next turn
useSkill(6, 'random') # Ice Prison (902017): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if not var_62:
var_62 = True # reset next turn
green += 1
apple = True # reset next turn
useSkill(6, 'random') # Ice Prison (902017): Magic ice damage (3x, MAG) to one enemy, Inflict Stop (100%) for 999 turns on one enemy
return
if green == 3:
if not var_61:
var_61 = True # reset next turn
useSkill(3, 'random') # Commanding Force (902014): Magic damage (3x, MAG) to all enemies
return
if not var_62:
var_62 = True # reset next turn
green = 0
apple = True # reset next turn
useSkill(4, 'random') # Precision Pierce (902015): Physical damage (7x, ATK) to one enemy
return
else:
attack('random')
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment