Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created December 27, 2019 06:14
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/c9c40735f2815fa4c896784e2d98fb7c to your computer and use it in GitHub Desktop.
Save aEnigmatic/c9c40735f2815fa4c896784e2d98fb7c to your computer and use it in GitHub Desktop.
SBB - Kefka
##
# Mission 'Kefka' (9091103)
# BattleScript: 909110301
#
# Battles
# * Statue of the Gods (Tier 1)
# * Statue of the Gods (Tier 2)
# * Statue of the Gods (Tier 3)
# * Kefka
##
##
# Monster Info
##
#
# Monster Statue of the Gods (Tier 1) (405172000)
# Race Human
# Level 99
# Actions 10-10
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 75000000
# MP 80000
# ATK 1400
# DEF 1000
# MAG 850
# SPR 650
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -25%
# Ice 0%
# Lightning 0%
# Water -25%
# Wind -25%
# Earth 50%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Sapping Strike (216073) [Physical]
#
# Physical damage (9x, ATK) per turn to one enemy for 3 turns
# Unused parameters: [0,0,5]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dread Gaze (216074) [None]
#
# Inflict Petrify (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Magnitude 8 (216075) [Physical]
#
# Physical earth damage (10.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Protect (183090) [Magic]
#
# Increase DEF by 40% for 3 turns to one ally
# Unused parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Quake (216076) [Magic]
#
# Magic earth damage (10x, MAG) to all enemies
# Reduce resistance to Earth by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Razor Gale (216077) [None]
#
# Physical* damage (12.5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Shockwave (216078) [Magic]
#
# Magic damage (12.75x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if green < 1 and apple == False:
useSkill(1, 'random') # Sapping Strike (216073): Physical damage (9x, ATK) per turn to one enemy for 3 turns
apple = True # reset next turn
elif green < 1 and berry == False:
useSkill(2, 'random') # Dread Gaze (216074): Inflict Petrify (100%) on one enemy
berry = True # reset next turn
elif green < 1 and peach == False:
useSkill(4, 'random') # Protect (183090): Increase DEF by 40% for 3 turns to one ally
green += 1
olive = True # reset next turn
peach = True # reset next turn
elif green >= 3 and apple == False:
useSkill(2, 'random') # Dread Gaze (216074): Inflict Petrify (100%) on one enemy
apple = True # reset next turn
elif green >= 3 and berry == False:
useSkill(3, 'random') # Magnitude 8 (216075): Physical earth damage (10.5x, ATK) to all enemies
berry = True # reset next turn
elif green >= 3 and peach == False:
useSkill(1, 'random') # Sapping Strike (216073): Physical damage (9x, ATK) per turn to one enemy for 3 turns
peach = True # reset next turn
elif self.HP < 0.5 and green >= 3 and olive == False:
useSkill(5, 'random') # Quake (216076): Magic earth damage (10x, MAG) to all enemies, Reduce resistance to Earth by 50% for 3 turns to all enemies
olive = True # reset next turn
elif green >= 3 and mango == False:
useSkill(6, 'random') # Razor Gale (216077): Physical* damage (12.5x, ATK) to one enemy
green = 0
mango = True # reset next turn
elif green >= 2 and apple == False:
useSkill(1, 'random') # Sapping Strike (216073): Physical damage (9x, ATK) per turn to one enemy for 3 turns
apple = True # reset next turn
elif green >= 2 and berry == False:
useSkill(1, 'random') # Sapping Strike (216073): Physical damage (9x, ATK) per turn to one enemy for 3 turns
berry = True # reset next turn
elif green >= 2 and peach == False:
useSkill(2, 'random') # Dread Gaze (216074): Inflict Petrify (100%) on one enemy
peach = True # reset next turn
elif green >= 2 and olive == False:
useSkill(2, 'random') # Dread Gaze (216074): Inflict Petrify (100%) on one enemy
olive = True # reset next turn
elif green >= 2 and mango == False:
useSkill(7, 'random') # Shockwave (216078): Magic damage (12.75x, MAG) to one enemy
green += 1
mango = True # reset next turn
elif green >= 1 and apple == False:
useSkill(1, 'random') # Sapping Strike (216073): Physical damage (9x, ATK) per turn to one enemy for 3 turns
apple = True # reset next turn
elif green >= 1 and berry == False:
useSkill(2, 'random') # Dread Gaze (216074): Inflict Petrify (100%) on one enemy
berry = True # reset next turn
elif self.HP < 0.5 and green >= 1 and peach == False:
useSkill(5, 'random') # Quake (216076): Magic earth damage (10x, MAG) to all enemies, Reduce resistance to Earth by 50% for 3 turns to all enemies
peach = True # reset next turn
elif green >= 1 and olive == False:
useSkill(7, 'random') # Shockwave (216078): Magic damage (12.75x, MAG) to one enemy
green += 1
mango = True # reset next turn
olive = True # reset next turn
peach = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Statue of the Gods (Tier 2) (405173000)
# Race Human
# Level 99
# Actions 10-10
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 85000000
# MP 100000
# ATK 1100
# DEF 1050
# MAG 720
# SPR 760
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice -25%
# Lightning -25%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark -25%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Southern Cross (216079) [Magic]
#
# Magic fire damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Northern Cross (216080) [Magic]
#
# Magic ice damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Flare Star (216081) [Magic]
#
# Magic fire damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Zombie Fang (216082) [None]
#
# [Death]
# Instant KO (100%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Diffractive Laser (216083) [Magic]
#
# Magic damage (10x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gravity Bomb (216084) [None]
#
# 50% HP damage to one enemy
# Unknown parameters: [50,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Magitek Laser (216085) [Magic]
#
# Magic lightning damage (10.5x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Missile (216086) [None]
#
# 25% HP damage to one enemy
# Unknown parameters: [25,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Absolute Zero (216087) [Magic]
#
# Magic ice damage (10.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Delta Attack (216088) [None]
#
# Inflict Petrify (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Atomic Rays (216089) [Magic]
#
# Magic fire damage (10.1x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Thundaga (216090) [Magic]
#
# Magic lightning damage (10.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Silence (153730) [Magic]
#
# Inflict Silence (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Holy (216091) [Magic]
#
# Magic light damage (10.5x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Firaga (216092) [Magic]
#
# Magic fire damage (10.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Blizzara (216093) [Magic]
#
# Magic ice damage (9.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Reflect (204840) [Magic]
#
# Reflect all spell(s) for 3 turns to caster
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Stop (181340) [Magic]
#
# Inflict Stop (80%) for 3 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Reraise (216094) [Magic]
#
# Auto-revive (40% HP) for 3 turns to caster
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Blizzaga (216095) [Magic]
#
# Magic ice damage (10.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Sleep (155780) [Magic]
#
# Inflict Sleep (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Confuse (164500) [Magic]
#
# Inflict Confusion (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Poison (216096) [Magic]
#
# Magic dark damage (9x, MAG) to one enemy
# Inflict Poison (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Drain (216097) [Magic]
#
# Fixed* damage (4000) to one enemy
# Restore 1000000 HP to caster
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Dispel (193920) [Magic]
#
# Remove all buffs and debuffs from one enemy
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Graviga (183950) [Magic]
#
# 75% HP damage to all enemies
# Unknown parameters: [75,100]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if self.HP < 0.2 and green < 1 and var_63 == False:
useSkill(4, 'random') # Zombie Fang (216082): [Death], Instant KO (100%) to one enemy
var_63 = True # unknown flag type
elif green < 1 and apple == False:
useSkill(1, 'random') # Southern Cross (216079): Magic fire damage (10x, MAG) to all enemies
apple = True # reset next turn
elif green < 1 and berry == False:
useSkill(5, 'random') # Diffractive Laser (216083): Magic damage (10x, MAG) to all enemies
berry = True # reset next turn
elif green < 1 and peach == False:
useSkill(6, 'random') # Gravity Bomb (216084): 50% HP damage to one enemy
peach = True # reset next turn
elif green < 1 and olive == False:
useSkill(7, 'random') # Magitek Laser (216085): Magic lightning damage (10.5x, MAG) to one enemy
olive = True # reset next turn
elif green < 1 and mango == False:
useSkill(12, 'random') # Thundaga (216090): Magic lightning damage (10.5x, MAG) to all enemies
mango = True # reset next turn
elif random() <= 0.33 and self.HP < 0.5 and green < 1 and grape == False:
useSkill(17, 'random') # Reflect (204840): Reflect all spell(s) for 3 turns to caster
grape = True # reset next turn
elif self.HP < 0.5 and green < 1 and grape == False:
useSkill(18, 'random') # Stop (181340): Inflict Stop (80%) for 3 turns on one enemy
grape = True # reset next turn
elif self.HP > 0.6 and green < 1 and lemon == False:
useSkill(15, 'random') # Firaga (216092): Magic fire damage (10.5x, MAG) to all enemies
green += 1
lemon = True # reset next turn
elif self.HP < 0.6 and green < 1 and lemon == False:
useSkill(16, 'random') # Blizzara (216093): Magic ice damage (9.5x, MAG) to all enemies
green += 1
lemon = True # reset next turn
elif self.HP < 0.2 and green >= 2 and apple == False:
useSkill(4, 'random') # Zombie Fang (216082): [Death], Instant KO (100%) to one enemy
apple = True # reset next turn
elif green >= 2 and berry == False:
useSkill(3, 'random') # Flare Star (216081): Magic fire damage (10x, MAG) to all enemies
berry = True # reset next turn
apple = True # reset next turn
elif green >= 2 and peach == False:
useSkill(10, 'random') # Delta Attack (216088): Inflict Petrify (100%) on one enemy
peach = True # reset next turn
elif green >= 2 and olive == False:
useSkill(6, 'random') # Gravity Bomb (216084): 50% HP damage to one enemy
olive = True # reset next turn
elif self.HP > 0.5 and green >= 2 and mango == False:
useSkill(11, 'random') # Atomic Rays (216089): Magic fire damage (10.1x, MAG) to all enemies
mango = True # reset next turn
elif self.HP < 0.5 and green >= 2 and mango == False:
useSkill(9, 'random') # Absolute Zero (216087): Magic ice damage (10.5x, MAG) to all enemies
mango = True # reset next turn
elif green >= 2 and lemon == False:
useSkill(21, 'random') # Sleep (155780): Inflict Sleep (100%) on one enemy
lemon = True # reset next turn
elif green >= 2 and grape == False:
useSkill(23, 'random') # Poison (216096): Magic dark damage (9x, MAG) to one enemy, Inflict Poison (100%) on one enemy
grape = True # reset next turn
elif green >= 2 and melon == False:
useSkill(24, 'random') # Drain (216097): Fixed* damage (4000) to one enemy, Restore 1000000 HP to caster
melon = True # reset next turn
elif random() <= 0.05 and green >= 2 and gourd == False:
useSkill(25, 'random') # Dispel (193920): Remove all buffs and debuffs from one enemy
gourd = True # reset next turn
elif self.HP < 0.1 and isTurnMod(2) and var_61 == False:
useSkill(26, 'random') # Graviga (183950): 75% HP damage to all enemies
var_61 = True # unknown flag type
elif green >= 2 and guava == False:
useSkill(22, 'random') # Confuse (164500): Inflict Confusion (100%) on one enemy
green = 0
guava = True # reset next turn
elif green >= 1 and apple == False:
useSkill(2, 'random') # Northern Cross (216080): Magic ice damage (10x, MAG) to all enemies
grape = True # reset next turn
apple = True # reset next turn
elif green >= 1 and berry == False:
useSkill(5, 'random') # Diffractive Laser (216083): Magic damage (10x, MAG) to all enemies
berry = True # reset next turn
elif self.HP > 0.5 and green >= 1 and olive == False:
useSkill(11, 'random') # Atomic Rays (216089): Magic fire damage (10.1x, MAG) to all enemies
olive = True # reset next turn
elif random() <= 0.50 and self.HP < 0.5 and green >= 1 and olive == False:
useSkill(9, 'random') # Absolute Zero (216087): Magic ice damage (10.5x, MAG) to all enemies
olive = True # reset next turn
elif self.HP < 0.5 and green >= 1 and olive == False:
useSkill(20, 'random') # Blizzaga (216095): Magic ice damage (10.5x, MAG) to all enemies
olive = True # reset next turn
elif self.HP > 0.6 and green >= 1 and mango == False:
useSkill(15, 'random') # Firaga (216092): Magic fire damage (10.5x, MAG) to all enemies
mango = True # reset next turn
elif self.HP < 0.6 and green >= 1 and mango == False:
useSkill(12, 'random') # Thundaga (216090): Magic lightning damage (10.5x, MAG) to all enemies
mango = True # reset next turn
elif self.HP < 0.3 and green >= 1 and lemon == False:
useSkill(14, 'random') # Holy (216091): Magic light damage (10.5x, MAG) to one enemy
lemon = True # reset next turn
elif green >= 1 and peach == False:
useSkill(8, 'random') # Missile (216086): 25% HP damage to one enemy
green += 1
gourd = True # reset next turn
guava = True # reset next turn
melon = True # reset next turn
lemon = True # reset next turn
peach = True # reset next turn
elif random() <= 0.03 and var_62 == False:
useSkill(13, 'random') # Silence (153730): Inflict Silence (100%) on one enemy
var_62 = True # unknown flag type
else:
attack('random')
##
# Monster Info
##
#
# Monster Statue of the Gods (Tier 3) (405174000)
# Race Human
# Level 99
# Actions 10-10
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 68000000
# MP 100000
# ATK 1400
# DEF 1100
# MAG 920
# SPR 810
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 25%
# Ice 25%
# Lightning 25%
# Water 25%
# Wind 25%
# Earth 25%
# Light 25%
# Dark 25%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# White Wind (216098) [Magic]
#
# Restore 5000000 HP to all allies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Repose (216099) [None]
#
# Inflict Sleep (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Repose (216100) [None]
#
# Inflict Sleep (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Meteor (216101) [Magic]
#
# Magic damage (10.15x * 1.33 = 13.53x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tornado (216102) [Magic]
#
# Magic wind damage (10x, MAG) to all enemies
# Reduce resistance to Wind by 40% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Meltdown (216103) [Magic]
#
# Magic fire damage (10.15x * 1.33 = 13.53x, MAG) to all enemies (ignore reflect)
# Reduce resistance to Fire by 40% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Trine (216104) [None]
#
# Inflict Blind and Silence (100%) on all enemies
# Unknown parameters: [1]
# Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if self.HP < 0.8 and once() and apple == False:
useSkill(7, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.6 and once() and apple == False:
useSkill(7, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.4 and once() and apple == False:
useSkill(7, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.2 and once() and apple == False:
useSkill(7, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
apple = True # reset next turn
elif self.HP < 0.5 and once():
wait() # No action
ramen = True # persistent
elif ramen == True and isTurnMod(2) and berry == False:
useSkill(4, 'random') # Meteor (216101): Magic damage (10.15x * 1.33 = 13.53x, MAG) to all enemies (ignore reflect)
berry = True # reset next turn
elif isTurnMod(2) and peach == False:
useSkill(2, 'random') # Repose (216099): Inflict Sleep (100%) on one enemy
peach = True # reset next turn
elif olive == False:
useSkill(1, 'random') # White Wind (216098): Restore 5000000 HP to all allies
olive = True # reset next turn
elif mango == False:
useSkill(5, 'random') # Tornado (216102): Magic wind damage (10x, MAG) to all enemies, Reduce resistance to Wind by 40% for 3 turns to all enemies
mango = True # reset next turn
elif lemon == False:
useSkill(6, 'random') # Meltdown (216103): Magic fire damage (10.15x * 1.33 = 13.53x, MAG) to all enemies (ignore reflect), Reduce resistance to Fire by 40% for 3 turns to all enemies
lemon = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Kefka (405171000)
# Race Human
# Level 99
# Actions 11-11
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 250000000
# MP 150000
# ATK 1200
# DEF 1350
# MAG 730
# SPR 1280
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
#
# ケフカ (100077) [Passive]
#
# 100% chance to counter physical attacks with Hyperdrive (216113) to the attacker (max 2 / turn)
# 100% chance to counter magic attacks with Hyperdrive (216113) to the attacker (max 2 / turn)
#
##
###
# Skills
###
#
# Heartless Angel (216105) [None]
#
# Damage equal to remaining HP - 1 (min 1) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Havoc Wing (216106) [Physical]
#
# Physical damage (18x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Firaga (216107) [Magic]
#
# Magic fire damage (11.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Trine (216104) [None]
#
# Inflict Blind and Silence (100%) on all enemies
# Unknown parameters: [1]
# Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Blizzaga (216108) [Magic]
#
# Magic ice damage (11.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Thundaga (216109) [Magic]
#
# Magic lightning damage (11.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# The end draws near... (216110) [None]
#
# Increase ATK and MAG by 5% for 99999 turns to caster (can not be removed)
# Unused parameters: [1]
# Reduce physical damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Forsaken (216111) [Magic]
#
# Magic damage (50x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Vengeance (216112) [None]
#
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hyperdrive (216113) [None]
#
# Magic* damage (2.75x, MAG) to one enemy
# Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
# Unused parameters: [0,0,4]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultima (216114) [Magic]
#
# Magic damage (9.5x * 1.33 = 12.67x, MAG) to all enemies (ignore reflect)
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Meteor (216115) [Magic]
#
# Magic damage (9.5x * 1.33 = 12.67x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Light of Judgment (216116) [None]
#
# Magic* damage (10.8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultimate Embrace (216117) [Physical]
#
# Physical damage (2.8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dancing Mad (216118) [None]
#
# Physical* damage (10.5x, ATK) to all enemies
# Physical* damage (2.3x, ATK) per turn to all enemies for 3 turns
# Unused parameters: [0,0,5]
# Inflict Confusion (100%) on all enemies
# Unknown parameters: [1]
# Increase DEF and SPR by 50% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Downfall (216119) [None]
#
# Fixed damage (500) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The end draws near... (216167) [None]
#
# Increase ATK and MAG by 15% for 99999 turns to caster (can not be removed)
# Unused parameters: [1]
# Reduce physical damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 50% to caster for one turn (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == True:
endTurn()
honey = False # persistent
elif self.HP < 0.3 and once() and apple == False:
useSkill(17, 'random') # The end draws near... (216167): Increase ATK and MAG by 15% for 99999 turns to caster (can not be removed), Reduce physical damage taken by 50% to caster for one turn (can not be removed), Reduce magic damage taken by 50% to caster for one turn (can not be removed)
apple = True # reset next turn
sushi = True # persistent
honey = True # persistent
elif self.HP < 0.3 and once():
useSkill(15, 'random') # Dancing Mad (216118): Physical* damage (10.5x, ATK) to all enemies, Physical* damage (2.3x, ATK) per turn to all enemies for 3 turns, Inflict Confusion (100%) on all enemies, Increase DEF and SPR by 50% for 3 turns to caster
steak = True # persistent
honey = True # persistent
elif self.HP < 0.4 and sushi == False and once():
useSkill(1, 'random') # Heartless Angel (216105): Damage equal to remaining HP - 1 (min 1) to all enemies
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
wait() # No action
elif self.HP < 0.4 and sushi == False and once():
useSkill(16, 'highest ATK') # Downfall (216119): Fixed damage (500) to one enemy
elif self.HP < 0.4 and sushi == False and once():
useSkill(16, 'highest MAG') # Downfall (216119): Fixed damage (500) to one enemy
elif self.HP < 0.4 and sushi == False and once():
useSkill(16, 'highest DEF') # Downfall (216119): Fixed damage (500) to one enemy
honey = True # persistent
elif self.HP < 0.5 and once():
useSkill(7, 'random') # The end draws near... (216110): Increase ATK and MAG by 5% for 99999 turns to caster (can not be removed), Reduce physical damage taken by 50% to caster for one turn (can not be removed), Reduce magic damage taken by 50% to caster for one turn (can not be removed)
bacon = True # persistent
ramen = True # persistent
honey = True # persistent
elif ramen == True and once():
useSkill(8, 'random') # Forsaken (216111): Magic damage (50x, MAG) to all enemies
elif ramen == True and once():
useSkill(9, 'random') # Vengeance (216112): Remove all buffs and debuffs from all enemies
honey = True # persistent
elif self.HP < 0.6 and bacon == False and once():
useSkill(1, 'random') # Heartless Angel (216105): Damage equal to remaining HP - 1 (min 1) to all enemies
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
wait() # No action
elif self.HP < 0.6 and bacon == False and once():
useSkill(16, 'highest ATK') # Downfall (216119): Fixed damage (500) to one enemy
elif self.HP < 0.6 and bacon == False and once():
useSkill(16, 'highest MAG') # Downfall (216119): Fixed damage (500) to one enemy
bacon = True # persistent
honey = True # persistent
elif self.HP < 0.8 and bacon == False and once():
useSkill(1, 'random') # Heartless Angel (216105): Damage equal to remaining HP - 1 (min 1) to all enemies
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
wait() # No action
elif self.HP < 0.8 and bacon == False and once():
useSkill(16, 'highest ATK') # Downfall (216119): Fixed damage (500) to one enemy
honey = True # persistent
elif once():
useSkill(1, 'random') # Heartless Angel (216105): Damage equal to remaining HP - 1 (min 1) to all enemies
honey = True # persistent
elif random() <= 0.50 and ramen == True and isTurnMod(3) and apple == False:
useSkill(13, 'random') # Light of Judgment (216116): Magic* damage (10.8x, MAG) to all enemies
apple = True # reset next turn
elif ramen == True and isTurnMod(3) and apple == False:
useSkill(15, 'random') # Dancing Mad (216118): Physical* damage (10.5x, ATK) to all enemies, Physical* damage (2.3x, ATK) per turn to all enemies for 3 turns, Inflict Confusion (100%) on all enemies, Increase DEF and SPR by 50% for 3 turns to caster
apple = True # reset next turn
elif ramen == True and isTurnMod(2) and berry == False:
useSkill(4, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
berry = True # reset next turn
elif random() <= 0.33 and ramen == True and isTurnMod(2) and peach == False:
useSkill(3, 'random') # Firaga (216107): Magic fire damage (11.5x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.50 and ramen == True and isTurnMod(2) and peach == False:
useSkill(5, 'random') # Blizzaga (216108): Magic ice damage (11.5x, MAG) to all enemies
peach = True # reset next turn
elif ramen == True and isTurnMod(2) and peach == False:
useSkill(6, 'random') # Thundaga (216109): Magic lightning damage (11.5x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.50 and ramen == True and isTurnMod(2) and olive == False:
useSkill(11, 'random') # Ultima (216114): Magic damage (9.5x * 1.33 = 12.67x, MAG) to all enemies (ignore reflect)
olive = True # reset next turn
elif ramen == True and isTurnMod(2) and olive == False:
useSkill(12, 'random') # Meteor (216115): Magic damage (9.5x * 1.33 = 12.67x, MAG) to all enemies (ignore reflect)
olive = True # reset next turn
elif ramen == True and mango == False:
useSkill(2, 'random') # Havoc Wing (216106): Physical damage (18x, ATK) to one enemy
mango = True # reset next turn
elif random() <= 0.05 and ramen == True and lemon == False:
useSkill(2, 'random') # Havoc Wing (216106): Physical damage (18x, ATK) to one enemy
lemon = True # reset next turn
elif ramen == True and steak == True and var_63 == False:
useSkill(13, 'random') # Light of Judgment (216116): Magic* damage (10.8x, MAG) to all enemies
var_63 = True # unknown flag type
elif ramen == False and isTurnMod(2) and apple == False:
useSkill(4, 'random') # Trine (216104): Inflict Blind and Silence (100%) on all enemies, Reduce ATK, DEF, MAG and SPR by 40% for 3 turns to all enemies
apple = True # reset next turn
elif random() <= 0.33 and ramen == False and isTurnMod(2) and berry == False:
useSkill(3, 'random') # Firaga (216107): Magic fire damage (11.5x, MAG) to all enemies
berry = True # reset next turn
elif random() <= 0.50 and ramen == False and isTurnMod(2) and berry == False:
useSkill(5, 'random') # Blizzaga (216108): Magic ice damage (11.5x, MAG) to all enemies
berry = True # reset next turn
elif ramen == False and isTurnMod(2) and berry == False:
useSkill(6, 'random') # Thundaga (216109): Magic lightning damage (11.5x, MAG) to all enemies
berry = True # reset next turn
elif ramen == False and isTurnMod(3) and peach == False:
useSkill(13, 'random') # Light of Judgment (216116): Magic* damage (10.8x, MAG) to all enemies
peach = True # reset next turn
elif ramen == False and olive == False:
useSkill(2, 'random') # Havoc Wing (216106): Physical damage (18x, ATK) to one enemy
olive = True # reset next turn
elif ramen == True and isTurnMod(2) and gourd == False:
useSkill(14, 'random') # Ultimate Embrace (216117): Physical damage (2.8x, ATK) to all enemies
gourd = True # reset next turn
elif ramen == True and grape == False:
useSkill(10, 'random') # Hyperdrive (216113): Magic* damage (2.75x, MAG) to one enemy, Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
grape = True # reset next turn
elif ramen == True and var_62 == False:
useSkill(10, 'random') # Hyperdrive (216113): Magic* damage (2.75x, MAG) to one enemy, Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
var_62 = True # unknown flag type
elif melon == False:
useSkill(10, 'random') # Hyperdrive (216113): Magic* damage (2.75x, MAG) to one enemy, Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
melon = True # reset next turn
elif guava == False:
useSkill(10, 'random') # Hyperdrive (216113): Magic* damage (2.75x, MAG) to one enemy, Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
guava = True # reset next turn
elif var_61 == False:
useSkill(10, 'random') # Hyperdrive (216113): Magic* damage (2.75x, MAG) to one enemy, Magic* damage (2.5x, MAG) per turn to one enemy for 3 turns
var_61 = True # unknown flag type
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment