Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active August 23, 2019 13:27
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/42930bb43a6a3d8ba6279d43ed04b08d to your computer and use it in GitHub Desktop.
Save aEnigmatic/42930bb43a6a3d8ba6279d43ed04b08d to your computer and use it in GitHub Desktop.
Empress Supreme Morgana [AI only]
###
# Empress Supreme Morgana
###
# Skills
###
#
# Empress Supreme (900327) [None]
#
# Reduce physical damage taken by 100% to caster for one turn (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 100% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (900328) [Magic]
#
# Magic ice damage (5x, MAG) to one enemy
# Reduce resistance to Ice by 200% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Void Blast (900329) [Magic]
#
# Magic dark damage (8x, MAG) to one enemy
# Reduce resistance to Dark by 200% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Winds (900330) [Magic]
#
# Magic wind damage (5x, MAG) to one enemy
# Reduce resistance to Wind by 200% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Halo Beam (900331) [Magic]
#
# Magic light damage (5x, MAG) to one enemy
# Reduce resistance to Light by 200% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Unstable Energy (900332) [None]
#
# Magic* damage (8x + 0x, (MAG + SPR) * EvoMAG) to all enemies
# Unknown parameters: [[100,0]]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Elemental Enervation (900333) [None]
#
# Reduce resistance to Ice by 100% and resistance to Wind, Light and Dark by 300% for 99 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Awaken, my minions! (900334) [Hybrid]
#
# Summon ally #4
# Summon ally #5
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crystallized Spikes (900335) [Magic]
#
# Magic ice damage (6x, MAG) to all enemies
# Inflict Stop (50%) for 3 turns on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shadow Wail (900336) [Magic]
#
# Magic dark damage (15x, MAG) to all enemies
# Remove resistances to Poison from all enemies for 3 turns
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Storm Gale (900337) [Magic]
#
# Magic wind damage (6x, MAG) to all enemies
# Remove resistances to Disease from all enemies for 3 turns
# Inflict Disease (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Holy Radiance (900338) [Magic]
#
# Magic light damage (8x, MAG) to all enemies
# Remove resistances to Blind from all enemies for 3 turns
# Inflict Blind (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Cutter (900339) [Physical]
#
# Cast Death (100%) or deal physical damage (15x * 1 = 15x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Arcane Explosion (900340) [None]
#
# Magic* damage (15x + 0x, (MAG + SPR) * EvoMAG) to all enemies
# Unknown parameters: [[100,0]]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if lemon == True:
endTurn()
elif once():
useSkill(1, 'random') # Empress Supreme (900327): Reduce physical damage taken by 100% to caster for one turn (can not be removed), Reduce magic damage taken by 100% to caster for one turn (can not be removed)
lemon = True # reset next turn
elif unit('2:ally:900010680:Empress's Knight').is('alive') and apple == False:
useSkill(1, 'random') # Empress Supreme (900327): Reduce physical damage taken by 100% to caster for one turn (can not be removed), Reduce magic damage taken by 100% to caster for one turn (can not be removed)
apple = True # reset next turn
elif unit('2:ally:900010681:Captain of the Empress's Guard').is('alive') and apple == False:
useSkill(1, 'random') # Empress Supreme (900327): Reduce physical damage taken by 100% to caster for one turn (can not be removed), Reduce magic damage taken by 100% to caster for one turn (can not be removed)
apple = True # reset next turn
elif unit('2:ally:900010680:Empress's Knight').is('dead') and once():
useSkill(6, 'random') # Unstable Energy (900332): Magic* damage (8x + 0x, (MAG + SPR) * EvoMAG) to all enemies
honey = True # persistent
elif unit('2:ally:900010680:Empress's Knight').is('dead') and isTurnMod(5) and var_62 == False:
useSkill(6, 'random') # Unstable Energy (900332): Magic* damage (8x + 0x, (MAG + SPR) * EvoMAG) to all enemies
var_62 = True # unknown flag type
elif unit('2:ally:900010681:Captain of the Empress's Guard').is('dead') and once():
useSkill(7, 'random') # Elemental Enervation (900333): Reduce resistance to Ice by 100% and resistance to Wind, Light and Dark by 300% for 99 turns to all enemies
honey = True # persistent
elif unit('2:ally:900010681:Captain of the Empress's Guard').is('dead') and isTurnMod(5) and var_61 == False:
useSkill(13, 'random') # Spectral Cutter (900339): Cast Death (100%) or deal physical damage (15x * 1 = 15x, ATK) to one enemy
var_61 = True # unknown flag type
elif random() <= 0.01 and honey == True:
useSkill(9, 'random') # Crystallized Spikes (900335): Magic ice damage (6x, MAG) to all enemies, Inflict Stop (50%) for 3 turns on all enemies
elif random() <= 0.05 and honey == True:
useSkill(10, 'random') # Shadow Wail (900336): Magic dark damage (15x, MAG) to all enemies, Remove resistances to Poison from all enemies for 3 turns, Inflict Poison (100%) on all enemies
elif random() <= 0.05 and honey == True:
useSkill(11, 'random') # Storm Gale (900337): Magic wind damage (6x, MAG) to all enemies, Remove resistances to Disease from all enemies for 3 turns, Inflict Disease (100%) on all enemies
elif random() <= 0.05 and honey == True:
useSkill(12, 'random') # Holy Radiance (900338): Magic light damage (8x, MAG) to all enemies, Remove resistances to Blind from all enemies for 3 turns, Inflict Blind (100%) on all enemies
elif self.HP < 0.7 and once():
useSkill(8, 'random') # Awaken, my minions! (900334): Summon ally #4, Summon ally #5
elif self.HP < 0.7 and once():
useSkill(14, 'random') # Arcane Explosion (900340): Magic* damage (15x + 0x, (MAG + SPR) * EvoMAG) to all enemies
elif self.HP < 0.5 and once():
useSkill(14, 'random') # Arcane Explosion (900340): Magic* damage (15x + 0x, (MAG + SPR) * EvoMAG) to all enemies
elif self.HP < 0.3 and once():
useSkill(14, 'random') # Arcane Explosion (900340): Magic* damage (15x + 0x, (MAG + SPR) * EvoMAG) to all enemies
elif self.HP < 0.1 and once():
useSkill(14, 'random') # Arcane Explosion (900340): Magic* damage (15x + 0x, (MAG + SPR) * EvoMAG) to all enemies
elif random() <= 0.05:
useSkill(2, 'random') # Glacial Needles (900328): Magic ice damage (5x, MAG) to one enemy, Reduce resistance to Ice by 200% for 3 turns to one enemy
elif random() <= 0.05:
useSkill(3, 'random') # Void Blast (900329): Magic dark damage (8x, MAG) to one enemy, Reduce resistance to Dark by 200% for 3 turns to one enemy
elif random() <= 0.05:
useSkill(4, 'random') # Storm Winds (900330): Magic wind damage (5x, MAG) to one enemy, Reduce resistance to Wind by 200% for 3 turns to one enemy
elif random() <= 0.05:
useSkill(5, 'random') # Halo Beam (900331): Magic light damage (5x, MAG) to one enemy, Reduce resistance to Light by 200% for 3 turns to one enemy
else:
attack('random')
###
# Empress's Knight
###
# Skills
###
#
# Weapon Destroyer (900349) [None]
#
# Reduce ATK and MAG by 99% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Armor Destroyer (900350) [None]
#
# Reduce DEF and SPR by 99% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Evil shall not prevail! (900351) [None]
#
# Increase ATK and MAG by 100% for 3 turns to all allies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Blade of Justice (900352) [Physical]
#
# Physical damage (6x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Knight's Slash (900353) [Physical]
#
# Physical dark damage (8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Apply Bandage (900354) [None]
#
# Restore 5% HP to one ally
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fair Fight (900355) [None]
#
# Remove all buffs and debuffs from all units
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glory to the Empress! (900356) [None]
#
# Reduce magic damage taken by 100% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if melon == True:
endTurn()
elif once():
useSkill(8, 'random') # Glory to the Empress! (900356): Reduce magic damage taken by 100% to caster for one turn (can not be removed)
melon = True # reset next turn
elif unit('2:ally:900010681:Captain of the Empress's Guard').is('alive') and peach == False:
useSkill(8, 'random') # Glory to the Empress! (900356): Reduce magic damage taken by 100% to caster for one turn (can not be removed)
peach = True # reset next turn
elif random() <= 0.05 and unit('2:ally:900010681:Captain of the Empress's Guard').HP < 0.6 and olive == False:
useSkill(6, 'hp_min') # Apply Bandage (900354): Restore 5% HP to one ally
olive = True # reset next turn
elif isTurnMod(5):
useSkill(3, 'random') # Evil shall not prevail! (900351): Increase ATK and MAG by 100% for 3 turns to all allies
melon = True # reset next turn
elif isTurnMod(3) and guava == False:
useSkill(5, 'random') # Knight's Slash (900353): Physical dark damage (8x, ATK) to all enemies
guava = True # reset next turn
elif random() <= 0.20 and self.HP < 0.8:
useSkill(1, 'random') # Weapon Destroyer (900349): Reduce ATK and MAG by 99% for 3 turns to all enemies
elif random() <= 0.20 and self.HP < 0.8:
useSkill(2, 'random') # Armor Destroyer (900350): Reduce DEF and SPR by 99% for 3 turns to all enemies
elif unit('1:ally:any').hitByLastTurn('attack') and mango == False:
useSkill(7, 'random') # Fair Fight (900355): Remove all buffs and debuffs from all units
mango = True # reset next turn
elif random() <= 0.10:
useSkill(4, 'random') # Blade of Justice (900352): Physical damage (6x, ATK) to one enemy
else:
attack('random')
###
# Captain of the Empress's Guard
###
# Skills
###
#
# Dark Strike (900341) [Magic]
#
# Magic dark damage (30x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Punishment (900342) [Magic]
#
# Magic damage (10x, MAG) to all enemies
# Reduce resistance to Ice, Wind, Light and Dark by 200% for 5 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You cannot hurt us! (900343) [None]
#
# Add Fire, Lightning, Water and Earth element (100%) to physical attacks for 99 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Blade of Justice (900344) [Physical]
#
# Physical damage (8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Knight's Slash (900345) [Physical]
#
# Physical dark damage (10x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Captain's Rage (900346) [None]
#
# Dodge 10 physical attacks for 99 turns to caster
# Unknown parameters: [1]
# Increase ATK, DEF, MAG and SPR by 200% for 99 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Final Breath (900347) [None]
#
# Auto-revive (100% HP) for 99 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# For my Empress! (900348) [None]
#
# Reduce physical damage taken by 100% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if grape == True:
endTurn()
elif once():
useSkill(8, 'random') # For my Empress! (900348): Reduce physical damage taken by 100% to caster for one turn (can not be removed)
grape = True # reset next turn
elif unit('2:ally:900010680:Empress's Knight').is('alive') and berry == False:
useSkill(8, 'random') # For my Empress! (900348): Reduce physical damage taken by 100% to caster for one turn (can not be removed)
berry = True # reset next turn
elif unit('2:ally:900010680:Empress's Knight').HP < 0.6 and once():
wait() # No action
elif unit('2:ally:900010680:Empress's Knight').is('dead') and once():
useSkill(6, 'random') # Captain's Rage (900346): Dodge 10 physical attacks for 99 turns to caster, Increase ATK, DEF, MAG and SPR by 200% for 99 turns to caster
elif isTurnMod(5):
useSkill(2, 'random') # Punishment (900342): Magic damage (10x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 200% for 5 turns to all enemies
grape = True # reset next turn
elif isTurnMod(3) and gourd == False:
useSkill(5, 'random') # Knight's Slash (900345): Physical dark damage (10x, ATK) to all enemies
gourd = True # reset next turn
elif random() <= 0.20 and self.HP < 0.6:
useSkill(1, 'random') # Dark Strike (900341): Magic dark damage (30x, MAG) to one enemy
elif random() <= 0.20 and self.HP < 0.6:
useSkill(2, 'random') # Punishment (900342): Magic damage (10x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 200% for 5 turns to all enemies
elif self.HP < 0.2 and var_63 == False:
useSkill(7, 'random') # Final Breath (900347): Auto-revive (100% HP) for 99 turns to caster
var_63 = True # unknown flag type
elif random() <= 0.10:
useSkill(4, 'random') # Blade of Justice (900344): Physical damage (8x, ATK) to one enemy
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment