Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active July 8, 2021 10:52
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/a6da3e0f25aeaa5ef64402b0a680cc19 to your computer and use it in GitHub Desktop.
Save aEnigmatic/a6da3e0f25aeaa5ef64402b0a680cc19 to your computer and use it in GitHub Desktop.
The Empress from Beyond
##
# Mission 'The Empress from Beyond' (71000105)
# Enemy has first strike!
#
# Battles
# * Vestige of Morgana
##
##
# Monster Info
##
#
# Monster Vestige of Morgana (900011028)
# Race Human, Fairy
# Level 89
# Actions 30-30
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 815124072
# MP 100000
# ATK 1598.4
# DEF 20982
# MAG 1598.4
# SPR 20982
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 30%
# Ice 30%
# Lightning 30%
# Water 30%
# Wind 30%
# Earth 30%
# Light 30%
# Dark 30%
# Non-Elemental 70%
#
#
# Status resist (+80% / 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
###
#
# 全ステ70% (910006) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 70%
#
##
###
# Skills
###
#
# True Omniscience V (901026) [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 500% for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana is preparing a devastating attack. (900974) [Physical]
#
# No effect
#
# 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 slightly increased its defenses. (900976) [Physical]
#
# Increase DEF and SPR by 50% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana increased its defenses. (900977) [Physical]
#
# Increase DEF and SPR by 100% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana greatly increased its defenses. (900978) [Physical]
#
# Increase DEF and SPR by 200% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana significantly increased its defenses. (900979) [Physical]
#
# Increase DEF and SPR by 300% for one turn to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I may have underestimated you again... (900980) [Physical]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# But this will truly be your end! (900981) [Physical]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# True Omniscience (900982) [Physical]
#
# Reduce SPR by 75% for 7 turns to all enemies
# Reduce resistance to all elements by 75% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Might of the Virtuous (900983) [Magic]
#
# Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Time Severance (900984) [Magic]
#
# Magic light damage (7.5x, MAG) to all enemies
# Inflict Stop (50%) for 3 turns on all enemies
#
# 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 -
#
##
#
# Elemental Exposure (900988) [Magic]
#
# Reduce resistance to all elements by 75% for 3 turns to all enemies
#
# 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 (900993) [Magic]
#
# Magic damage (0.1x, MAG) as MP drain (15%) 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 (40000000) to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (900996) [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 -
#
##
#
# Shadow Wail (900312) [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 -
#
##
#
# Void Blast (900313) [Magic]
#
# Magic dark damage (4x, MAG) to one enemy
# Reduce resistance to Dark by 75% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Winds (900314) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
# Restore 50000 HP 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 -
#
##
#
# Glistening Ice (900316) [Magic]
#
# Magic light damage (4x, MAG) to one enemy
# Inflict Blind (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Cutter (900317) [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)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Restoration of Might (900997) [Physical]
#
# Remove all debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Restoration of Faith (900998) [Physical]
#
# Remove all debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Restoration (900999) [Physical]
#
# Remove all debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana is preparing a fierce attack. (901000) [Physical]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Empress's Conviction (901001) [Magic]
#
# Magic damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Battle Fusion (900318) [None]
#
# Remove all buffs and debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dualistic Affinity (900319) [None]
#
# Remove all buffs and debuffs from caster
# Increase resistance to Light by 120% for 2 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lunar Eclipse (901002) [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
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Indomitable Will (901003) [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
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Virtuous Light (901004) [Physical]
#
# Unknown active effect type '1017': [0,0,0,0,0,0,1,0,2,1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# True Omniscience V (901026) [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 500% for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Such pathetic defenses! (900323) [None]
#
# Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You dare stand against me?! (900324) [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)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will wipe you from existence! (901006) [None]
#
# Hybrid* damage (15x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana seems to be losing resolve. (901007) [Physical]
#
# Reduce morale by 250% for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The vestige of Morgana has gained resolve. (901008) [Physical]
#
# Increase morale by 750% 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 -
#
##
###
# AI
###
if once():
wait('non') # No action
elif random() <= 0.00 and manta >= 36 and once():
useSkill(22, 'random') # Virtuous Sacrifice (900994): No effect
elif random() <= 0.00 and manta >= 36 and var_89 == False:
useSkill(23, 'random') # The vestige of Morgana has been weakened significantly. (900995): Fixed damage (40000000) to caster
var_89 = True # unknown flag type (89)
elif var_85 == False:
wait() # No action
var_85 = True # unknown flag type (85)
green = 0
elif gourd == True and once():
endTurn()
manta = Timer.create() # timer
elif once():
useSkill(1, 'random') # True Omniscience V (901026): 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 500% for this team
gourd = True # reset next turn
elif once():
useSkill(3, 'random') # Might of the Virtuous (900975): Magic fire, ice, lightning, water, wind, earth, light and dark damage (25x, MAG) to all enemies
elif self.HP < 0.7 and once():
wait() # No action
sugar = True # persistent
elif self.HP < 0.5 and once():
wait() # No action
pizza = True # persistent
sugar = False # persistent
elif self.HP < 0.3 and once():
wait() # No action
pasta = True # persistent
pizza = False # persistent
sugar = False # persistent
elif self.hasDebuff('ATK') and var_89 == False and var_61 == False:
wait() # No action
var_61 = True # reset next turn
elif self.hasDebuff('MAG') and var_89 == False and var_61 == False:
wait() # No action
var_61 = True # reset next turn
elif self.hasDebuff('DEF') and var_89 == False and var_62 == False:
wait() # No action
var_62 = True # reset next turn
elif self.hasDebuff('SPR') and var_89 == False and var_62 == False:
wait() # No action
var_62 = True # reset next turn
elif self.hasDebuff('any') and var_89 == False and var_69 == False:
wait() # No action
var_69 = True # unknown flag type (69)
elif self.sufferedDamageLastTurn('physical', 'light') and var_89 == False and var_70 == False:
wait() # No action
var_70 = True # unknown flag type (70)
mauve += 1
elif self.sufferedDamageLastTurn('magical', 'light') and var_89 == False and var_70 == False:
wait() # No action
var_70 = True # unknown flag type (70)
mauve += 1
elif self.hitByLastTurn('ability') and var_89 == False and var_63 == False:
wait() # No action
var_63 = True # reset next turn
azure += 1
elif unit('5:enemy:any').usedLastTurn('guard') and var_89 == False and var_64 == False:
wait() # No action
var_64 = True # reset next turn
elif unit('5:enemy:any').usedLastTurn('limitburst') and var_89 == False and var_65 == False:
wait() # No action
var_65 = True # reset next turn
elif self.sufferedDamageLastTurn('physical', 'ice') and var_89 == False and var_66 == False:
wait() # No action
var_66 = True # unknown flag type (66)
elif self.sufferedDamageLastTurn('physical', 'thunder') and var_89 == False and var_66 == False:
wait() # No action
var_66 = True # unknown flag type (66)
elif self.sufferedDamageLastTurn('physical', 'water') and var_89 == False and var_66 == False:
wait() # No action
var_66 = True # unknown flag type (66)
elif self.sufferedDamageLastTurn('physical', 'quake') and var_89 == False and var_66 == False:
wait() # No action
var_66 = True # unknown flag type (66)
elif self.sufferedDamageLastTurn('magical', 'ice') and var_89 == False and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif self.sufferedDamageLastTurn('magical', 'thunder') and var_89 == False and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif self.sufferedDamageLastTurn('magical', 'water') and var_89 == False and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif self.sufferedDamageLastTurn('magical', 'quake') and var_89 == False and var_67 == False:
wait() # No action
var_67 = True # unknown flag type (67)
elif var_89 == False and var_70 == False:
wait() # No action
var_70 = True # unknown flag type (70)
mauve = 0
elif var_66 == True and var_67 == False and var_69 == True and var_77 == False:
wait() # No action
var_77 = True # unknown flag type (77)
elif random() <= 0.10 and sugar == True and green == 0:
useSkill(13, '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
green += 1
elif sugar == True and green == 0:
wait() # No action
green += 1
elif random() <= 0.10 and sugar == True and green == 1:
useSkill(13, '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
green += 1
elif sugar == True and green == 1:
wait() # No action
green += 1
elif random() <= 0.20 and pizza == True and green == 0:
useSkill(13, '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
green += 1
elif pizza == True and green == 0:
wait() # No action
green += 1
elif random() <= 0.20 and pizza == True and green == 1:
useSkill(13, '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
green += 1
elif pizza == True and green == 1:
wait() # No action
green += 1
elif random() <= 0.20 and pizza == True and green == 2:
useSkill(13, '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
green += 1
elif pizza == True and green == 2:
wait() # No action
green += 1
elif random() <= 0.15 and pizza == True and green == 3:
useSkill(14, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
green += 1
elif pizza == True and green == 3:
wait() # No action
green += 1
elif pasta == True and once():
useSkill(17, 'random') # Hydrothermal Flux (900989): Magic fire and water damage (10.5x, MAG) to all enemies
elif pasta == True and once():
useSkill(18, 'random') # Frigid Lightning (900990): Magic ice and lightning damage (10.5x, MAG) to all enemies
elif pasta == True and once():
useSkill(19, 'random') # Terra Storm (900991): Magic wind and earth damage (10.5x, MAG) to all enemies
elif pasta == True and once():
useSkill(20, 'random') # Prismatic Darkness (900992): Magic light and dark damage (10.5x, MAG) to all enemies
elif pasta == True and once():
useSkill(21, 'random') # Soul Sundering (900993): Magic damage (0.1x, MAG) as MP drain (15%) to all enemies
horse = True # persistent
green += 1
elif pasta == True and unk_6 == True and green == 0 and var_79 == False:
useSkill(17, 'random') # Hydrothermal Flux (900989): Magic fire and water damage (10.5x, MAG) to all enemies
green += 1
elif pasta == True and unk_6 == True and green == 1 and var_79 == False:
useSkill(18, 'random') # Frigid Lightning (900990): Magic ice and lightning damage (10.5x, MAG) to all enemies
green += 1
elif pasta == True and unk_6 == True and green == 2 and var_79 == False:
useSkill(19, 'random') # Terra Storm (900991): Magic wind and earth damage (10.5x, MAG) to all enemies
green += 1
elif pasta == True and unk_6 == True and green == 3 and var_79 == False:
useSkill(20, 'random') # Prismatic Darkness (900992): Magic light and dark damage (10.5x, MAG) to all enemies
green += 1
elif pasta == True and unk_6 == True and green == 4 and var_79 == False:
useSkill(21, 'random') # Soul Sundering (900993): Magic damage (0.1x, MAG) as MP drain (15%) to all enemies
unk_6 = False # unknown flag type (36)
green += 1
elif random() <= 0.10 and pasta == True and horse == True and unk_6 == False and var_79 == False:
useSkill(16, 'random') # Elemental Exposure (900988): Reduce resistance to all elements by 75% for 3 turns to all enemies
var_79 = True # unknown flag type (79)
unk_6 = True # unknown flag type (36)
elif pasta == True and horse == True and unk_6 == False and var_79 == False:
wait() # No action
var_79 = True # unknown flag type (79)
elif random() <= 0.35 and pasta == True and var_80 == False:
useSkill(13, '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
var_80 = True # unknown flag type (80)
elif pasta == True and var_80 == False:
wait() # No action
var_80 = True # unknown flag type (80)
elif random() <= 0.35 and pasta == True and var_81 == False:
useSkill(13, '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
var_81 = True # unknown flag type (81)
elif pasta == True and var_81 == False:
wait() # No action
var_81 = True # unknown flag type (81)
elif random() <= 0.35 and pasta == True and var_82 == False:
useSkill(13, '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
var_82 = True # unknown flag type (82)
elif pasta == True and var_82 == False:
wait() # No action
var_82 = True # unknown flag type (82)
elif random() <= 0.20 and pasta == True and var_83 == False:
useSkill(14, 'random') # Ghastly Nightmare (900986): 50% HP damage to all enemies, Inflict Sleep (100%) on all enemies
var_83 = True # unknown flag type (83)
elif pasta == True and var_83 == False:
wait() # No action
var_83 = True # unknown flag type (83)
elif random() <= 0.10 and pasta == True and var_84 == False:
useSkill(15, 'random') # Absolution (900987): Fixed damage (10000) to all enemies
var_84 = True # unknown flag type (84)
elif pasta == True and var_84 == False:
wait() # No action
var_84 = True # unknown flag type (84)
elif var_77 == True and var_78 == False and once():
useSkill(44, 'random') # I will wipe you from existence! (901006): Hybrid* damage (15x, ATK & MAG) to all enemies
var_78 = True # unknown flag type (78)
elif var_77 == True and var_78 == False and isTurnMod(3):
useSkill(44, 'random') # I will wipe you from existence! (901006): Hybrid* damage (15x, ATK & MAG) to all enemies
var_78 = True # unknown flag type (78)
elif manta == 6 and once():
useSkill(46, 'random') # The vestige of Morgana has gained resolve. (901008): Increase morale by 750% for this team
elif manta == 11 and once():
useSkill(46, 'random') # The vestige of Morgana has gained resolve. (901008): Increase morale by 750% for this team
elif manta == 16 and once():
useSkill(46, 'random') # The vestige of Morgana has gained resolve. (901008): Increase morale by 750% for this team
elif manta == 21 and once():
useSkill(46, 'random') # The vestige of Morgana has gained resolve. (901008): Increase morale by 750% for this team
elif manta >= 6 and manta <= 11 and gourd == False:
useSkill(4, 'random') # The vestige of Morgana slightly increased its defenses. (900976): Increase DEF and SPR by 50% for one turn to caster (can not be removed)
gourd = True # reset next turn
elif manta >= 11 and manta <= 16 and gourd == False:
useSkill(5, 'random') # The vestige of Morgana increased its defenses. (900977): Increase DEF and SPR by 100% for one turn to caster (can not be removed)
gourd = True # reset next turn
elif manta >= 16 and manta <= 21 and gourd == False:
useSkill(6, 'random') # The vestige of Morgana greatly increased its defenses. (900978): Increase DEF and SPR by 200% for one turn to caster (can not be removed)
gourd = True # reset next turn
elif manta >= 21 and manta <= 36 and gourd == False:
useSkill(7, 'random') # The vestige of Morgana significantly increased its defenses. (900979): Increase DEF and SPR by 300% for one turn to caster (can not be removed)
gourd = True # reset next turn
elif mauve == 3:
useSkill(40, 'random') # Virtuous Light (901004): Unknown active effect type '1017': [0,0,0,0,0,0,1,0,2,1]
mauve = 0
elif azure == 5:
useSkill(41, 'random') # True Omniscience V (901026): 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 500% for this team
azure = 0
elif bacon == True and whale == 2 and melon == False:
useSkill(35, 'random') # Empress's Conviction (901001): Magic damage (10x, MAG) to all enemies
whale.reset() # timer
melon = True # reset next turn
bacon = False # persistent
sushi = False # persistent
ramen = False # persistent
honey = False # persistent
elif bacon == True and var_68 == False and melon == False:
useSkill(34, 'random') # The vestige of Morgana is preparing a fierce attack. (901000): No effect
var_68 = True # unknown flag type (68)
whale = Timer.create() # timer
melon = True # reset next turn
elif var_64 == True and guava == False:
useSkill(42, 'random') # Such pathetic defenses! (900323): Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
guava = True # reset next turn
elif tiger == True and var_65 == True and var_90 == False and var_71 == False and isTurnMod(3):
wait() # No action
var_90 = True # unknown flag type (90)
elif tiger == True and var_90 == True and var_71 == False and isTurnMod(3):
useSkill(30, 'random') # Spectral Cutter (900317): 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)
var_71 = True # unknown flag type (71)
elif tiger == True and var_90 == True and var_72 == False and isTurnMod(3):
useSkill(30, 'random') # Spectral Cutter (900317): 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)
var_72 = True # unknown flag type (72)
elif mouse == True and var_66 == True and var_73 == False and isTurnMod(3):
useSkill(38, 'random') # Lunar Eclipse (901002): 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
var_73 = True # unknown flag type (73)
elif goose == True and var_67 == True and var_74 == False and isTurnMod(3):
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_74 = True # unknown flag type (74)
elif goose == True and var_67 == True and var_75 == False and isTurnMod(3):
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_75 = True # unknown flag type (75)
elif goose == True and var_67 == True and var_76 == False and isTurnMod(3):
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_76 = True # unknown flag type (76)
elif tiger == False and var_65 == True and var_71 == False and once():
useSkill(43, 'random') # You dare stand against me?! (900324): 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)
var_71 = True # unknown flag type (71)
tiger = True # persistent
elif mouse == False and var_66 == True and var_73 == False and once():
useSkill(39, 'random') # Indomitable Will (901003): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed), Increase MAG by 50% for 2 turns to caster
var_73 = True # unknown flag type (73)
mouse = True # persistent
elif goose == False and var_67 == True and var_74 == False and once():
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_74 = True # unknown flag type (74)
elif goose == False and var_67 == True and var_75 == False and once():
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_75 = True # unknown flag type (75)
elif goose == False and var_67 == True and var_76 == False and once():
useSkill(25, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
var_76 = True # unknown flag type (76)
goose = True # persistent
elif self.HP < 0.75 and once():
useSkill(45, 'random') # The vestige of Morgana seems to be losing resolve. (901007): Reduce morale by 250% for this team
elif self.HP < 0.5 and once():
useSkill(45, 'random') # The vestige of Morgana seems to be losing resolve. (901007): Reduce morale by 250% for this team
elif self.HP < 0.25 and once():
useSkill(45, 'random') # The vestige of Morgana seems to be losing resolve. (901007): Reduce morale by 250% for this team
elif melon == False and self.HP < 0.3:
wait() # No action
black = 0
white = 0
melon = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(24, 'random') # Glacial Needles (900996): 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
elif self.HP < 0.3 and once():
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
elif white < 3 and self.HP < 0.3:
useSkill(24, 'random') # Glacial Needles (900996): 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
white += 1
elif random() <= 0.30 and apple == False and self.HP < 0.3:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
apple = True # reset next turn
elif apple == False and self.HP < 0.3:
wait() # No action
apple = True # reset next turn
elif random() <= 0.30 and berry == False and self.HP < 0.3:
useSkill(27, 'random') # Storm Winds (900314): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster
berry = True # reset next turn
elif berry == False and self.HP < 0.3:
wait() # No action
berry = True # reset next turn
elif random() <= 0.30 and peach == False and self.HP < 0.3:
useSkill(28, '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
peach = True # reset next turn
elif peach == False and self.HP < 0.3:
wait() # No action
peach = True # reset next turn
elif random() <= 0.50 and black < 1 and self.HP < 0.3:
useSkill(29, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
black += 1
elif black < 1 and self.HP < 0.3:
wait() # No action
black += 1
elif olive == False and self.HP < 0.3:
useSkill(47, '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
olive = True # reset next turn
elif mango == False and self.HP < 0.3:
useSkill(47, '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
mango = True # reset next turn
elif lemon == False and self.HP < 0.3:
useSkill(49, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
unk_8 = True # unknown flag type (38)
lemon = True # reset next turn
elif unk_8 == True and self.HP < 0.3:
useSkill(49, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
unk_8 = False # unknown flag type (38)
elif var_86 == False and self.HP < 0.3:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
var_86 = True # unknown flag type (86)
elif var_87 == False and self.HP < 0.3:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
var_87 = True # unknown flag type (87)
elif var_88 == False and self.HP < 0.3:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
var_88 = True # unknown flag type (88)
elif melon == False and self.HP > 0.3 and self.HP < 0.6:
wait() # No action
white = 0
melon = True # reset next turn
elif white < 2 and self.HP > 0.3 and self.HP < 0.6:
useSkill(24, 'random') # Glacial Needles (900996): 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
white += 1
elif apple == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(29, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.50 and berry == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(24, 'random') # Glacial Needles (900996): 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
berry = True # reset next turn
elif berry == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
berry = True # reset next turn
elif random() <= 0.50 and peach == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(24, 'random') # Glacial Needles (900996): 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
peach = True # reset next turn
elif peach == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
peach = True # reset next turn
elif random() <= 0.30 and olive == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
olive = True # reset next turn
elif olive == False and self.HP > 0.3 and self.HP < 0.6:
wait() # No action
olive = True # reset next turn
elif random() <= 0.30 and mango == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(27, 'random') # Storm Winds (900314): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster
mango = True # reset next turn
elif mango == False and self.HP > 0.3 and self.HP < 0.6:
wait() # No action
mango = True # reset next turn
elif random() <= 0.30 and lemon == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(28, '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
lemon = True # reset next turn
elif lemon == False and self.HP > 0.3 and self.HP < 0.6:
wait() # No action
lemon = True # reset next turn
elif grape == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(47, '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
grape = True # reset next turn
elif var_86 == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(47, '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_86 = True # unknown flag type (86)
elif var_87 == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(49, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
var_87 = True # unknown flag type (87)
unk_8 = True # unknown flag type (38)
elif unk_8 == True and self.HP > 0.3 and self.HP < 0.6:
useSkill(49, 'random') # Vicious Massacre (901011): Physical damage (5.5x, ATK) to all enemies
unk_8 = False # unknown flag type (38)
elif var_88 == False and self.HP > 0.3 and self.HP < 0.6:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
var_88 = True # unknown flag type (88)
unk_7 = True # unknown flag type (37)
elif unk_7 == True and self.HP > 0.3 and self.HP < 0.6:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
unk_7 = False # unknown flag type (37)
elif self.HP > 0.6 and self.HP < 0.8 and once():
useSkill(28, '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
elif random() <= 0.50 and apple == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(24, 'random') # Glacial Needles (900996): 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
apple = True # reset next turn
elif apple == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
apple = True # reset next turn
elif random() <= 0.50 and berry == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(24, 'random') # Glacial Needles (900996): 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
berry = True # reset next turn
elif berry == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
berry = True # reset next turn
elif peach == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(24, 'random') # Glacial Needles (900996): 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
peach = True # reset next turn
elif random() <= 0.30 and olive == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(29, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
olive = True # reset next turn
elif olive == False and self.HP > 0.6 and self.HP < 0.8:
wait() # No action
olive = True # reset next turn
elif mango == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(47, '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
mango = True # reset next turn
elif random() <= 0.50 and lemon == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(47, '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
lemon = True # reset next turn
elif grape == False and self.HP > 0.6 and self.HP < 0.8:
useSkill(48, 'lowest HP') # Cruel Retribution (901010): Physical damage (7.5x, ATK) to one enemy
grape = True # reset next turn
elif random() <= 0.50 and apple == False and self.HP > 0.8:
useSkill(24, 'random') # Glacial Needles (900996): 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
apple = True # reset next turn
elif apple == False and self.HP > 0.8:
useSkill(26, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
apple = True # reset next turn
elif berry == False and self.HP > 0.8:
useSkill(24, 'random') # Glacial Needles (900996): 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
berry = True # reset next turn
elif random() <= 0.30 and peach == False and self.HP > 0.8:
useSkill(29, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
peach = True # reset next turn
elif peach == False and self.HP > 0.8:
wait() # No action
peach = True # reset next turn
elif olive == False and self.HP > 0.8:
useSkill(47, '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
olive = True # reset next turn
elif random() <= 0.35 and mango == False and self.HP > 0.8:
useSkill(47, '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
mango = True # reset next turn
elif sushi == False and var_69 == True and once():
useSkill(33, 'random') # Elemental Restoration (900999): Remove all debuffs from caster
fries = True # persistent
bacon = True # persistent
sushi = True # persistent
elif honey == False and var_61 == True and once():
useSkill(31, 'random') # Restoration of Might (900997): Remove all debuffs from caster
steak = True # persistent
bacon = True # persistent
honey = True # persistent
elif ramen == False and var_62 == True and once():
useSkill(32, 'random') # Restoration of Faith (900998): Remove all debuffs from caster
salad = True # persistent
bacon = True # persistent
ramen = True # persistent
elif sushi == False and fries == True and var_69 == True and isTurnMod(3):
useSkill(33, 'random') # Elemental Restoration (900999): Remove all debuffs from caster
bacon = True # persistent
sushi = True # persistent
elif honey == False and steak == True and var_61 == True and isTurnMod(3):
useSkill(31, 'random') # Restoration of Might (900997): Remove all debuffs from caster
bacon = True # persistent
honey = True # persistent
elif ramen == False and salad == True and var_62 == True and isTurnMod(3):
useSkill(32, 'random') # Restoration of Faith (900998): Remove all debuffs from caster
bacon = True # persistent
ramen = True # persistent
elif random() <= 0.00 and var_86 == False:
attack('random')
var_86 = True # unknown flag type (86)
elif random() <= 0.00 and var_87 == False:
attack('random')
var_87 = True # unknown flag type (87)
elif random() <= 0.00 and var_88 == False:
attack('random')
var_88 = True # unknown flag type (88)
else:
endTurn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment