Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created October 23, 2021 22:03
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/2a44a5256b4f26ed6b03535d5b1e789b to your computer and use it in GitHub Desktop.
Save aEnigmatic/2a44a5256b4f26ed6b03535d5b1e789b to your computer and use it in GitHub Desktop.
Tower of Unknown Origin
##
# Mission 'Tower of Unknown Origin' (71030105)
# BattleScript: 710300003
#
# Battles
# * Morturrim
##
##
# Monster Info
##
#
# Monster Morturrim (900011116)
# Race Reaper, Stone
# Level 99
# Actions 40-40
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 800000000
# MP 100000
# ATK 2000
# DEF 40000
# MAG 2000
# SPR 40000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -20%
# Ice 80%
# Lightning 80%
# Water 80%
# Wind 80%
# Earth 80%
# Light -20%
# Dark -50%
# Non-Elemental 50%
#
#
# Status resist (+80% / application)
# Poison 0%
# 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
###
#
# TFA Morturrim Tier 5 (920018) [Passive]
#
# Increase DEF and SPR by 100% and ATK and MAG by 70%
#
##
###
# Skills
###
#
# Skeletal Storm I (901142) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Skeletal Storm II (901143) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Skeletal Storm III (901144) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Skeletal Storm IV (901145) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Skeletal Storm V (901146) [Physical]
#
# Physical damage (3x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Cremation (901147) [Hybrid]
#
# Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
# Reduce resistance to Fire and Dark by 150% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark Entombment (901148) [Hybrid]
#
# Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
# Reduce resistance to Earth and Dark by 150% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Whisper of the Undead (901149) [Magic]
#
# Inflict Zombie (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rally of the Reaper I (901150) [Hybrid]
#
# Unknown active effect type '1015': [300,0,0,0,0,2,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rally of the Reaper II (901151) [Hybrid]
#
# Unknown active effect type '1015': [600,0,0,0,0,2,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rally of the Reaper III (901152) [Hybrid]
#
# Unknown active effect type '1015': [900,0,0,0,0,2,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rally of the Reaper IV (901153) [Hybrid]
#
# Unknown active effect type '1015': [1200,0,0,0,0,2,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rally of the Reaper V (901154) [Hybrid]
#
# Unknown active effect type '1015': [1500,0,0,0,0,2,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Regenerating Bone (901155) [None]
#
# Restore 5% HP to caster
# Remove all debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ramparts of Stone (901156) [None]
#
# Reduce damage taken from physical attacks taken by 50% to caster for 2 turns
# Unknown active effect type '1017': [0,0,0,0,0,1,0,0,2,1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Decaying Miasma (901157) [Magic]
#
# Magic damage (6x, MAG) per turn to one enemy for 6 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Open Wounds (901158) [Magic]
#
# Reduce resistance to Fire, Earth and Dark by 200% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dust to Dust (901159) [Magic]
#
# Magic dark damage (10x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ashes to Ashes (901160) [Magic]
#
# Magic fire damage (10x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth to Earth (901161) [Magic]
#
# Magic earth damage (10x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Fallen Adventurer (901162) [Physical]
#
# Physical damage (0.1x, ATK) as MP drain (15%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# No Escape (901163) [None]
#
# Inflict Stop (100%) for 2 turns on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Cry of the Undead (901164) [Magic]
#
# Inflict Zombie (100%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Grisly Reap (901165) [Hybrid]
#
# Force all enemies to return to the battlefield
# Remove all buffs from all enemies
# Hybrid fire, earth and dark damage (3x - 5.5x, ATK & MAG, 100 - 150 morale) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spiked Turrets (901166) [Physical]
#
# 100% chance to counter physical attacks (7.5x, ATK) to caster for 3 turns (max 5 / turn)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Spectral Antidote (901167) [Physical]
#
# Remove Zombie from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Haunting Touch (901168) [Physical]
#
# Physical damage (7.5x, ATK) to one enemy
# Inflict Stop (100%) for 3 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gathering Dread (901169) [Physical]
#
# Increase ATK, DEF, MAG and SPR by 100% for 2 turns to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Grave of the Wizard (901170) [Hybrid]
#
# Reduce MAG and SPR by 90% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Grave of the Warrior (901171) [Hybrid]
#
# Reduce ATK and DEF by 90% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gravedigging (901172) [None]
#
# Remove resistances to Petrify from one enemy for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tombstone Gaze (901173) [Physical]
#
# Inflict Petrify (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Corpse Burn (901174) [Hybrid]
#
# Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Corpse Burial (901175) [Hybrid]
#
# Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if unit('5:enemy:any').usedLastTurn('limitburst') and green == 0 and honey == True and var_77 == False:
wait() # No action
var_77 = True # unknown flag type (77)
green += 1
honey = False # persistent
elif unit('5:enemy:any').usedLastTurn('limitburst') and green == 1 and ramen == True and var_77 == False:
wait() # No action
var_77 = True # unknown flag type (77)
green += 1
elif green == 0 and honey == False and apple == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
apple = True # reset next turn
elif green == 0 and honey == False and berry == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
berry = True # reset next turn
elif green == 0 and honey == False and peach == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
peach = True # reset next turn
elif green == 0 and honey == False and olive == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
olive = True # reset next turn
elif green == 0 and honey == False and mango == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
mango = True # reset next turn
elif green == 0 and honey == False and lemon == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
lemon = True # reset next turn
elif random() <= 0.80 and green == 0 and honey == False and grape == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
grape = True # reset next turn
elif random() <= 0.60 and green == 0 and honey == False and melon == False and bacon == False:
useSkill(4, 'random') # Skeletal Storm IV (901145): Physical damage (2x, ATK) to all enemies
melon = True # reset next turn
elif green == 0 and honey == False and apple == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
apple = True # reset next turn
elif green == 0 and honey == False and berry == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
berry = True # reset next turn
elif green == 0 and honey == False and peach == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
peach = True # reset next turn
elif green == 0 and honey == False and olive == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
olive = True # reset next turn
elif green == 0 and honey == False and mango == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
mango = True # reset next turn
elif green == 0 and honey == False and lemon == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
lemon = True # reset next turn
elif random() <= 0.80 and green == 0 and honey == False and grape == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
grape = True # reset next turn
elif random() <= 0.60 and green == 0 and honey == False and melon == False and bacon == True:
useSkill(5, 'random') # Skeletal Storm V (901146): Physical damage (3x, ATK) to all enemies
melon = True # reset next turn
elif green == 0 and honey == False and var_72 == False and bacon == False:
useSkill(12, 'random') # Rally of the Reaper IV (901153): Unknown active effect type '1015': [1200,0,0,0,0,2,0]
var_72 = True # unknown flag type (72)
elif green == 0 and honey == False and var_72 == False and bacon == True:
useSkill(13, 'random') # Rally of the Reaper V (901154): Unknown active effect type '1015': [1500,0,0,0,0,2,0]
var_72 = True # unknown flag type (72)
elif random() <= 0.50 and var_73 == False and green == 0 and honey == False:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
var_73 = True # unknown flag type (73)
elif var_73 == False and green == 0 and honey == False:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
var_73 = -1 # unknown value type (73)
elif random() <= 0.50 and var_74 == False and green == 0 and honey == False:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
var_74 = True # unknown flag type (74)
elif var_74 == False and green == 0 and honey == False:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
var_74 = True # unknown flag type (74)
elif random() <= 0.50 and var_75 == False and green == 0 and honey == False:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
var_75 = True # unknown flag type (75)
elif var_75 == False and green == 0 and honey == False:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
var_75 = True # unknown flag type (75)
elif random() <= 0.50 and var_76 == False and green == 0 and honey == False:
useSkill(6, 'random') # Dark Cremation (901147): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies, Reduce resistance to Fire and Dark by 150% for 2 turns to all enemies
var_76 = True # unknown flag type (76)
elif var_76 == False and green == 0 and honey == False:
useSkill(7, 'random') # Dark Entombment (901148): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies, Reduce resistance to Earth and Dark by 150% for 2 turns to all enemies
var_76 = True # unknown flag type (76)
elif green == 0 and honey == True and lemon == False and bacon == False:
useSkill(12, 'random') # Rally of the Reaper IV (901153): Unknown active effect type '1015': [1200,0,0,0,0,2,0]
lemon = True # reset next turn
elif green == 0 and honey == True and lemon == False and bacon == True:
useSkill(13, 'random') # Rally of the Reaper V (901154): Unknown active effect type '1015': [1500,0,0,0,0,2,0]
lemon = True # reset next turn
elif random() <= 0.50 and apple == False and green == 0 and honey == True:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
apple = True # reset next turn
elif apple == False and green == 0 and honey == True:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
apple = True # reset next turn
elif random() <= 0.50 and berry == False and green == 0 and honey == True:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
berry = True # reset next turn
elif berry == False and green == 0 and honey == True:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
berry = True # reset next turn
elif random() <= 0.50 and peach == False and green == 0 and honey == True:
useSkill(33, 'random') # Corpse Burn (901174): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies
peach = True # reset next turn
elif peach == False and green == 0 and honey == True:
useSkill(34, 'random') # Corpse Burial (901175): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.50 and olive == False and green == 0 and honey == True:
useSkill(6, 'random') # Dark Cremation (901147): Hybrid fire and dark damage (3x, ATK & MAG) to all enemies, Reduce resistance to Fire and Dark by 150% for 2 turns to all enemies
olive = True # reset next turn
elif olive == False and green == 0 and honey == True:
useSkill(7, 'random') # Dark Entombment (901148): Hybrid earth and dark damage (3x, ATK & MAG) to all enemies, Reduce resistance to Earth and Dark by 150% for 2 turns to all enemies
olive = True # reset next turn
elif green == 1 and ramen == False and apple == False:
useSkill(14, 'random') # Regenerating Bone (901155): Restore 5% HP to caster, Remove all debuffs from caster
apple = True # reset next turn
elif green == 1 and ramen == False and berry == False:
useSkill(15, 'random') # Ramparts of Stone (901156): Reduce damage taken from physical attacks taken by 50% to caster for 2 turns, Unknown active effect type '1017': [0,0,0,0,0,1,0,0,2,1]
berry = True # reset next turn
elif green == 1 and ramen == False and peach == False:
useSkill(25, 'random') # Spiked Turrets (901166): 100% chance to counter physical attacks (7.5x, ATK) to caster for 3 turns (max 5 / turn)
peach = True # reset next turn
elif green == 1 and ramen == False and olive == False:
useSkill(22, 'random') # No Escape (901163): Inflict Stop (100%) for 2 turns on all enemies
olive = True # reset next turn
elif random() <= 0.40 and mango == False and green == 1 and ramen == False:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
mango = True # reset next turn
elif random() <= 0.50 and mango == False and green == 1 and ramen == False:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
mango = True # reset next turn
elif mango == False and green == 1 and ramen == False:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
mango = True # reset next turn
elif random() <= 0.40 and lemon == False and green == 1 and ramen == False:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif random() <= 0.50 and lemon == False and green == 1 and ramen == False:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif lemon == False and green == 1 and ramen == False:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif random() <= 0.40 and grape == False and green == 1 and ramen == False:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
grape = True # reset next turn
elif random() <= 0.50 and grape == False and green == 1 and ramen == False:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
grape = True # reset next turn
elif grape == False and green == 1 and ramen == False:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
grape = True # reset next turn
elif green == 1 and ramen == False and melon == False:
useSkill(29, 'random') # Grave of the Wizard (901170): Reduce MAG and SPR by 90% for 3 turns to all enemies
melon = True # reset next turn
elif green == 1 and ramen == True and apple == False:
useSkill(16, 'random') # Decaying Miasma (901157): Magic damage (6x, MAG) per turn to one enemy for 6 turns
apple = True # reset next turn
elif green == 1 and ramen == True and berry == False:
useSkill(17, 'random') # Open Wounds (901158): Reduce resistance to Fire, Earth and Dark by 200% for 2 turns to all enemies
berry = True # reset next turn
elif green == 1 and ramen == True and peach == False:
useSkill(25, 'random') # Spiked Turrets (901166): 100% chance to counter physical attacks (7.5x, ATK) to caster for 3 turns (max 5 / turn)
peach = True # reset next turn
elif green == 1 and ramen == True and olive == False:
useSkill(22, 'random') # No Escape (901163): Inflict Stop (100%) for 2 turns on all enemies
olive = True # reset next turn
elif green == 1 and ramen == True and gourd == False:
useSkill(21, 'random') # Fallen Adventurer (901162): Physical damage (0.1x, ATK) as MP drain (15%) to one enemy
gourd = True # reset next turn
elif random() <= 0.40 and mango == False and green == 1 and ramen == True:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
mango = True # reset next turn
elif random() <= 0.50 and mango == False and green == 1 and ramen == True:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
mango = True # reset next turn
elif mango == False and green == 1 and ramen == True:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
mango = True # reset next turn
elif random() <= 0.40 and lemon == False and green == 1 and ramen == True:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif random() <= 0.50 and lemon == False and green == 1 and ramen == True:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif lemon == False and green == 1 and ramen == True:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
lemon = True # reset next turn
elif random() <= 0.40 and grape == False and green == 1 and ramen == True:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
grape = True # reset next turn
elif random() <= 0.50 and grape == False and green == 1 and ramen == True:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
grape = True # reset next turn
elif grape == False and green == 1 and ramen == True:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
grape = True # reset next turn
elif green == 1 and ramen == True and melon == False:
useSkill(30, 'random') # Grave of the Warrior (901171): Reduce ATK and DEF by 90% for 3 turns to all enemies
melon = True # reset next turn
elif green == 2 and apple == False:
useSkill(23, 'random') # Cry of the Undead (901164): Inflict Zombie (100%) to all enemies
apple = True # reset next turn
elif green == 2 and berry == False:
useSkill(24, 'random') # Grisly Reap (901165): Force all enemies to return to the battlefield, Remove all buffs from all enemies, Hybrid fire, earth and dark damage (3x - 5.5x, ATK & MAG, 100 - 150 morale) to all enemies
berry = True # reset next turn
elif not unit('5:enemy:any').inBattlefield() and guava == False:
useSkill(13, 'random') # Rally of the Reaper V (901154): Unknown active effect type '1015': [1500,0,0,0,0,2,0]
guava = True # reset next turn
elif self.hasStatus('Poison') and var_61 == False:
useSkill(14, 'random') # Regenerating Bone (901155): Restore 5% HP to caster, Remove all debuffs from caster
var_61 = True # reset next turn
elif self.hasStatus('Poison') and var_62 == False:
useSkill(26, 'random') # Spectral Antidote (901167): Remove Zombie from caster
var_62 = True # reset next turn
elif var_63 == False:
useSkill(8, 'random') # Whisper of the Undead (901149): Inflict Zombie (100%) to one enemy
var_63 = True # reset next turn
elif isTurnMod(2) and var_64 == False:
useSkill(27, 'random') # Haunting Touch (901168): Physical damage (7.5x, ATK) to one enemy, Inflict Stop (100%) for 3 turns on one enemy
var_64 = True # reset next turn
elif self.damageTakenLastTurn() > 300000 and var_65 == False and sushi == False:
wait() # No action
var_65 = True # reset next turn
elif var_65 == False and sushi == False:
useSkill(31, 'random') # Gravedigging (901172): Remove resistances to Petrify from one enemy for one turn
var_65 = True # reset next turn
sushi = True # persistent
elif sushi == True and var_66 == False and var_65 == False:
useSkill(32, 'random') # Tombstone Gaze (901173): Inflict Petrify (100%) on all enemies
var_66 = True # unknown flag type (66)
elif sushi == True and var_67 == False and var_65 == False:
useSkill(13, 'random') # Rally of the Reaper V (901154): Unknown active effect type '1015': [1500,0,0,0,0,2,0]
var_67 = True # unknown flag type (67)
sushi = False # persistent
elif self.HP < 0.51 and var_68 == False and once():
useSkill(28, 'random') # Gathering Dread (901169): Increase ATK, DEF, MAG and SPR by 100% for 2 turns to caster (can not be removed)
var_68 = True # unknown flag type (68)
elif self.HP < 0.51 and var_69 == False and once():
useSkill(29, 'random') # Grave of the Wizard (901170): Reduce MAG and SPR by 90% for 3 turns to all enemies
var_69 = True # unknown flag type (69)
elif self.HP < 0.51 and var_70 == False and once():
useSkill(30, 'random') # Grave of the Warrior (901171): Reduce ATK and DEF by 90% for 3 turns to all enemies
var_70 = True # unknown flag type (70)
elif random() <= 0.40 and self.HP < 0.51 and white < 4:
useSkill(18, 'random') # Dust to Dust (901159): Magic dark damage (10x, MAG) to one enemy
white += 1
elif random() <= 0.50 and self.HP < 0.51 and white < 4:
useSkill(19, 'random') # Ashes to Ashes (901160): Magic fire damage (10x, MAG) to one enemy
white += 1
elif self.HP < 0.51 and white < 4:
useSkill(20, 'random') # Earth to Earth (901161): Magic earth damage (10x, MAG) to one enemy
white += 1
elif self.HP < 0.51 and var_71 == False:
useSkill(24, 'random') # Grisly Reap (901165): Force all enemies to return to the battlefield, Remove all buffs from all enemies, Hybrid fire, earth and dark damage (3x - 5.5x, ATK & MAG, 100 - 150 morale) to all enemies
var_71 = True # unknown flag type (71)
elif green == 0 and honey == False:
endTurn()
white = 0
honey = True # persistent
elif green == 0 and honey == True:
endTurn()
white = 0
green += 1
honey = False # persistent
elif green == 1 and ramen == False:
endTurn()
white = 0
ramen = True # persistent
elif green == 1 and ramen == True:
endTurn()
white = 0
green += 1
ramen = False # persistent
elif green == 2:
endTurn()
black += 1
white = 0
green = 0
bacon = True # persistent
honey = False # persistent
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment