Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Last active February 11, 2019 12:06
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/e2c081603adbc2ccba5c24b4010e313f to your computer and use it in GitHub Desktop.
Save aEnigmatic/e2c081603adbc2ccba5c24b4010e313f to your computer and use it in GitHub Desktop.
Scorn of Gilgamesh - JP
##
# Mission 'Scorn of Gilgamesh' (8993501)
# Enemy has first strike!
#
# Battles
# * Gilgamesh
##
##
# Monster Info
##
#
# Monster Gilgamesh (405051001)
# Race Human
# Level 100
# Actions 40-40
#
#
# Stats
# HP 150000000
# MP 100000
# ATK 1100
# DEF 370
# MAG 1200
# SPR 375
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark 0%
# Non-Elemental 100%
#
#
# Status resist (+100% / application)
# Poison 100%
# Blind 100%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 物理カウンター(ギルガメッシュ真降臨) (100043) [Passive]
#
# 100% chance to counter physical attacks with ツバメ返し (199130) to the attacker
#
##
#
# 攻撃魔力50% (100025) [Passive]
#
# Increase ATK and MAG by 50%
#
##
#
# 魔法カウンター(ギルガメッシュ真降臨) (100047) [Passive]
#
# 100% chance to counter magic attacks with エクスカリぱ〜 (199140) to the attacker
#
##
###
# Skills
###
#
# ツバメ返し (199130) [Physical]
#
# Hybrid* damage (1.9x, ATK & MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# エクスカリぱ〜 (199140) [Magic]
#
# Hybrid* light damage (1.8x, ATK & MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# X斬り (199150) [Physical]
#
# Hybrid* damage (1.5x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 妖刀ムラマサ (199160) [Physical]
#
# Hybrid* fire damage (2x, ATK & MAG) to one enemy
# Reduce ATK and MAG by 75% for 3 turns to one enemy
# Physical fire damage (0.3x, ATK) as MP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 魔剣マサムネ (199170) [Physical]
#
# Hybrid* water damage (2x, ATK & MAG) to one enemy
# Reduce DEF and SPR by 75% for 3 turns to one enemy
# Physical water damage (1.2x, ATK) as HP drain (50%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 竜巻旋風剣 (199180) [Physical]
#
# Hybrid* wind damage (1.8x, ATK & MAG) to one enemy
# Inflict Paralyze (100%) on one enemy
# Reduce resistance to Fire, Water, Wind, Earth and Light by 80% for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 斬鉄剣 (199190) [Physical]
#
# 90% HP damage to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# エクスカリバー (199200) [Magic]
#
# Hybrid* light damage (2.2x, ATK & MAG) to one enemy
# Inflict Confusion (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 氷刃ムラサメ (199210) [Magic]
#
# Hybrid* ice damage (1.7x, ATK & MAG) to all enemies
# Inflict Silence (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 方天画戟 (199220) [Magic]
#
# Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy
# Remove all buffs and debuffs from one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# アポカリプス (199230) [Magic]
#
# Fixed* dark damage (9999) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 妖刀ムラマサ・真打 (199240) [Physical]
#
# Hybrid* fire damage (2.1x, ATK & MAG) to all enemies
# Reduce ATK and MAG by 90% for 3 turns to all enemies
# Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 魔剣マサムネ・真打 (199250) [Physical]
#
# Hybrid* water damage (2.1x, ATK & MAG) to all enemies
# Reduce DEF and SPR by 90% for 3 turns to all enemies
# Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 真・竜巻旋風剣 (199260) [Physical]
#
# Hybrid* wind damage (1.8x, ATK & MAG) to all enemies
# Inflict Paralyze (100%) on all enemies
# Reduce resistance to all elements by 120% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 斬鉄剣・真打 (199270) [None]
#
# Instant KO (100%) to one enemy (ignores death resist)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# エクスカリバーII (199280) [Magic]
#
# Hybrid* light damage (2.4x, ATK & MAG) to one enemy
# Inflict Blind, Paralyze and Confusion (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 源氏の弓 (199290) [Magic]
#
# Hybrid* damage (1.7x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 源氏の刀 (199300) [None]
#
# Hybrid* damage (1.6x, ATK & MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 源氏の兜 (199310) [None]
#
# Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster
# Increase break resistance to ATK and MAG by 50% for 2 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 源氏の鎧 (199320) [None]
#
# Dodge 5 physical attacks for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 源氏の盾 (199330) [None]
#
# Reduce physical damage taken by 30% to caster for 3 turns (can not be removed)
# Reduce magic damage taken by 30% to caster for 3 turns (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# ギルガメッシュチェーンジ!! (199340) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 奥義・天下御免 (199350) [None]
#
# [Death]
# Hybrid* damage (5x, ATK & MAG) to all enemies
# Instant KO (100%) to all enemies
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 奥義・天下御免 (199360) [None]
#
# [Death]
# Hybrid* damage (5x, ATK & MAG) to all enemies
# Instant KO (100%) to all enemies
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 奥義・天下御免 (199370) [None]
#
# [Death]
# Hybrid* damage (5x, ATK & MAG) to all enemies
# Instant KO (100%) to all enemies
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# BREAK (199380) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 理が逆転した (199390) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# 新たな武器をとりだした (199400) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# バリア (199410) [None]
#
# Reduce physical damage taken by 50% to caster for 3 turns (can not be removed)
# Increase ATK and MAG by 35% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
#
# ウォール (199420) [None]
#
# Reduce magic damage taken by 50% to caster for 3 turns (can not be removed)
# Increase DEF and SPR by 35% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 +
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(29, 'random') # バリア (199410): Reduce physical damage taken by 50% to caster for 3 turns (can not be removed), Increase ATK and MAG by 35% for 3 turns to caster
elif once():
useSkill(30, 'random') # ウォール (199420): Reduce magic damage taken by 50% to caster for 3 turns (can not be removed), Increase DEF and SPR by 35% for 3 turns to caster
apple = True # reset next turn
elif once() and azure == 3:
useSkill(26, 'random') # BREAK (199380): No effect
elif azure == 3:
endTurn()
azure = 0
pasta = True # persistent
elif self.hitByLastTurn('item') and guava == False and pasta == False:
wait() # No action
azure += 1
guava = True # reset next turn
elif self.HP < 0.2 and once():
useSkill(22, 'random') # ギルガメッシュチェーンジ!! (199340): No effect
honey = True # persistent
elif self.HP < 0.4 and once() and honey == False:
useSkill(22, 'random') # ギルガメッシュチェーンジ!! (199340): No effect
ramen = True # persistent
elif self.HP < 0.6 and once() and honey == False and ramen == False:
useSkill(22, 'random') # ギルガメッシュチェーンジ!! (199340): No effect
sushi = True # persistent
elif self.HP < 0.8 and once() and honey == False and ramen == False and sushi == False:
useSkill(22, 'random') # ギルガメッシュチェーンジ!! (199340): No effect
elif self.HP < 0.8 and once() and honey == False and ramen == False and sushi == False:
useSkill(27, 'random') # 理が逆転した (199390): No effect
elif self.HP < 0.8 and once():
useSkill(23, 'random') # 奥義・天下御免 (199350): [Death], Hybrid* damage (5x, ATK & MAG) to all enemies, Instant KO (100%) to all enemies, Remove all buffs and debuffs from all enemies
white = 0
elif self.HP < 0.8 and once() and honey == False and ramen == False:
useSkill(21, 'random') # 源氏の盾 (199330): Reduce physical damage taken by 30% to caster for 3 turns (can not be removed), Reduce magic damage taken by 30% to caster for 3 turns (can not be removed)
elif self.HP < 0.8 and once() and honey == False and ramen == False and sushi == False:
useSkill(28, 'random') # 新たな武器をとりだした (199400): No effect
apple = True # reset next turn
elif self.HP < 0.6 and once() and honey == False and ramen == False:
useSkill(27, 'random') # 理が逆転した (199390): No effect
elif self.HP < 0.6 and once():
useSkill(24, 'random') # 奥義・天下御免 (199360): [Death], Hybrid* damage (5x, ATK & MAG) to all enemies, Instant KO (100%) to all enemies, Remove all buffs and debuffs from all enemies
white = 0
elif self.HP < 0.6 and once() and honey == False and ramen == False:
useSkill(28, 'random') # 新たな武器をとりだした (199400): No effect
apple = True # reset next turn
elif self.HP < 0.4 and once() and honey == False:
useSkill(27, 'random') # 理が逆転した (199390): No effect
elif self.HP < 0.4 and once():
useSkill(25, 'random') # 奥義・天下御免 (199370): [Death], Hybrid* damage (5x, ATK & MAG) to all enemies, Instant KO (100%) to all enemies, Remove all buffs and debuffs from all enemies
white = 0
elif self.HP < 0.4 and once():
useSkill(21, 'random') # 源氏の盾 (199330): Reduce physical damage taken by 30% to caster for 3 turns (can not be removed), Reduce magic damage taken by 30% to caster for 3 turns (can not be removed)
elif self.HP < 0.4 and once() and honey == False:
wait() # No action
apple = True # reset next turn
elif self.HP < 0.2 and once():
useSkill(27, 'random') # 理が逆転した (199390): No effect
elif self.HP < 0.2 and once():
useSkill(25, 'random') # 奥義・天下御免 (199370): [Death], Hybrid* damage (5x, ATK & MAG) to all enemies, Instant KO (100%) to all enemies, Remove all buffs and debuffs from all enemies
white = 0
apple = True # reset next turn
elif self.HP > 0.8 and green >= 9 and guava == False and white == 2:
useSkill(19, 'random') # 源氏の兜 (199310): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster, Increase break resistance to ATK and MAG by 50% for 2 turns to caster
guava = True # reset next turn
elif self.HP > 0.8 and green >= 9 and white >= 2:
endTurn()
white = 0
green = 0
elif self.HP > 0.8 and green >= 9:
endTurn()
white += 1
green = 0
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('fire', 'physical') and berry == False:
attack('random')
green += 1
berry = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('fire', 'magical') and berry == False:
attack('random')
green += 1
berry = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('water', 'physical') and peach == False:
attack('random')
green += 1
peach = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('water', 'magical') and peach == False:
attack('random')
green += 1
peach = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('aero', 'physical') and olive == False:
attack('random')
green += 1
olive = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('aero', 'magical') and olive == False:
attack('random')
green += 1
olive = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('quake', 'physical') and mango == False:
attack('random')
green += 1
mango = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('quake', 'magical') and mango == False:
attack('random')
green += 1
mango = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
attack('random')
green += 1
lemon = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
attack('random')
green += 1
lemon = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('fire', 'physical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('fire', 'magical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('water', 'physical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('water', 'magical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('aero', 'physical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('aero', 'magical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('quake', 'physical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('quake', 'magical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.8 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.8 and olive == False:
useSkill(6, 'random') # 竜巻旋風剣 (199180): Hybrid* wind damage (1.8x, ATK & MAG) to one enemy, Inflict Paralyze (100%) on one enemy, Reduce resistance to Fire, Water, Wind, Earth and Light by 80% for 3 turns to one enemy
green += 1
olive = True # reset next turn
elif self.HP > 0.8 and mango == False:
useSkill(7, 'random') # 斬鉄剣 (199190): 90% HP damage to one enemy
green += 1
mango = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and lemon == False:
useSkill(8, 'random') # エクスカリバー (199200): Hybrid* light damage (2.2x, ATK & MAG) to one enemy, Inflict Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and peach == False:
useSkill(5, 'random') # 魔剣マサムネ (199170): Hybrid* water damage (2x, ATK & MAG) to one enemy, Reduce DEF and SPR by 75% for 3 turns to one enemy, Physical water damage (1.2x, ATK) as HP drain (50%) to one enemy
green += 1
peach = True # reset next turn
elif random() <= 0.50 and self.HP > 0.8 and berry == False:
useSkill(4, 'random') # 妖刀ムラマサ (199160): Hybrid* fire damage (2x, ATK & MAG) to one enemy, Reduce ATK and MAG by 75% for 3 turns to one enemy, Physical fire damage (0.3x, ATK) as MP drain (50%) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.8 and berry == False:
useSkill(4, 'random') # 妖刀ムラマサ (199160): Hybrid* fire damage (2x, ATK & MAG) to one enemy, Reduce ATK and MAG by 75% for 3 turns to one enemy, Physical fire damage (0.3x, ATK) as MP drain (50%) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.8 and peach == False:
useSkill(5, 'random') # 魔剣マサムネ (199170): Hybrid* water damage (2x, ATK & MAG) to one enemy, Reduce DEF and SPR by 75% for 3 turns to one enemy, Physical water damage (1.2x, ATK) as HP drain (50%) to one enemy
green += 1
peach = True # reset next turn
elif self.HP > 0.8 and lemon == False:
useSkill(8, 'random') # エクスカリバー (199200): Hybrid* light damage (2.2x, ATK & MAG) to one enemy, Inflict Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.8 and grape == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
green += 1
grape = True # reset next turn
elif self.HP > 0.8 and melon == False and white == 2:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
melon = True # reset next turn
elif random() <= 0.40 and self.HP > 0.8:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
elif random() <= 0.75 and self.HP > 0.8:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.8:
attack('random')
green += 1
elif self.HP > 0.6 and self.HP < 0.8 and green >= 10 and gourd == False and white == 2:
useSkill(19, 'random') # 源氏の兜 (199310): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster, Increase break resistance to ATK and MAG by 50% for 2 turns to caster
gourd = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and green >= 10 and white >= 2:
endTurn()
white = 0
green = 0
elif self.HP > 0.6 and self.HP < 0.8 and green >= 10:
endTurn()
white += 1
green = 0
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('aero', 'physical') and berry == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
berry = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('aero', 'magical') and berry == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
berry = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('aero', 'physical') and var_62 == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
var_62 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('aero', 'magical') and var_62 == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
var_62 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('quake', 'physical') and peach == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
peach = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('quake', 'magical') and peach == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
peach = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('quake', 'physical') and var_63 == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
var_63 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('quake', 'magical') and var_63 == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
var_63 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('fire', 'physical') and olive == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
olive = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('fire', 'magical') and olive == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
olive = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('fire', 'physical') and var_64 == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
var_64 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('fire', 'magical') and var_64 == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
var_64 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('water', 'physical') and mango == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
mango = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('water', 'magical') and mango == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
mango = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('water', 'physical') and var_65 == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
var_65 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('water', 'magical') and var_65 == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
var_65 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
lemon = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
lemon = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('light', 'physical') and var_66 == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
var_66 = True # unknown flag type
elif self.HP > 0.6 and self.HP < 0.8 and self.sufferedDamageLastTurn('light', 'magical') and var_66 == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
var_66 = True # unknown flag type
elif random() <= 0.50 and self.HP > 0.6 and self.HP < 0.8 and green <= 4:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.6 and self.HP < 0.8 and green <= 4:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.6 and self.HP < 0.8 and grape == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
green += 1
grape = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and melon == False and white == 2:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
melon = True # reset next turn
elif self.HP > 0.6 and self.HP < 0.8 and guava == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
green += 1
guava = True # reset next turn
elif random() <= 0.40 and self.HP > 0.6 and self.HP < 0.8:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
elif random() <= 0.75 and self.HP > 0.6 and self.HP < 0.8:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.6 and self.HP < 0.8:
attack('random')
green += 1
elif self.HP > 0.4 and self.HP < 0.6 and green >= 11 and gourd == False and white == 2:
useSkill(19, 'random') # 源氏の兜 (199310): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster, Increase break resistance to ATK and MAG by 50% for 2 turns to caster
gourd = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and green >= 11 and var_64 == False and white == 3:
useSkill(20, 'random') # 源氏の鎧 (199320): Dodge 5 physical attacks for 3 turns to caster
var_64 = True # unknown flag type
elif self.HP > 0.4 and self.HP < 0.6 and green >= 11 and white >= 3:
endTurn()
white = 0
green = 0
elif self.HP > 0.4 and self.HP < 0.6 and green >= 11 and white >= 2:
endTurn()
white += 1
green = 0
elif self.HP > 0.4 and self.HP < 0.6 and green >= 11:
endTurn()
white += 1
green = 0
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('fire', 'physical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('fire', 'magical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('water', 'physical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('water', 'magical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('aero', 'physical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('aero', 'magical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('quake', 'physical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('quake', 'magical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('ice', 'physical') and grape == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
grape = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('ice', 'magical') and grape == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
grape = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('thunder', 'physical') and melon == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
melon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('thunder', 'magical') and melon == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
melon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('dark', 'physical') and guava == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
guava = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and self.sufferedDamageLastTurn('dark', 'magical') and guava == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
guava = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and melon == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
green += 1
melon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and olive == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
green += 1
olive = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and mango == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
green += 1
mango = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
green += 1
guava = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
green += 1
grape = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and peach == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
green += 1
peach = True # reset next turn
elif random() <= 0.50 and self.HP > 0.4 and self.HP < 0.6 and berry == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
green += 1
berry = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and berry == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
green += 1
berry = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and peach == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
green += 1
peach = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
green += 1
grape = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
green += 1
guava = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and mango == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
green += 1
mango = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.6 and var_61 == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
var_61 = True # unknown flag type
green += 1
elif self.HP > 0.4 and self.HP < 0.6 and var_62 == False and white == 2:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_62 = True # unknown flag type
elif self.HP > 0.4 and self.HP < 0.6 and var_63 == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_63 = True # unknown flag type
green += 1
elif random() <= 0.40 and self.HP > 0.4 and self.HP < 0.6:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
elif random() <= 0.75 and self.HP > 0.4 and self.HP < 0.6:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.4 and self.HP < 0.6:
attack('random')
green += 1
elif self.HP > 0.2 and self.HP < 0.4 and green >= 12 and gourd == False and white == 2:
useSkill(19, 'random') # 源氏の兜 (199310): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster, Increase break resistance to ATK and MAG by 50% for 2 turns to caster
gourd = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and green >= 12 and var_73 == False and white == 2:
useSkill(20, 'random') # 源氏の鎧 (199320): Dodge 5 physical attacks for 3 turns to caster
var_73 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and green >= 12 and white >= 2:
endTurn()
white = 0
green = 0
elif self.HP > 0.2 and self.HP < 0.4 and green >= 12:
endTurn()
white += 1
green = 0
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('aero', 'physical') and berry == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
berry = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('aero', 'magical') and berry == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
berry = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('aero', 'physical') and var_62 == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
var_62 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('aero', 'magical') and var_62 == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
var_62 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('quake', 'physical') and peach == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
peach = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('quake', 'magical') and peach == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
peach = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('quake', 'physical') and var_63 == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
var_63 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('quake', 'magical') and var_63 == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
var_63 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('fire', 'physical') and olive == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
olive = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('fire', 'magical') and olive == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
olive = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('fire', 'physical') and var_64 == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
var_64 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('fire', 'magical') and var_64 == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
var_64 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('water', 'physical') and mango == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
mango = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('water', 'magical') and mango == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
mango = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('water', 'physical') and var_65 == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
var_65 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('water', 'magical') and var_65 == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
var_65 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
lemon = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
lemon = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('light', 'physical') and var_66 == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
var_66 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('light', 'magical') and var_66 == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
var_66 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('ice', 'physical') and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
grape = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('ice', 'magical') and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
grape = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('ice', 'physical') and var_67 == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
var_67 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('ice', 'magical') and var_67 == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
var_67 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('thunder', 'physical') and melon == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
melon = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('thunder', 'magical') and melon == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
melon = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('thunder', 'physical') and var_68 == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
var_68 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('thunder', 'magical') and var_68 == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
var_68 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('dark', 'physical') and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
guava = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('dark', 'magical') and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
guava = True # reset next turn
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('dark', 'physical') and var_69 == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
var_69 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and self.sufferedDamageLastTurn('dark', 'magical') and var_69 == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
var_69 = True # unknown flag type
elif random() <= 0.50 and self.HP > 0.2 and self.HP < 0.4 and green <= 5:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.2 and self.HP < 0.4 and green <= 5:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.2 and self.HP < 0.4 and var_70 == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
var_70 = True # unknown flag type
green += 1
elif self.HP > 0.2 and self.HP < 0.4 and var_71 == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_71 = True # unknown flag type
elif self.HP > 0.2 and self.HP < 0.4 and var_72 == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_72 = True # unknown flag type
green += 1
elif random() <= 0.45 and self.HP > 0.2 and self.HP < 0.4:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
elif random() <= 0.75 and self.HP > 0.2 and self.HP < 0.4:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP > 0.2 and self.HP < 0.4:
attack('random')
green += 1
elif self.HP < 0.2 and green >= 12 and gourd == False and white == 1:
useSkill(19, 'random') # 源氏の兜 (199310): Remove ATK, DEF, MAG, SPR, Stop and Charm debuff from caster, Increase break resistance to ATK and MAG by 50% for 2 turns to caster
gourd = True # reset next turn
elif self.HP < 0.2 and green >= 12 and var_65 == False and white == 2:
useSkill(20, 'random') # 源氏の鎧 (199320): Dodge 5 physical attacks for 3 turns to caster
var_65 = True # unknown flag type
elif self.HP < 0.2 and green >= 12 and white >= 2:
endTurn()
white = 0
green = 0
elif self.HP < 0.2 and green >= 12 and white >= 1:
endTurn()
white += 1
green = 0
elif self.HP < 0.2 and green >= 12:
endTurn()
white += 1
green = 0
elif self.HP < 0.2 and self.sufferedDamageLastTurn('fire', 'physical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('fire', 'magical') and berry == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
berry = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('water', 'physical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('water', 'magical') and peach == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('aero', 'physical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('aero', 'magical') and olive == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
olive = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('quake', 'physical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('quake', 'magical') and mango == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
mango = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('light', 'physical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('light', 'magical') and lemon == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('ice', 'physical') and grape == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
grape = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('ice', 'magical') and grape == False:
useSkill(1, 'random') # ツバメ返し (199130): Hybrid* damage (1.9x, ATK & MAG) to one enemy
green += 1
grape = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('thunder', 'physical') and melon == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
melon = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('thunder', 'magical') and melon == False:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
melon = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('dark', 'physical') and guava == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
guava = True # reset next turn
elif self.HP < 0.2 and self.sufferedDamageLastTurn('dark', 'magical') and guava == False:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
guava = True # reset next turn
elif self.HP < 0.2 and melon == False:
useSkill(10, 'random') # 方天画戟 (199220): Hybrid* lightning damage (2x, ATK and 1.5x, MAG) to one enemy, Remove all buffs and debuffs from one enemy
green += 1
melon = True # reset next turn
elif self.HP < 0.2 and olive == False:
useSkill(14, 'random') # 真・竜巻旋風剣 (199260): Hybrid* wind damage (1.8x, ATK & MAG) to all enemies, Inflict Paralyze (100%) on all enemies, Reduce resistance to all elements by 120% for 3 turns to all enemies
green += 1
olive = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and mango == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
green += 1
mango = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
green += 1
guava = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
green += 1
grape = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and peach == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
green += 1
peach = True # reset next turn
elif random() <= 0.50 and self.HP < 0.2 and berry == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
green += 1
berry = True # reset next turn
elif self.HP < 0.2 and berry == False:
useSkill(12, 'random') # 妖刀ムラマサ・真打 (199240): Hybrid* fire damage (2.1x, ATK & MAG) to all enemies, Reduce ATK and MAG by 90% for 3 turns to all enemies, Physical fire damage (0.07x, ATK) as MP drain (50%) to all enemies
green += 1
berry = True # reset next turn
elif self.HP < 0.2 and peach == False:
useSkill(13, 'random') # 魔剣マサムネ・真打 (199250): Hybrid* water damage (2.1x, ATK & MAG) to all enemies, Reduce DEF and SPR by 90% for 3 turns to all enemies, Physical water damage (1.5x, ATK) as HP drain (50%) to all enemies
green += 1
peach = True # reset next turn
elif self.HP < 0.2 and grape == False:
useSkill(9, 'random') # 氷刃ムラサメ (199210): Hybrid* ice damage (1.7x, ATK & MAG) to all enemies, Inflict Silence (100%) on all enemies
green += 1
grape = True # reset next turn
elif self.HP < 0.2 and guava == False:
useSkill(11, 'random') # アポカリプス (199230): Fixed* dark damage (9999) to one enemy
green += 1
guava = True # reset next turn
elif self.HP < 0.2 and lemon == False:
useSkill(16, 'random') # エクスカリバーII (199280): Hybrid* light damage (2.4x, ATK & MAG) to one enemy, Inflict Blind, Paralyze and Confusion (100%) on one enemy
green += 1
lemon = True # reset next turn
elif self.HP < 0.2 and mango == False:
useSkill(15, 'random') # 斬鉄剣・真打 (199270): Instant KO (100%) to one enemy (ignores death resist)
green += 1
mango = True # reset next turn
elif self.HP < 0.2 and var_61 == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
var_61 = True # unknown flag type
green += 1
elif self.HP < 0.2 and var_62 == False:
useSkill(17, 'random') # 源氏の弓 (199290): Hybrid* damage (1.7x, ATK & MAG) to all enemies
var_62 = True # unknown flag type
green += 1
elif self.HP < 0.2 and var_63 == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_63 = True # unknown flag type
elif self.HP < 0.2 and var_64 == False:
useSkill(18, 'random') # 源氏の刀 (199300): Hybrid* damage (1.6x, ATK & MAG) to all enemies
var_64 = True # unknown flag type
green += 1
elif random() <= 0.55 and self.HP < 0.2:
useSkill(3, 'random') # X斬り (199150): Hybrid* damage (1.5x, ATK & MAG) to all enemies
green += 1
elif random() <= 0.75 and self.HP < 0.2:
useSkill(2, 'random') # エクスカリぱ〜 (199140): Hybrid* light damage (1.8x, ATK & MAG) to one enemy
green += 1
elif self.HP < 0.2:
attack('random')
green += 1
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment