Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active July 22, 2022 13:46
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/a8760a8e4271e441bdff53d558ef5937 to your computer and use it in GitHub Desktop.
Save aEnigmatic/a8760a8e4271e441bdff53d558ef5937 to your computer and use it in GitHub Desktop.
The Empress's Resolution
##
# Mission 'The Empress's Resolution - PRO' (9630601)
# Enemy has first strike!
# BattleScript: 963060101
#
# Battles
# * Vestige of Morgana
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (916595) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 50% - Resurging Will (916590) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (916594) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Cleansing Will (916591) [Player]
#
# Remove all debuffs from all allies
#
##
# 115% - Menacing Despair (916593) [Enemy]
#
# Reduce ATK, DEF, MAG and SPR by 90% for one turn to all enemies
#
##
# 170% - Resounding Will (916592) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Vestige of Morgana (900011208)
# Race Human, Fairy
# Level 99
# Actions 25-25
#
#
# Stats
# HP 1100000000
# MP 100000
# ATK 3000
# DEF 90000
# MAG 3000
# SPR 90000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -20%
# Ice 85%
# Lightning 85%
# Water 85%
# Wind 85%
# Earth 85%
# Light -20%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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 +
# Unknown (7) +
#
###
###
# Passives
###
#
# Morale CoV 70/100 (920037) [Passive]
#
# Increase DEF and SPR by 100% and ATK and MAG by 70%
#
##
###
# Skills
###
#
# True Omniscience III (901530) [Physical]
#
# Reduce SPR by 90% for 3 turns to all enemies
# Reduce resistance to all elements by 100% for 3 turns to all enemies
# Increase morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Might of the Virtuous (900975) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has gained resolve. (901532) [None]
#
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will wipe you from existence! (901533) [None]
#
# Hybrid* damage (125x, ATK & MAG) to all enemies
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Indomitable Will (901534) [None]
#
# Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
# Increase MAG by 50% for 2 turns to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lunar Eclipse (901535) [Magic]
#
# Increase MAG by 50% for 2 turns to caster
# Magic dark damage (8x, MAG) to all enemies
# Inflict Blind (100%) on all enemies
# Inflict Stop (50%) for 3 turns on all enemies
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shadow Wail (901536) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You dare stand against me?! (901537) [None]
#
# Reduce MAG and SPR by 60% for 5 turns to caster
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Cutter (901538) [Physical]
#
# Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 300 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Such pathetic defenses! (901539) [None]
#
# Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana seems to be losing resolve. (901540) [None]
#
# Reduce morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Obliviating Curse (900985) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy
# Inflict 2 random status effects (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ghastly Nightmare (900986) [Magic]
#
# 50% HP damage to all enemies
# Inflict Sleep (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Absolution (900987) [None]
#
# Fixed damage (10000) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Virtuous Sacrifice (900994) [Hybrid]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has been weakened significantly. (900995) [None]
#
# Fixed damage (20000000) to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Enervation (900315) [None]
#
# Magic* dark damage (6x, MAG) to all enemies
# Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (901541) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Reduce resistance to Ice by 50% for 3 turns to all enemies
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Void Blast (901542) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Reduce resistance to Dark by 75% for 3 turns to one enemy
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glistening Ice (900316) [Magic]
#
# Magic light damage (4x, MAG) to one enemy
# Inflict Blind (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Winds (901543) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
# Restore 50000 HP to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
useSkill(1, 'random') # True Omniscience III (901530): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 100% for 3 turns to all enemies, Increase morale by 1000 for this team
manta = Timer.create() # timer
elif once():
endTurn()
elif once():
useSkill(2, 'random') # Might of the Virtuous (900975): Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
elif (manta == 6 and once()) or (manta == 11 and once()) or (manta == 16 and once()) or (manta == 21 and once()):
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
elif self.HP < 0.7:
if random() <= 0.10 and once():
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.5:
if (random() <= 0.20 and once()) or (random() <= 0.20 and once()):
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif random() <= 0.10 and once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.3:
if once() or once():
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(14, 'random') # Absolution (900987): Fixed damage (10000) to all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif manta == 36 and once():
useSkill(15, 'random') # Virtuous Sacrifice (900994): No effect
var_89 = True # unknown flag type (89)
elif manta >= 36 and var_89 == False:
useSkill(16, 'random') # The vestige of Morgana has been weakened significantly. (900995): Fixed damage (20000000) to caster
var_89 = True # unknown flag type (89)
elif self.hasDebuff('any') and var_61 == False:
wait() # No action
var_61 = True # reset next turn
elif var_62 == False and self.sufferedDamageLastTurn('physical', 'ice|thunder|water|quake'):
wait() # No action
var_62 = True # reset next turn
elif var_62 == True:
if var_61 == True and var_63 == False and honey == False:
wait() # No action
var_63 = True # reset next turn
honey = True # persistent
elif var_64 == False and ramen == False:
wait() # No action
var_64 = True # reset next turn
ramen = True # persistent
else:
# jump to next outer condition
elif var_65 == False and sushi == False and self.sufferedDamageLastTurn('magical', 'ice|thunder|water|quake'):
wait() # No action
var_65 = True # reset next turn
sushi = True # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and var_66 == False and bacon == False:
wait() # No action
var_66 = True # unknown flag type (66)
bacon = True # persistent
elif unit('5:enemy:any').usedLastTurn('guard') and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif var_68 == False:
if self.hitByLastTurn('ability'):
wait() # No action
cnt_5 += 1
var_68 = True # unknown flag type (68)
else:
wait() # No action
cnt_5 = 0
var_68 = True # unknown flag type (68)
elif apple == False and honey == True and once():
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale = Timer.create() # timer
apple = True # reset next turn
elif berry == False and ramen == True and once():
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid = Timer.create() # timer
berry = True # reset next turn
elif sushi == True:
if peach == False and once():
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark = Timer.create() # timer
peach = True # reset next turn
elif olive == False and once():
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
olive = True # reset next turn
else:
# jump to next outer condition
elif mango == False and bacon == True and once():
useSkill(8, 'random') # You dare stand against me?! (901537): Reduce MAG and SPR by 60% for 5 turns to caster, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 500 for this team
guppy = Timer.create() # timer
mango = True # reset next turn
elif whale <= 1 and honey == True and apple == False:
wait() # No action
whale = Timer.create() # timer
apple = True # reset next turn
elif ramen == True and berry == False and squid <= 1:
wait() # No action
squid = Timer.create() # timer
berry = True # reset next turn
elif shark <= 1 and sushi == True and peach == False:
wait() # No action
shark = Timer.create() # timer
peach = True # reset next turn
elif guppy <= 1 and bacon == True and olive == False:
wait() # No action
guppy = Timer.create() # timer
olive = True # reset next turn
elif whale == 5 and apple == False and honey == True:
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale.reset() # timer
apple = True # reset next turn
elif squid == 5 and berry == False and ramen == True:
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid.reset() # timer
berry = True # reset next turn
elif sushi == True and shark == 5:
if peach == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
peach = True # reset next turn
elif olive == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark.reset() # timer
olive = True # reset next turn
else:
# jump to next outer condition
elif bacon == True and guppy == 5:
if mango == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
mango = True # reset next turn
elif lemon == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
guppy.reset() # timer
lemon = True # reset next turn
else:
# jump to next outer condition
elif var_67 == True and grape == False:
useSkill(10, 'random') # Such pathetic defenses! (901539): Reduce physical damage taken by 20% to caster for 999 turns (can not be removed), Increase morale by 500 for this team
grape = True # reset next turn
elif var_68 == True and melon == False and cnt_5 == 5:
useSkill(1, 'random') # True Omniscience III (901530): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 100% for 3 turns to all enemies, Increase morale by 1000 for this team
cnt_5 = 0
melon = True # reset next turn
elif self.HP < 0.3:
if var_69 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif var_71 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_71 = True # unknown flag type (71)
elif random() <= 0.30 and var_72 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_72 = True # unknown flag type (72)
elif random() <= 0.30 and var_73 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_73 = True # unknown flag type (73)
elif random() <= 0.30 and var_74 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_74 = True # unknown flag type (74)
elif random() <= 0.50 and var_75 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_75 = True # unknown flag type (75)
else:
attack('random')
elif self.HP < 0.5:
if var_69 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
cnt_1 = 0
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif random() <= 0.30 and var_71 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_71 = True # unknown flag type (71)
elif random() <= 0.30 and var_72 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_72 = True # unknown flag type (72)
elif random() <= 0.30 and var_73 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_73 = True # unknown flag type (73)
else:
attack('random')
elif self.HP < 0.7:
if var_69 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_69 = True # unknown flag type (69)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif random() <= 0.30 and var_71 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_71 = True # unknown flag type (71)
else:
attack('random')
elif self.HP > 0.7:
if guava == False:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
guava = True # reset next turn
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
guava = True # reset next turn
elif gourd == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
gourd = True # reset next turn
elif random() <= 0.30 and var_69 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_69 = True # unknown flag type (69)
else:
attack('random')
else:
endTurn()
##
# Mission 'The Empress's Resolution - ELT' (9630602)
# Enemy has first strike!
# BattleScript: 963060201
#
# Battles
# * Vestige of Morgana
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (916595) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 50% - Resurging Will (916590) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (916594) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Cleansing Will (916591) [Player]
#
# Remove all debuffs from all allies
#
##
# 115% - Menacing Despair (916593) [Enemy]
#
# Reduce ATK, DEF, MAG and SPR by 90% for one turn to all enemies
#
##
# 170% - Resounding Will (916592) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Vestige of Morgana (900011209, 900011208)
# Race Human, Fairy
# Level 99
# Actions 25-25
#
#
# Stats
# HP 2475000000
# MP 100000
# ATK 5400
# DEF 184500
# MAG 5400
# SPR 184500
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -20%
# Ice 85%
# Lightning 85%
# Water 85%
# Wind 85%
# Earth 85%
# Light -20%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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 +
# Unknown (7) +
#
###
###
# Passives
###
#
# Morale CoV 70/100 (920037) [Passive]
#
# Increase DEF and SPR by 100% and ATK and MAG by 70%
#
##
###
# Skills
###
#
# True Omniscience III (901530) [Physical]
#
# Reduce SPR by 90% for 3 turns to all enemies
# Reduce resistance to all elements by 100% for 3 turns to all enemies
# Increase morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Might of the Virtuous (900975) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has gained resolve. (901532) [None]
#
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will wipe you from existence! (901533) [None]
#
# Hybrid* damage (125x, ATK & MAG) to all enemies
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Indomitable Will (901534) [None]
#
# Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
# Increase MAG by 50% for 2 turns to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lunar Eclipse (901535) [Magic]
#
# Increase MAG by 50% for 2 turns to caster
# Magic dark damage (8x, MAG) to all enemies
# Inflict Blind (100%) on all enemies
# Inflict Stop (50%) for 3 turns on all enemies
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shadow Wail (901536) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You dare stand against me?! (901537) [None]
#
# Reduce MAG and SPR by 60% for 5 turns to caster
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Cutter (901538) [Physical]
#
# Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 300 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Such pathetic defenses! (901539) [None]
#
# Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana seems to be losing resolve. (901540) [None]
#
# Reduce morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Obliviating Curse (900985) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy
# Inflict 2 random status effects (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ghastly Nightmare (900986) [Magic]
#
# 50% HP damage to all enemies
# Inflict Sleep (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Absolution (900987) [None]
#
# Fixed damage (10000) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Virtuous Sacrifice (900994) [Hybrid]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has been weakened significantly. (900995) [None]
#
# Fixed damage (20000000) to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Enervation (900315) [None]
#
# Magic* dark damage (6x, MAG) to all enemies
# Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (901541) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Reduce resistance to Ice by 50% for 3 turns to all enemies
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Void Blast (901542) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Reduce resistance to Dark by 75% for 3 turns to one enemy
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glistening Ice (900316) [Magic]
#
# Magic light damage (4x, MAG) to one enemy
# Inflict Blind (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Winds (901543) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
# Restore 50000 HP to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
useSkill(1, 'random') # True Omniscience III (901530): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 100% for 3 turns to all enemies, Increase morale by 1000 for this team
manta = Timer.create() # timer
elif once():
endTurn()
elif once():
useSkill(2, 'random') # Might of the Virtuous (900975): Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
elif (manta == 6 and once()) or (manta == 11 and once()) or (manta == 16 and once()) or (manta == 21 and once()):
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
elif self.HP < 0.7:
if random() <= 0.10 and once():
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.5:
if (random() <= 0.20 and once()) or (random() <= 0.20 and once()):
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif random() <= 0.10 and once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.3:
if once() or once():
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(14, 'random') # Absolution (900987): Fixed damage (10000) to all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif manta == 36 and once():
useSkill(15, 'random') # Virtuous Sacrifice (900994): No effect
var_89 = True # unknown flag type (89)
elif manta >= 36 and var_89 == False:
useSkill(16, 'random') # The vestige of Morgana has been weakened significantly. (900995): Fixed damage (20000000) to caster
var_89 = True # unknown flag type (89)
elif self.hasDebuff('any') and var_61 == False:
wait() # No action
var_61 = True # reset next turn
elif var_62 == False and self.sufferedDamageLastTurn('physical', 'ice|thunder|water|quake'):
wait() # No action
var_62 = True # reset next turn
elif var_62 == True:
if var_61 == True and var_63 == False and honey == False:
wait() # No action
var_63 = True # reset next turn
honey = True # persistent
elif var_64 == False and ramen == False:
wait() # No action
var_64 = True # reset next turn
ramen = True # persistent
else:
# jump to next outer condition
elif var_65 == False and sushi == False and self.sufferedDamageLastTurn('magical', 'ice|thunder|water|quake'):
wait() # No action
var_65 = True # reset next turn
sushi = True # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and var_66 == False and bacon == False:
wait() # No action
var_66 = True # unknown flag type (66)
bacon = True # persistent
elif unit('5:enemy:any').usedLastTurn('guard') and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif var_68 == False:
if self.hitByLastTurn('ability'):
wait() # No action
cnt_5 += 1
var_68 = True # unknown flag type (68)
else:
wait() # No action
cnt_5 = 0
var_68 = True # unknown flag type (68)
elif apple == False and honey == True and once():
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale = Timer.create() # timer
apple = True # reset next turn
elif berry == False and ramen == True and once():
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid = Timer.create() # timer
berry = True # reset next turn
elif sushi == True:
if peach == False and once():
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark = Timer.create() # timer
peach = True # reset next turn
elif olive == False and once():
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
olive = True # reset next turn
else:
# jump to next outer condition
elif mango == False and bacon == True and once():
useSkill(8, 'random') # You dare stand against me?! (901537): Reduce MAG and SPR by 60% for 5 turns to caster, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 500 for this team
guppy = Timer.create() # timer
mango = True # reset next turn
elif whale <= 1 and honey == True and apple == False:
wait() # No action
whale = Timer.create() # timer
apple = True # reset next turn
elif ramen == True and berry == False and squid <= 1:
wait() # No action
squid = Timer.create() # timer
berry = True # reset next turn
elif shark <= 1 and sushi == True and peach == False:
wait() # No action
shark = Timer.create() # timer
peach = True # reset next turn
elif guppy <= 1 and bacon == True and olive == False:
wait() # No action
guppy = Timer.create() # timer
olive = True # reset next turn
elif whale == 5 and apple == False and honey == True:
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale.reset() # timer
apple = True # reset next turn
elif squid == 5 and berry == False and ramen == True:
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid.reset() # timer
berry = True # reset next turn
elif sushi == True and shark == 5:
if peach == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
peach = True # reset next turn
elif olive == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark.reset() # timer
olive = True # reset next turn
else:
# jump to next outer condition
elif bacon == True and guppy == 5:
if mango == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
mango = True # reset next turn
elif lemon == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
guppy.reset() # timer
lemon = True # reset next turn
else:
# jump to next outer condition
elif var_67 == True and grape == False:
useSkill(10, 'random') # Such pathetic defenses! (901539): Reduce physical damage taken by 20% to caster for 999 turns (can not be removed), Increase morale by 500 for this team
grape = True # reset next turn
elif var_68 == True and melon == False and cnt_5 == 5:
useSkill(1, 'random') # True Omniscience III (901530): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 100% for 3 turns to all enemies, Increase morale by 1000 for this team
cnt_5 = 0
melon = True # reset next turn
elif self.HP < 0.3:
if var_69 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif var_71 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_71 = True # unknown flag type (71)
elif random() <= 0.30 and var_72 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_72 = True # unknown flag type (72)
elif random() <= 0.30 and var_73 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_73 = True # unknown flag type (73)
elif random() <= 0.30 and var_74 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_74 = True # unknown flag type (74)
elif random() <= 0.50 and var_75 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_75 = True # unknown flag type (75)
else:
attack('random')
elif self.HP < 0.5:
if var_69 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
cnt_1 = 0
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif random() <= 0.30 and var_71 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_71 = True # unknown flag type (71)
elif random() <= 0.30 and var_72 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_72 = True # unknown flag type (72)
elif random() <= 0.30 and var_73 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_73 = True # unknown flag type (73)
else:
attack('random')
elif self.HP < 0.7:
if var_69 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_69 = True # unknown flag type (69)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif random() <= 0.30 and var_71 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_71 = True # unknown flag type (71)
else:
attack('random')
elif self.HP > 0.7:
if guava == False:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
guava = True # reset next turn
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
guava = True # reset next turn
elif gourd == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
gourd = True # reset next turn
elif random() <= 0.30 and var_69 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_69 = True # unknown flag type (69)
else:
attack('random')
else:
endTurn()
##
# Mission 'The Empress's Resolution - LGD' (9630603)
# Enemy has first strike!
# BattleScript: 963060301
#
# Battles
# * Vestige of Morgana
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (916595) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 50% - Resurging Will (916590) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (916594) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Cleansing Will (916591) [Player]
#
# Remove all debuffs from all allies
#
##
# 115% - Menacing Despair (916593) [Enemy]
#
# Reduce ATK, DEF, MAG and SPR by 90% for one turn to all enemies
#
##
# 170% - Resounding Will (916592) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Vestige of Morgana (900011210)
# Race Human, Fairy
# Level 99
# Actions 25-25
#
#
# Stats
# HP 3375000000
# MP 100000
# ATK 13500
# DEF 310000
# MAG 13500
# SPR 310000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -20%
# Ice 85%
# Lightning 85%
# Water 85%
# Wind 85%
# Earth 85%
# Light -20%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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 +
# Unknown (7) +
#
###
###
# Passives
###
#
# Morale CoV 70/100 (920037) [Passive]
#
# Increase DEF and SPR by 100% and ATK and MAG by 70%
#
##
###
# Skills
###
#
# True Omniscience V (901531) [Physical]
#
# Reduce SPR by 90% for 3 turns to all enemies
# Reduce resistance to all elements by 150% for 3 turns to all enemies
# Increase morale by 2000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Might of the Virtuous (900975) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has gained resolve. (901532) [None]
#
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will wipe you from existence! (901533) [None]
#
# Hybrid* damage (125x, ATK & MAG) to all enemies
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Indomitable Will (901534) [None]
#
# Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
# Increase MAG by 50% for 2 turns to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lunar Eclipse (901535) [Magic]
#
# Increase MAG by 50% for 2 turns to caster
# Magic dark damage (8x, MAG) to all enemies
# Inflict Blind (100%) on all enemies
# Inflict Stop (50%) for 3 turns on all enemies
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shadow Wail (901536) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You dare stand against me?! (901537) [None]
#
# Reduce MAG and SPR by 60% for 5 turns to caster
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Cutter (901538) [Physical]
#
# Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Increase morale by 300 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Such pathetic defenses! (901539) [None]
#
# Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana seems to be losing resolve. (901540) [None]
#
# Reduce morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Obliviating Curse (900985) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy
# Inflict 2 random status effects (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ghastly Nightmare (900986) [Magic]
#
# 50% HP damage to all enemies
# Inflict Sleep (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Absolution (900987) [None]
#
# Fixed damage (10000) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Virtuous Sacrifice (900994) [Hybrid]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has been weakened significantly. (900995) [None]
#
# Fixed damage (20000000) to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Enervation (900315) [None]
#
# Magic* dark damage (6x, MAG) to all enemies
# Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (901541) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Reduce resistance to Ice by 50% for 3 turns to all enemies
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Void Blast (901542) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Reduce resistance to Dark by 75% for 3 turns to one enemy
# Increase morale by 150 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glistening Ice (900316) [Magic]
#
# Magic light damage (4x, MAG) to one enemy
# Inflict Blind (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Winds (901543) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
# Restore 50000 HP to caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana slightly increased its defenses. (901544) [Physical]
#
# Increase DEF and SPR by 50% for one turn to caster (can not be removed)
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana increased its defenses. (901545) [Physical]
#
# Increase DEF and SPR by 100% for one turn to caster (can not be removed)
# Increase morale by 750 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana greatly increased its defenses. (901546) [Physical]
#
# Increase DEF and SPR by 200% for one turn to caster (can not be removed)
# Increase morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana significantly increased its defenses. (901547) [Physical]
#
# Increase DEF and SPR by 300% for one turn to caster (can not be removed)
# Increase morale by 1500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Restoration of Might (901548) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Reduce resistance to Ice by 50% for 3 turns to all enemies
# Increase morale by 125 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Restoration of Faith (901549) [Physical]
#
# Remove all debuffs from caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Restoration (901550) [Physical]
#
# Remove all debuffs from caster
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana is preparing a fierce attack. (901000) [Physical]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hydrothermal Flux (900989) [Magic]
#
# Magic fire and water damage (10.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frigid Lightning (900990) [Magic]
#
# Magic ice and lightning damage (10.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Terra Storm (900991) [Magic]
#
# Magic wind and earth damage (10.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Prismatic Darkness (900992) [Magic]
#
# Magic light and dark damage (10.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Soul Sundering (901551) [Magic]
#
# Magic damage (0.1x, MAG) as MP drain (15%) to all enemies
# Increase morale by 500 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Moonlit Spike (901009) [Physical]
#
# Physical light and dark damage (6x, ATK) to one enemy
# Reduce DEF and SPR by 15% for 2 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cruel Retribution (901010) [Physical]
#
# Physical damage (7.5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Vicious Massacre (901011) [Physical]
#
# Physical damage (5.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Virtuous Light (901004) [Physical]
#
# Absorb Light damage to caster for 2 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana is preparing a fierce attack. (901000) [Physical]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Exposure (900988) [Magic]
#
# Reduce resistance to all elements by 75% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
useSkill(1, 'random') # True Omniscience V (901531): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 150% for 3 turns to all enemies, Increase morale by 2000 for this team
manta = Timer.create() # timer
elif once():
endTurn()
elif once():
useSkill(2, 'random') # Might of the Virtuous (900975): Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
elif manta == 6 and once():
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
steak = True # persistent
elif manta == 11 and once():
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
salad = True # persistent
steak = False # persistent
elif manta == 16 and once():
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
fries = True # persistent
salad = False # persistent
elif manta == 21 and once():
useSkill(3, 'random') # The vestige of Morgana has gained resolve. (901532): Increase morale by 1500 for this team
sugar = True # persistent
fries = False # persistent
elif var_88 == False:
if steak == True:
useSkill(22, 'random') # The vestige of Morgana slightly increased its defenses. (901544): Increase DEF and SPR by 50% for one turn to caster (can not be removed), Increase morale by 500 for this team
var_88 = True # unknown flag type (88)
elif salad == True:
useSkill(23, 'random') # The vestige of Morgana increased its defenses. (901545): Increase DEF and SPR by 100% for one turn to caster (can not be removed), Increase morale by 750 for this team
var_88 = True # unknown flag type (88)
elif fries == True:
useSkill(24, 'random') # The vestige of Morgana greatly increased its defenses. (901546): Increase DEF and SPR by 200% for one turn to caster (can not be removed), Increase morale by 1000 for this team
var_88 = True # unknown flag type (88)
elif sugar == True:
useSkill(25, 'random') # The vestige of Morgana significantly increased its defenses. (901547): Increase DEF and SPR by 300% for one turn to caster (can not be removed), Increase morale by 1500 for this team
var_88 = True # unknown flag type (88)
else:
# jump to next outer condition
elif self.HP < 0.7:
if random() <= 0.10 and once():
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.5:
if (random() <= 0.20 and once()) or (random() <= 0.20 and once()) or (random() <= 0.20 and once()):
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif random() <= 0.15 and once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif self.HP < 0.3:
if once():
useSkill(30, 'random') # Hydrothermal Flux (900989): Magic fire and water damage (10.5x, MAG) to all enemies
elif once():
useSkill(31, 'random') # Frigid Lightning (900990): Magic ice and lightning damage (10.5x, MAG) to all enemies
elif once():
useSkill(32, 'random') # Terra Storm (900991): Magic wind and earth damage (10.5x, MAG) to all enemies
elif once():
useSkill(33, 'random') # Prismatic Darkness (900992): Magic light and dark damage (10.5x, MAG) to all enemies
elif once():
useSkill(34, 'random') # Soul Sundering (901551): Magic damage (0.1x, MAG) as MP drain (15%) to all enemies, Increase morale by 500 for this team
elif (random() <= 0.35 and once()) or (random() <= 0.35 and once()) or (random() <= 0.35 and once()):
useSkill(12, 'random') # Obliviating Curse (900985): Magic fire, ice, lightning, water, wind, earth, light and dark damage (5.5x, MAG) to one enemy, Inflict 2 random status effects (100%) to one enemy
elif once():
useSkill(13, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
elif once():
useSkill(14, 'random') # Absolution (900987): Fixed damage (10000) to all enemies
elif once():
useSkill(11, 'random') # The vestige of Morgana seems to be losing resolve. (901540): Reduce morale by 1000 for this team
else:
# jump to next outer condition
elif manta == 36 and once():
useSkill(15, 'random') # Virtuous Sacrifice (900994): No effect
var_89 = True # unknown flag type (89)
elif manta >= 36 and var_89 == False:
useSkill(16, 'random') # The vestige of Morgana has been weakened significantly. (900995): Fixed damage (20000000) to caster
var_89 = True # unknown flag type (89)
elif self.hasDebuff('any') and var_61 == False:
wait() # No action
var_61 = True # reset next turn
elif var_62 == False and self.sufferedDamageLastTurn('physical', 'ice|thunder|water|quake'):
wait() # No action
var_62 = True # reset next turn
elif var_62 == True:
if var_61 == True and var_63 == False and honey == False:
wait() # No action
var_63 = True # reset next turn
honey = True # persistent
elif var_64 == False and ramen == False:
wait() # No action
var_64 = True # reset next turn
ramen = True # persistent
else:
# jump to next outer condition
elif var_65 == False and sushi == False and self.sufferedDamageLastTurn('magical', 'ice|thunder|water|quake'):
wait() # No action
var_65 = True # reset next turn
sushi = True # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and var_66 == False and bacon == False:
wait() # No action
var_66 = True # unknown flag type (66)
bacon = True # persistent
elif unit('5:enemy:any').usedLastTurn('guard') and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif var_68 == False:
if self.hitByLastTurn('ability'):
wait() # No action
cnt_5 += 1
var_68 = True # unknown flag type (68)
else:
wait() # No action
cnt_5 = 0
var_68 = True # unknown flag type (68)
elif var_87 == False and self.sufferedDamageLastTurn('physical|magical', 'light'):
wait() # No action
cnt_4 += 1
var_87 = True # unknown flag type (87)
elif var_87 == True and cnt_4 == 3:
useSkill(38, 'random') # Virtuous Light (901004): Absorb Light damage to caster for 2 turns
cnt_4 = 0
elif var_87 == False:
wait() # No action
cnt_4 = 0
var_87 = True # unknown flag type (87)
elif var_86 == False and self.hasDebuff('ATK') or self.hasDebuff('MAG'):
wait() # No action
var_86 = True # unknown flag type (86)
elif var_85 == False and self.hasDebuff('DEF') or self.hasDebuff('SPR'):
wait() # No action
var_85 = True # unknown flag type (85)
elif self.hasDebuff('any') and var_84 == False:
wait() # No action
var_84 = True # unknown flag type (84)
elif pizza == True and var_80 == False and var_79 == False:
useSkill(29, 'random') # The vestige of Morgana is preparing a fierce attack. (901000): No effect
var_79 = True # unknown flag type (79)
elif var_86 == True:
if var_83 == False:
useSkill(26, 'random') # Restoration of Might (901548): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 125 for this team
var_83 = True # unknown flag type (83)
elif var_80 == False:
useSkill(39, 'random') # The vestige of Morgana is preparing a fierce attack. (901000): No effect
var_80 = True # unknown flag type (80)
pizza = True # persistent
else:
# jump to next outer condition
elif var_85 == True:
if var_82 == False:
useSkill(27, 'random') # Restoration of Faith (901549): Remove all debuffs from caster, Increase morale by 500 for this team
var_82 = True # unknown flag type (82)
elif var_80 == False:
useSkill(39, 'random') # The vestige of Morgana is preparing a fierce attack. (901000): No effect
var_80 = True # unknown flag type (80)
pizza = True # persistent
else:
# jump to next outer condition
elif var_84 == True:
if var_81 == False:
useSkill(28, 'random') # Elemental Restoration (901550): Remove all debuffs from caster, Increase morale by 500 for this team
var_81 = True # unknown flag type (81)
elif var_80 == False:
useSkill(39, 'random') # The vestige of Morgana is preparing a fierce attack. (901000): No effect
var_80 = True # unknown flag type (80)
pizza = True # persistent
else:
# jump to next outer condition
elif apple == False and honey == True and once():
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale = Timer.create() # timer
apple = True # reset next turn
elif berry == False and ramen == True and once():
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid = Timer.create() # timer
berry = True # reset next turn
elif sushi == True:
if peach == False and once():
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark = Timer.create() # timer
peach = True # reset next turn
elif (olive == False and once()) or (mango == False and once()):
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
olive = True # reset next turn
else:
# jump to next outer condition
elif lemon == False and bacon == True and once():
useSkill(8, 'random') # You dare stand against me?! (901537): Reduce MAG and SPR by 60% for 5 turns to caster, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 500 for this team
guppy = Timer.create() # timer
mango = True # reset next turn
elif whale <= 1 and honey == True and apple == False:
wait() # No action
whale = Timer.create() # timer
apple = True # reset next turn
elif ramen == True and berry == False and squid <= 1:
wait() # No action
squid = Timer.create() # timer
berry = True # reset next turn
elif shark <= 1 and sushi == True and peach == False:
wait() # No action
shark = Timer.create() # timer
peach = True # reset next turn
elif guppy <= 1 and bacon == True and olive == False:
wait() # No action
guppy = Timer.create() # timer
olive = True # reset next turn
elif whale == 5 and apple == False and honey == True:
useSkill(4, 'random') # I will wipe you from existence! (901533): Hybrid* damage (125x, ATK & MAG) to all enemies, Increase morale by 1500 for this team
whale.reset() # timer
apple = True # reset next turn
elif squid == 5 and berry == False and ramen == True:
useSkill(5, 'random') # Indomitable Will (901534): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster, Increase morale by 500 for this team
squid.reset() # timer
berry = True # reset next turn
elif sushi == True and shark == 5:
if peach == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
peach = True # reset next turn
elif olive == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
olive = True # reset next turn
elif mango == False:
useSkill(7, 'random') # Shadow Wail (901536): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
shark.reset() # timer
mango = True # reset next turn
else:
# jump to next outer condition
elif guppy == 5 and bacon == True:
if lemon == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
lemon = True # reset next turn
elif grape == False:
useSkill(9, 'random') # Spectral Cutter (901538): Cast Death (50%) or deal physical damage (10x * 1 = 10x, ATK) to one enemy, Increase ATK and DEF by 100% for 3 turns to caster (can not be removed), Increase morale by 300 for this team
guppy.reset() # timer
grape = True # reset next turn
else:
# jump to next outer condition
elif var_67 == True and melon == False:
useSkill(10, 'random') # Such pathetic defenses! (901539): Reduce physical damage taken by 20% to caster for 999 turns (can not be removed), Increase morale by 500 for this team
melon = True # reset next turn
elif var_68 == True and guava == False and cnt_5 == 5:
useSkill(1, 'random') # True Omniscience V (901531): Reduce SPR by 90% for 3 turns to all enemies, Reduce resistance to all elements by 150% for 3 turns to all enemies, Increase morale by 2000 for this team
cnt_5 = 0
guava = True # reset next turn
elif pasta == True and var_74 == False:
if var_69 == False:
useSkill(30, 'random') # Hydrothermal Flux (900989): Magic fire and water damage (10.5x, MAG) to all enemies
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(31, 'random') # Frigid Lightning (900990): Magic ice and lightning damage (10.5x, MAG) to all enemies
var_70 = True # unknown flag type (70)
elif var_71 == False:
useSkill(32, 'random') # Terra Storm (900991): Magic wind and earth damage (10.5x, MAG) to all enemies
var_71 = True # unknown flag type (71)
elif var_72 == False:
useSkill(33, 'random') # Prismatic Darkness (900992): Magic light and dark damage (10.5x, MAG) to all enemies
var_72 = True # unknown flag type (72)
elif var_73 == False:
useSkill(34, 'random') # Soul Sundering (901551): Magic damage (0.1x, MAG) as MP drain (15%) to all enemies, Increase morale by 500 for this team
var_73 = True # unknown flag type (73)
else:
# jump to next outer condition
elif self.HP < 0.3:
if random() <= 0.15 and var_74 == False:
useSkill(40, 'random') # Elemental Exposure (900988): Reduce resistance to all elements by 75% for 3 turns to all enemies
var_74 = True # unknown flag type (74)
pasta = True # persistent
elif var_75 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_2 = 0
var_75 = True # unknown flag type (75)
elif cnt_2 == 0:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_2 += 1
elif cnt_3 <= 3:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_3 += 1
elif random() <= 0.30 and var_76 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_76 = True # unknown flag type (76)
elif random() <= 0.30 and var_77 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_77 = True # unknown flag type (77)
elif random() <= 0.30 and var_78 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_78 = True # unknown flag type (78)
elif random() <= 0.50 and var_79 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_79 = True # unknown flag type (79)
elif cnt_2 == 1 or cnt_2 == 2:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
cnt_2 += 1
elif cnt_2 == 3 or cnt_2 == 4:
useSkill(36, 'random') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
cnt_2 += 1
elif cnt_2 == 5 or cnt_2 == 6 or cnt_2 == 7:
useSkill(37, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
cnt_2 += 1
else:
attack('random')
elif self.HP < 0.5:
if var_69 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
cnt_1 = 0
var_69 = True # unknown flag type (69)
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif var_71 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_71 = True # unknown flag type (71)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif random() <= 0.30 and var_71 == False:
useSkill(21, 'random') # Storm Winds (901543): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster, Increase morale by 500 for this team
var_71 = True # unknown flag type (71)
elif random() <= 0.30 and var_72 == False:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
var_72 = True # unknown flag type (72)
elif random() <= 0.30 and var_73 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_73 = True # unknown flag type (73)
elif cnt_2 == 0 or cnt_2 == 1:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
cnt_2 += 1
elif cnt_2 == 3 or cnt_2 == 4:
useSkill(36, 'random') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
cnt_2 += 1
elif cnt_2 == 5 or cnt_2 == 6:
useSkill(37, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
cnt_2 += 1
else:
attack('random')
elif self.HP < 0.7:
if var_69 == False:
useSkill(17, 'random') # Elemental Enervation (900315): Magic* dark damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
var_69 = True # unknown flag type (69)
elif cnt_1 <= 2:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
cnt_1 += 1
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
cnt_1 += 1
elif var_70 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_70 = True # unknown flag type (70)
elif random() <= 0.30 and var_71 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_71 = True # unknown flag type (71)
elif var_72 == False:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
var_72 = True # unknown flag type (72)
elif random() <= 0.50 and var_73 == False:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
var_73 = True # unknown flag type (73)
elif var_74 == False:
useSkill(37, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
var_74 = True # unknown flag type (74)
else:
attack('random')
elif self.HP > 0.7:
if gourd == False:
if random() <= 0.50:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
gourd = True # reset next turn
else:
useSkill(19, 'random') # Void Blast (901542): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy, Increase morale by 150 for this team
gourd = True # reset next turn
elif var_69 == False:
useSkill(18, 'random') # Glacial Needles (901541): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies, Increase morale by 150 for this team
var_69 = True # unknown flag type (69)
elif random() <= 0.30 and var_70 == False:
useSkill(20, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
var_70 = True # unknown flag type (70)
elif var_71 == False:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
var_71 = True # unknown flag type (71)
elif random() <= 0.35 and var_72 == False:
useSkill(35, 'random') # Moonlit Spike (901009): Physical light and dark damage (6x, ATK) to one enemy, Reduce DEF and SPR by 15% for 2 turns to one enemy
var_72 = True # unknown flag type (72)
else:
attack('random')
else:
endTurn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment