Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created July 28, 2019 00:21
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/694b437e7068a96b4cb286ad0b0b4322 to your computer and use it in GitHub Desktop.
Save aEnigmatic/694b437e7068a96b4cb286ad0b0b4322 to your computer and use it in GitHub Desktop.
The Empress of Virtue
##
# Mission 'The Empress of Virtue' (9710101)
# Enemy has first strike!
#
# Battles
# * Empress of Virtue
##
##
# Monster Info
##
#
# Monster Empress of Virtue (900010678)
# Race Human
# Level 99
# Actions 12-12
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 15000000
# MP 10000
# ATK 800
# DEF 3000
# MAG 1100
# SPR 3000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 0%
# Lightning 100%
# Water 100%
# Wind 0%
# Earth 100%
# Light -20%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+80% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Omniscience (900310) [None]
#
# Reduce SPR by 40% for 5 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glacial Needles (900311) [Magic]
#
# Magic ice damage (3x, MAG) to all enemies
# Reduce resistance to Ice by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# 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
# Unused parameters: [1]
#
# 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* damage (6x, MAG) to all enemies
# Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glistening Ice (900316) [Magic]
#
# Magic light damage (4x, MAG) to one enemy
# Inflict Blind (100%) on one enemy
# Unknown parameters: [1]
#
# 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)
# Unused parameters: [1]
#
# 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
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Lunar Eclipse (900320) [Magic]
#
# Magic dark damage (8x, MAG) to all enemies
# Inflict Blind (100%) on all enemies
# Unknown parameters: [1]
# Inflict Stop (50%) for 3 turns on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Indomitable Will (900321) [None]
#
# Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# My turn now! (900322) [None]
#
# Reduce resistance to Ice, Wind, Light and Dark by 75% for 10 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Such pathetic defenses! (900323) [None]
#
# Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# You dare stand against me?! (900324) [None]
#
# Reduce MAG and SPR by 60% for 5 turns to caster
# Unused parameters: [1]
# Increase ATK and DEF by 100% for 3 turns to caster (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will wipe you from existence! (900325) [None]
#
# Hybrid* damage (15x, ATK & MAG) to all enemies
# Unused parameters: [0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if steak == True:
endTurn()
steak = False # persistent
elif once():
useSkill(1, 'random') # Omniscience (900310): Reduce SPR by 40% for 5 turns to all enemies
steak = True # persistent
elif fries == True and pizza == True and pasta == True and once():
useSkill(16, 'random') # I will wipe you from existence! (900325): Hybrid* damage (15x, ATK & MAG) to all enemies
salad = True # persistent
elif salad == True and isTurnMod(5) and var_61 == False:
useSkill(16, 'random') # I will wipe you from existence! (900325): Hybrid* damage (15x, ATK & MAG) to all enemies
var_61 = True # unknown flag type
elif self.hitByLastTurn('special_attack') and var_68 == False:
useRandomSkill('random') # [?]
var_68 = True # unknown flag type
green += 1
elif green >= 5 and var_62 == False:
useSkill(13, 'random') # My turn now! (900322): Reduce resistance to Ice, Wind, Light and Dark by 75% for 10 turns to all enemies
var_62 = True # unknown flag type
green = 0
elif unit('5:enemy:any').usedLastTurn('guard') and var_63 == False:
useSkill(14, 'random') # Such pathetic defenses! (900323): Reduce physical damage taken by 20% to caster for 999 turns (can not be removed)
var_63 = True # unknown flag type
elif self.hasDebuff('any') and once():
useSkill(9, 'random') # Battle Fusion (900318): Remove all buffs and debuffs from caster
fries = True # persistent
elif fries == True and isTurnMod(5) and var_64 == False:
useSkill(10, 'random') # Dualistic Affinity (900319): Remove all buffs and debuffs from caster, Increase resistance to Light by 120% for 2 turns to caster
var_64 = True # unknown flag type
elif unit('5:enemy:any').usedLastTurn('limitburst') and once():
useSkill(15, '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)
sugar = True # persistent
elif sugar == True and isTurnMod(5) and var_65 == False:
useSkill(8, '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_65 = True # unknown flag type
elif self.sufferedDamageLastTurn('physical', 'fire') and otter == False:
useSkill(12, 'random') # Indomitable Will (900321): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
otter = True # reset next turn
pizza = True # persistent
elif self.sufferedDamageLastTurn('physical', 'thunder') and otter == False:
useSkill(12, 'random') # Indomitable Will (900321): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
otter = True # reset next turn
pizza = True # persistent
elif self.sufferedDamageLastTurn('physical', 'water') and otter == False:
useSkill(12, 'random') # Indomitable Will (900321): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
otter = True # reset next turn
pizza = True # persistent
elif self.sufferedDamageLastTurn('physical', 'quake') and otter == False:
useSkill(12, 'random') # Indomitable Will (900321): Reduce physical damage taken by 100% to caster for 2 turns (can not be removed)
otter = True # reset next turn
pizza = True # persistent
elif pizza == True and isTurnMod(5) and var_66 == False:
useSkill(11, 'random') # Lunar Eclipse (900320): Magic dark damage (8x, MAG) to all enemies, Inflict Blind (100%) on all enemies, Inflict Stop (50%) for 3 turns on all enemies
var_66 = True # unknown flag type
elif self.sufferedDamageLastTurn('magical', 'fire') and tiger == False:
useSkill(3, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
tiger = True # reset next turn
pasta = True # persistent
elif self.sufferedDamageLastTurn('magical', 'thunder') and tiger == False:
useSkill(3, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
tiger = True # reset next turn
pasta = True # persistent
elif self.sufferedDamageLastTurn('magical', 'water') and tiger == False:
useSkill(3, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
tiger = True # reset next turn
pasta = True # persistent
elif self.sufferedDamageLastTurn('magical', 'quake') and tiger == False:
useSkill(3, 'random') # Shadow Wail (900312): Magic dark damage (4x, MAG) to one enemy, Magic dark damage (1x, MAG) as MP drain (50%) to one enemy
tiger = True # reset next turn
pasta = True # persistent
elif pasta == True and isTurnMod(3) and var_67 == False:
useSkill(3, '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_67 = True # unknown flag type
elif sushi == True:
useSkill(2, 'random') # Glacial Needles (900311): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies
sushi = False # persistent
elif bacon == True:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
bacon = False # persistent
elif self.HP < 0.3 and once():
useSkill(2, 'random') # Glacial Needles (900311): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies
elif self.HP < 0.3 and once():
useSkill(4, '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 self.HP < 0.3 and guava == True:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
guava = False # reset next turn
elif self.HP < 0.3 and gourd == True:
useSkill(6, 'random') # Elemental Enervation (900315): Magic* damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
gourd = False # reset next turn
elif self.HP < 0.6 and grape == True:
useSkill(7, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
melon = True # reset next turn
grape = False # reset next turn
elif self.HP < 0.6 and melon == True:
useSkill(7, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
melon = False # reset next turn
elif random() <= 0.50 and self.HP < 0.6 and self.HP > 0.3 and honey == False:
useSkill(2, 'random') # Glacial Needles (900311): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies
sushi = True # persistent
honey = True # persistent
elif self.HP < 0.6 and self.HP > 0.3 and honey == False:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
bacon = True # persistent
honey = True # persistent
elif random() <= 0.30 and self.HP < 0.6 and apple == False:
useSkill(5, 'random') # Storm Winds (900314): Magic wind damage (6x, MAG) to all enemies, Restore 50000 HP to caster
apple = True # reset next turn
elif random() <= 0.30 and self.HP < 0.6 and berry == False:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
guava = True # reset next turn
berry = True # reset next turn
elif random() <= 0.30 and self.HP < 0.6 and peach == False:
useSkill(6, 'random') # Elemental Enervation (900315): Magic* damage (6x, MAG) to all enemies, Reduce resistance to Ice, Wind, Light and Dark by 50% for 3 turns to all enemies
gourd = True # reset next turn
peach = True # reset next turn
elif random() <= 0.50 and self.HP < 0.8 and self.HP > 0.6 and ramen == False:
useSkill(2, 'random') # Glacial Needles (900311): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies
sushi = True # persistent
ramen = True # persistent
elif self.HP < 0.8 and self.HP > 0.6 and ramen == False:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
bacon = True # persistent
ramen = True # persistent
elif self.HP < 0.8 and once():
useSkill(6, 'random') # Elemental Enervation (900315): Magic* 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 self.HP > 0.8 and olive == False:
useSkill(2, 'random') # Glacial Needles (900311): Magic ice damage (3x, MAG) to all enemies, Reduce resistance to Ice by 50% for 3 turns to all enemies
olive = True # reset next turn
elif self.HP > 0.8 and olive == False:
useSkill(4, '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 random() <= 0.30 and self.HP > 0.8 and mango == False:
useSkill(4, 'random') # Void Blast (900313): Magic dark damage (4x, MAG) to one enemy, Reduce resistance to Dark by 75% for 3 turns to one enemy
mango = True # reset next turn
elif random() <= 0.30 and lemon == False:
useSkill(7, 'random') # Glistening Ice (900316): Magic light damage (4x, MAG) to one enemy, Inflict Blind (100%) on one enemy
grape = True # reset next turn
lemon = True # reset next turn
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment