Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active November 24, 2018 15:55
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/39bef66def6a303356507de867b6e3dc to your computer and use it in GitHub Desktop.
Save aEnigmatic/39bef66def6a303356507de867b6e3dc to your computer and use it in GitHub Desktop.
Trial of Vengeance
##
# Mission 'Trial of Vengeance' (9470101)
# Enemy has first strike!
#
# Battles
# * Awakened Hasiko, Spirit, Spirit
##
##
# Monster Info
##
#
# Monster Awakened Hasiko (900010539)
# Race Demon
# Level 99
# Actions 6-6
#
#
# Stats
# HP 20000000
# MP 10000
# ATK 400
# DEF 1000
# MAG 200
# SPR 1500
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light -50%
# Dark -50%
# 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
###
#
# Spirit Burn (900182) [None]
#
# Magic* damage (6x, MAG) to all enemies
# Hybrid* damage (1x, ATK & MAG) as MP drain (50%) to all enemies
# Reduce DEF, MAG and SPR by 40% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deadly Intimidating Gaze (900195) [Magic]
#
# Magic dark damage (3x, MAG) to all enemies
# Inflict Petrify (30%) on all enemies
# Reduce resistance to Dark by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Maniacal Slash (900184) [Physical]
#
# Physical damage (3x, ATK) to all enemies
# Physical damage (1x, ATK) as HP drain (150%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deadly Thrust (900185) [None]
#
# Physical* damage (9x, ATK) to one enemy
# Hybrid* damage (1x, ATK & MAG) as MP drain (150%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deadly Cursed Mind (900196) [Magic]
#
# Magic damage (5x, MAG) to one enemy
# Inflict Blind, Silence and Confusion (10%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Growl (900187) [Hybrid]
#
# Reduce magic damage taken by 100% to caster for one turn (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# I will destroy you! (900197) [Magic]
#
# Magic damage (120x, MAG) to all enemies
# Reduce resistance to Light and Dark by 300% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if unit('2:ally:900010540:Spirit').is('dead') and peach == False and once():
useSkill(7, 'random') # I will destroy you! (900197): Magic damage (120x, MAG) to all enemies, Reduce resistance to Light and Dark by 300% for 3 turns to caster
peach = True # reset next turn
elif unit('2:ally:900010541:Spirit').is('dead') and olive == False and once():
useSkill(7, 'random') # I will destroy you! (900197): Magic damage (120x, MAG) to all enemies, Reduce resistance to Light and Dark by 300% for 3 turns to caster
olive = True # reset next turn
elif once():
useSkill(1, 'random') # Spirit Burn (900182): Magic* damage (6x, MAG) to all enemies, Hybrid* damage (1x, ATK & MAG) as MP drain (50%) to all enemies, Reduce DEF, MAG and SPR by 40% for 3 turns to all enemies
elif once():
useSkill(5, 'highest SPR') # Deadly Cursed Mind (900196): Magic damage (5x, MAG) to one enemy, Inflict Blind, Silence and Confusion (10%) on one enemy
elif once():
useSkill(2, 'random') # Deadly Intimidating Gaze (900195): Magic dark damage (3x, MAG) to all enemies, Inflict Petrify (30%) on all enemies, Reduce resistance to Dark by 50% for 3 turns to all enemies
elif once():
endTurn()
elif apple == False and isTurnMod(3):
useSkill(6, 'random') # Growl (900187): Reduce magic damage taken by 100% to caster for one turn (can not be removed)
apple = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(3, 'random') # Maniacal Slash (900184): Physical damage (3x, ATK) to all enemies, Physical damage (1x, ATK) as HP drain (150%) to all enemies
elif random() <= 0.10 and self.HP < 0.3:
useSkill(5, 'random') # Deadly Cursed Mind (900196): Magic damage (5x, MAG) to one enemy, Inflict Blind, Silence and Confusion (10%) on one enemy
elif random() <= 0.30 and self.HP < 0.3:
useSkill(2, 'random') # Deadly Intimidating Gaze (900195): Magic dark damage (3x, MAG) to all enemies, Inflict Petrify (30%) on all enemies, Reduce resistance to Dark by 50% for 3 turns to all enemies
elif random() <= 0.05 and self.HP < 0.3 and berry == False:
useSkill(1, 'random') # Spirit Burn (900182): Magic* damage (6x, MAG) to all enemies, Hybrid* damage (1x, ATK & MAG) as MP drain (50%) to all enemies, Reduce DEF, MAG and SPR by 40% for 3 turns to all enemies
berry = True # reset next turn
elif random() <= 0.40 and self.HP < 0.3:
useSkill(3, 'random') # Maniacal Slash (900184): Physical damage (3x, ATK) to all enemies, Physical damage (1x, ATK) as HP drain (150%) to all enemies
elif random() <= 0.30 and self.HP < 0.3:
useSkill(4, 'highest MAG') # Deadly Thrust (900185): Physical* damage (9x, ATK) to one enemy, Hybrid* damage (1x, ATK & MAG) as MP drain (150%) to one enemy
elif random() <= 0.50 and self.HP < 0.5 and once():
useSkill(5, 'highest SPR') # Deadly Cursed Mind (900196): Magic damage (5x, MAG) to one enemy, Inflict Blind, Silence and Confusion (10%) on one enemy
elif random() <= 0.10 and self.HP < 0.5:
useSkill(5, 'random') # Deadly Cursed Mind (900196): Magic damage (5x, MAG) to one enemy, Inflict Blind, Silence and Confusion (10%) on one enemy
elif random() <= 0.05 and self.HP < 0.5 and berry == False:
useSkill(1, 'random') # Spirit Burn (900182): Magic* damage (6x, MAG) to all enemies, Hybrid* damage (1x, ATK & MAG) as MP drain (50%) to all enemies, Reduce DEF, MAG and SPR by 40% for 3 turns to all enemies
berry = True # reset next turn
elif random() <= 0.20 and self.HP < 0.5:
useSkill(3, 'random') # Maniacal Slash (900184): Physical damage (3x, ATK) to all enemies, Physical damage (1x, ATK) as HP drain (150%) to all enemies
elif random() <= 0.20 and self.HP < 0.5:
useSkill(2, 'random') # Deadly Intimidating Gaze (900195): Magic dark damage (3x, MAG) to all enemies, Inflict Petrify (30%) on all enemies, Reduce resistance to Dark by 50% for 3 turns to all enemies
elif random() <= 0.10 and self.HP < 0.5:
useSkill(4, 'highest MAG') # Deadly Thrust (900185): Physical* damage (9x, ATK) to one enemy, Hybrid* damage (1x, ATK & MAG) as MP drain (150%) to one enemy
elif self.HP < 0.5:
attack('random')
elif random() <= 0.05 and berry == False:
useSkill(1, 'random') # Spirit Burn (900182): Magic* damage (6x, MAG) to all enemies, Hybrid* damage (1x, ATK & MAG) as MP drain (50%) to all enemies, Reduce DEF, MAG and SPR by 40% for 3 turns to all enemies
berry = True # reset next turn
elif random() <= 0.20:
useSkill(2, 'random') # Deadly Intimidating Gaze (900195): Magic dark damage (3x, MAG) to all enemies, Inflict Petrify (30%) on all enemies, Reduce resistance to Dark by 50% for 3 turns to all enemies
elif random() <= 0.40:
useSkill(4, 'random') # Deadly Thrust (900185): Physical* damage (9x, ATK) to one enemy, Hybrid* damage (1x, ATK & MAG) as MP drain (150%) to one enemy
else:
attack('random')
##
# Monster Info
##
#
# Monster Spirit (900010540)
# Race Reaper
# Level 50
# Actions 4-4
#
#
# Stats
# HP 50000
# MP 5000
# ATK 245
# DEF 600
# MAG 200
# SPR 650
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light -50%
# Dark -50%
# Non-Elemental 0%
#
#
# Status resist (+30% / 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
###
#
# Cursed Recovery (900198) [Hybrid]
#
# Restore 5% HP to all allies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Malefic Sacrifice (900199) [Magic]
#
# Sacrifice 100% HP to deal 10% HP damage to all enemies
# Magic damage (200x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif grape == False:
wait() # No action
green += 1
grape = True # reset next turn
elif random() <= 0.05 and mango == False:
useSkill(1, 'random') # Cursed Recovery (900198): Restore 5% HP to all allies
mango = True # reset next turn
elif green >= 15:
useSkill(2, 'random') # Malefic Sacrifice (900199): Sacrifice 100% HP to deal 10% HP damage to all enemies, Magic damage (200x, MAG) to all enemies
green += 1
else:
attack('random')
##
# Monster Info
##
#
# Monster Spirit (900010541)
# Race Reaper
# Level 50
# Actions 4-4
#
#
# Stats
# HP 50000
# MP 5000
# ATK 245
# DEF 600
# MAG 200
# SPR 650
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 100%
# Ice 100%
# Lightning 100%
# Water 100%
# Wind 100%
# Earth 100%
# Light -50%
# Dark -50%
# Non-Elemental 0%
#
#
# Status resist (+30% / 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
###
#
# Cursed Recovery (900198) [Hybrid]
#
# Restore 5% HP to all allies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Malefic Sacrifice (900199) [Magic]
#
# Sacrifice 100% HP to deal 10% HP damage to all enemies
# Magic damage (200x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif grape == False:
wait() # No action
green += 1
grape = True # reset next turn
elif random() <= 0.05 and mango == False:
useSkill(1, 'random') # Cursed Recovery (900198): Restore 5% HP to all allies
mango = True # reset next turn
elif green >= 15:
useSkill(2, 'random') # Malefic Sacrifice (900199): Sacrifice 100% HP to deal 10% HP damage to all enemies, Magic damage (200x, MAG) to all enemies
green += 1
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment