Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created November 24, 2018 15:52
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/dc7eb78168a668e459fad21e06c8b5d8 to your computer and use it in GitHub Desktop.
Save aEnigmatic/dc7eb78168a668e459fad21e06c8b5d8 to your computer and use it in GitHub Desktop.
FF5 Raid Challenge
##
# Mission 'FF5レイド強敵' (8580101)
# Enemy has first strike!
#
# Battles
# * すべてをしるもの
##
##
# Monster Info
##
#
# Monster すべてをしるもの (405151000)
# Race Human
# Level 99
# Actions 8-8
#
#
# Stats
# HP 10000000
# MP 100000
# ATK 500
# DEF 350
# MAG 500
# SPR 350
#
#
# 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 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 +
#
###
###
# Passives
###
#
# 物理カウンター(すべてをしるもの) (100067) [Passive]
#
# 100% chance to counter physical attacks with Clever Smile (215040) to the attacker (max 1 / turn)
#
##
#
# 全ステ30% (100030) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 30%
#
##
###
# Skills
###
#
# Protect (173150) [None]
#
# Increase DEF by 25% for 3 turns to one ally
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# シェル (215053) [Magic]
#
# Increase SPR by 25% for 3 turns to one ally
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# リジェネ (215039) [Magic]
#
# Restore 400000 (+1,200x, Heal) HP split over 3 turns to caster
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# リターン (215040) [Magic]
#
# Restore 100% HP to caster
# Remove all buffs and debuffs from caster
# Restore 99999 HP to all enemies
# Restore 9999 MP to all enemies
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# トード (215041) [None]
#
# Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# コンフュ (215042) [Magic]
#
# Inflict Confusion (33%) on one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ブリザラ (215043) [Magic]
#
# Magic ice damage (5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# バイオ (215044) [Magic]
#
# Magic dark damage (4.2x, MAG) to one enemy
# Inflict Poison (70%) on one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ケアルラ (215045) [Magic]
#
# Restore 500000 HP to all allies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ブリザド (215046) [Magic]
#
# Magic ice damage (4.4x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ストップ (215047) [Magic]
#
# Inflict Stop (10%) for 3 turns on all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ファイラ (215048) [Magic]
#
# Magic fire damage (5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# サンダラ (215049) [Magic]
#
# Magic lightning damage (5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Gravity (184420) [Magic]
#
# 50% HP damage to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# ファイア (215050) [Magic]
#
# Magic fire damage (4x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Drain (192340) [Magic]
#
# Magic damage (4x, MAG) as HP drain (20%) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# サイレガ (215051) [Magic]
#
# Inflict Silence (40%) on all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# グラビガ (215035) [Magic]
#
# 30% HP damage to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# メテオ (215054) [Magic]
#
# Magic damage (7x * 2 = 14x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 深遠なる知識 (215052) [None]
#
# Increase MAG and SPR by 40% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == True:
endTurn()
honey = False # persistent
elif once():
useSkill(1, 'random') # Protect (173150): Increase DEF by 25% for 3 turns to one ally
elif once():
useSkill(2, 'random') # シェル (215053): Increase SPR by 25% for 3 turns to one ally
elif once():
useSkill(3, 'random') # リジェネ (215039): Restore 400000 (+1,200x, Heal) HP split over 3 turns to caster
honey = True # persistent
elif self.HP < 0.5 and once():
useSkill(11, 'random') # ストップ (215047): Inflict Stop (10%) for 3 turns on all enemies
elif self.HP < 0.5 and once():
useSkill(17, 'random') # サイレガ (215051): Inflict Silence (40%) on all enemies
elif self.HP < 0.5 and once():
useSkill(9, 'random') # ケアルラ (215045): Restore 500000 HP to all allies
elif self.HP < 0.5 and once():
useSkill(20, 'random') # 深遠なる知識 (215052): Increase MAG and SPR by 40% for 3 turns to caster
ramen = True # persistent
honey = True # persistent
elif ramen == True and once():
useSkill(19, 'random') # メテオ (215054): Magic damage (7x * 2 = 14x, MAG) to all enemies (ignore reflect)
elif ramen == True and once():
useSkill(18, 'random') # グラビガ (215035): 30% HP damage to all enemies
honey = True # persistent
elif self.HP < 0.3 and once():
useSkill(11, 'random') # ストップ (215047): Inflict Stop (10%) for 3 turns on all enemies
elif self.HP < 0.3 and once():
useSkill(17, 'random') # サイレガ (215051): Inflict Silence (40%) on all enemies
sushi = True # persistent
elif random() <= 0.33 and sushi == True and apple == False:
useSkill(7, 'random') # ブリザラ (215043): Magic ice damage (5x, MAG) to all enemies
apple = True # reset next turn
elif random() <= 0.33 and sushi == True and apple == False:
useSkill(12, 'random') # ファイラ (215048): Magic fire damage (5x, MAG) to all enemies
apple = True # reset next turn
elif sushi == True and apple == False:
useSkill(13, 'random') # サンダラ (215049): Magic lightning damage (5x, MAG) to all enemies
apple = True # reset next turn
elif random() <= 0.33 and sushi == True and berry == False:
useSkill(7, 'random') # ブリザラ (215043): Magic ice damage (5x, MAG) to all enemies
berry = True # reset next turn
elif random() <= 0.33 and sushi == True and berry == False:
useSkill(12, 'random') # ファイラ (215048): Magic fire damage (5x, MAG) to all enemies
berry = True # reset next turn
elif sushi == True and berry == False:
useSkill(13, 'random') # サンダラ (215049): Magic lightning damage (5x, MAG) to all enemies
berry = True # reset next turn
elif random() <= 0.33 and sushi == True and guava == False:
useSkill(7, 'random') # ブリザラ (215043): Magic ice damage (5x, MAG) to all enemies
guava = True # reset next turn
elif random() <= 0.33 and sushi == True and guava == False:
useSkill(12, 'random') # ファイラ (215048): Magic fire damage (5x, MAG) to all enemies
guava = True # reset next turn
elif sushi == True and guava == False:
useSkill(13, 'random') # サンダラ (215049): Magic lightning damage (5x, MAG) to all enemies
guava = True # reset next turn
elif random() <= 0.33 and sushi == False and apple == False:
useSkill(7, 'random') # ブリザラ (215043): Magic ice damage (5x, MAG) to all enemies
apple = True # reset next turn
elif random() <= 0.33 and sushi == False and apple == False:
useSkill(12, 'random') # ファイラ (215048): Magic fire damage (5x, MAG) to all enemies
apple = True # reset next turn
elif sushi == False and apple == False:
useSkill(13, 'random') # サンダラ (215049): Magic lightning damage (5x, MAG) to all enemies
apple = True # reset next turn
elif random() <= 0.33 and sushi == False and melon == False:
useSkill(7, 'random') # ブリザラ (215043): Magic ice damage (5x, MAG) to all enemies
melon = True # reset next turn
elif random() <= 0.33 and sushi == False and melon == False:
useSkill(12, 'random') # ファイラ (215048): Magic fire damage (5x, MAG) to all enemies
melon = True # reset next turn
elif sushi == False and melon == False:
useSkill(13, 'random') # サンダラ (215049): Magic lightning damage (5x, MAG) to all enemies
melon = True # reset next turn
elif isTurnMod(3) and grape == False:
useSkill(14, 'random') # Gravity (184420): 50% HP damage to one enemy
grape = True # reset next turn
elif random() <= 0.33 and peach == False:
useSkill(8, 'random') # バイオ (215044): Magic dark damage (4.2x, MAG) to one enemy, Inflict Poison (70%) on one enemy
peach = True # reset next turn
elif random() <= 0.33 and peach == False:
useSkill(10, 'random') # ブリザド (215046): Magic ice damage (4.4x, MAG) to one enemy
peach = True # reset next turn
elif peach == False:
useSkill(15, 'random') # ファイア (215050): Magic fire damage (4x, MAG) to one enemy
peach = True # reset next turn
elif olive == False:
useSkill(16, 'random') # Drain (192340): Magic damage (4x, MAG) as HP drain (20%) to one enemy
olive = True # reset next turn
elif random() <= 0.05 and mango == False:
useSkill(5, 'random') # トード (215041): Reduce ATK, DEF, MAG and SPR by 30% for 3 turns to one enemy
mango = True # reset next turn
elif random() <= 0.05 and lemon == False:
useSkill(6, 'random') # コンフュ (215042): Inflict Confusion (33%) on one enemy
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