Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created July 29, 2019 11:46
Show Gist options
  • Save aEnigmatic/808839c17641ff9792918bbc3a2ea696 to your computer and use it in GitHub Desktop.
Save aEnigmatic/808839c17641ff9792918bbc3a2ea696 to your computer and use it in GitHub Desktop.
SSB Ultima Weapon
##
# Mission 'アルテマウェポン破壊作戦' (9091110)
# BattleScript: 909111001
#
# Battles
# * アルテマウェポン
# * アルテマウェポン
##
##
# Monster Info
##
#
# Monster アルテマウェポン (406251000)
# Race Dragon
# Level 99
# Actions 80-80
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 180000000
# MP 100000
# ATK 1900
# DEF 3000
# MAG 1400
# SPR 2650
#
#
# 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
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# セルレアムベント (216899) [Magic]
#
# Magic damage (3x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# バルカンバースト (216900) [Physical]
#
# Physical damage (5.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔導フレア (216901) [Magic]
#
# Magic damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 吸着爆雷 (216902) [None]
#
# Reduce DEF and SPR by 15% for 2 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 爆雷起爆 (216903) [None]
#
# [Death]
# Instant KO (100%) to one enemy
# Unknown parameters: [1,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 誘導レーザー (216904) [Magic]
#
# Magic damage (1.7x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔導レーザー (216905) [Magic]
#
# Magic damage (1.5x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 拡散レーザー (216906) [Magic]
#
# Magic damage (4x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ミストラルソング (216907) [Magic]
#
# Magic wind damage (3.5x, MAG) to all enemies
# Reduce resistance to Wind by 60% for 5 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アイ・オブ・ストーム (216908) [Magic]
#
# Magic wind damage (4.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ジオクラッシュ (216909) [Physical]
#
# Physical earth damage (5.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 光輝の炎柱 (216910) [Magic]
#
# Magic fire damage (2x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 大地の重み (216911) [Physical]
#
# Physical earth damage (3.5x, ATK) to all enemies
# Reduce resistance to Earth by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# クリムゾンサイクロン (216912) [Magic]
#
# Magic fire damage (6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エーテル波動 (216913) [None]
#
# Inflict Stop (100%) for one turn on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 融合爆発 (216914) [Physical]
#
# 15% HP damage to all enemies
# Unknown parameters: [30,100,1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アルテマ詠唱 (216915) [None]
#
# Reduce physical damage taken by 65% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 50% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔力が集中していく…… (216916) [None]
#
# Reduce physical damage taken by 70% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 55% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔力が集中していく! (216917) [None]
#
# Reduce physical damage taken by 75% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 60% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 膨大な魔力が集中していく! (216918) [None]
#
# Reduce physical damage taken by 80% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 65% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アルテマ (216919) [None]
#
# Instant KO (100%) to all enemies (ignores death resist)
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if unit('1:ally:any').HP < 0.45 and green >= 8 and isTurnMod(4) and var_61 == False:
useSkill(3, 'random') # 魔導フレア (216901): Magic damage (3.5x, MAG) to all enemies
var_61 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.85 and green >= 8:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.85 and green >= 8:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.85 and green >= 8:
useSkill(9, 'random') # ミストラルソング (216907): Magic wind damage (3.5x, MAG) to all enemies, Reduce resistance to Wind by 60% for 5 turns to all enemies
var_62 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.85 and green >= 8:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.85 and green >= 8:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
useSkill(10, 'random') # アイ・オブ・ストーム (216908): Magic wind damage (4.5x, MAG) to all enemies
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
useSkill(11, 'random') # ジオクラッシュ (216909): Physical earth damage (5.5x, ATK) to all enemies
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.65 and green >= 8 and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.45 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.45 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.45 and green >= 8 and var_62 == False:
useSkill(14, 'random') # クリムゾンサイクロン (216912): Magic fire damage (6x, MAG) to all enemies
elif once() and unit('1:ally:any').HP < 0.45 and green >= 8 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.45 and green >= 8 and var_62 == False:
wait() # No action
elif green >= 8 and white >= 5 and var_63 == True:
endTurn()
green = 0
ramen = False # persistent
honey = True # persistent
elif green >= 8 and var_63 == True:
endTurn()
green = 0
ramen = False # persistent
elif green >= 8 and white >= 5:
endTurn()
green = 0
honey = True # persistent
elif green >= 8:
endTurn()
green = 0
elif unit('5:enemy:any').hasDebuff('SPR') and honey == True and apple == False:
useSkill(5, 'stdown_buff:6') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif unit('5:enemy:any').hasDebuff('DEF') and honey == True and apple == False:
useSkill(5, 'stdown_buff:4') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif honey == True and apple == False:
useSkill(5, 'random') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif apple == False:
useSkill(4, 'random') # 吸着爆雷 (216902): Reduce DEF and SPR by 15% for 2 turns to one enemy
white += 1
apple = True # reset next turn
elif random() <= 0.33 and unit('7:enemy:1').is('dead') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif random() <= 0.33 and unit('7:enemy:1').hasStatus('Petrify') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif random() <= 0.33 and conditionNotImplemented('outside_field:0') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif unit('7:enemy:4').is('dead') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif unit('7:enemy:4').hasStatus('Petrify') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif conditionNotImplemented('outside_field:0') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif random() <= 0.33 and unit('7:enemy:1').is('alive') and conditionNotImplemented('outside_field:1') and bacon == False and green < 3 and steak == False and salad == False:
useSkill(7, 'slot:1') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
bacon = True # persistent
elif bacon == True and green < 3 and steak == False and salad == False:
useSkill(7, 'slot:4') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
green += 1
bacon = False # persistent
elif random() <= 0.50 and unit('7:enemy:2').is('dead') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif random() <= 0.50 and unit('7:enemy:2').hasStatus('Petrify') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif random() <= 0.50 and conditionNotImplemented('outside_field:0') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif unit('7:enemy:5').is('dead') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif unit('7:enemy:5').hasStatus('Petrify') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif conditionNotImplemented('outside_field:0') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif random() <= 0.50 and unit('7:enemy:2').is('alive') and conditionNotImplemented('outside_field:1') and steak == False and green < 3 and bacon == False and salad == False:
useSkill(7, 'slot:2') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
steak = True # persistent
elif steak == True and green < 3 and bacon == False and salad == False:
useSkill(7, 'slot:5') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
green += 1
steak = False # persistent
elif unit('7:enemy:3').is('dead') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif unit('7:enemy:3').hasStatus('Petrify') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif conditionNotImplemented('outside_field:0') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif unit('7:enemy:6').is('dead') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif unit('7:enemy:6').hasStatus('Petrify') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif conditionNotImplemented('outside_field:0') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif unit('7:enemy:3').is('alive') and conditionNotImplemented('outside_field:1') and salad == False and green < 3 and bacon == False and steak == False:
useSkill(7, 'slot:3') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
salad = True # persistent
elif salad == True and green < 3 and bacon == False and steak == False:
useSkill(7, 'slot:6') # 魔導レーザー (216905): Magic damage (1.5x, MAG) to one enemy
green += 1
salad = False # persistent
elif isTurnMod(2) and peach == False:
useSkill(1, 'random') # セルレアムベント (216899): Magic damage (3x, MAG) to all enemies
green += 1
peach = True # reset next turn
elif isTurnMod(3) and olive == False:
useSkill(2, 'random') # バルカンバースト (216900): Physical damage (5.5x, ATK) to all enemies
green += 1
olive = True # reset next turn
elif random() <= 0.45 and unit('7:enemy:1').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and unit('7:enemy:1').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
useSkill(12, 'slot:1') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
mango = True # reset next turn
elif unit('7:enemy:2').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif unit('7:enemy:2').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
useSkill(12, 'slot:2') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
lemon = True # reset next turn
elif unit('7:enemy:3').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:3').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
useSkill(12, 'slot:3') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
grape = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:4').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif unit('7:enemy:4').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
useSkill(12, 'slot:4') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
melon = True # reset next turn
elif unit('7:enemy:5').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif unit('7:enemy:5').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
useSkill(12, 'slot:5') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
guava = True # reset next turn
elif unit('7:enemy:6').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:6').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
useSkill(12, 'slot:6') # 光輝の炎柱 (216910): Magic fire damage (2x, MAG) to one enemy
gourd = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == True and var_63 == False and mango == False and melon == False:
useSkill(13, 'random') # 大地の重み (216911): Physical earth damage (3.5x, ATK) to all enemies, Reduce resistance to Earth by 50% for 3 turns to all enemies
var_63 = True # unknown flag type
else:
attack('random')
green += 1
##
# Monster Info
##
#
# Monster アルテマウェポン (406251100)
# Race Dragon
# Level 99
# Actions 80-80
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 230000000
# MP 100000
# ATK 2100
# DEF 4300
# MAG 1600
# SPR 4000
#
#
# 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
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# セルレアムベント (216920) [Magic]
#
# Magic damage (3.2x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# バルカンバースト (216921) [Physical]
#
# Physical damage (6x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔導フレア (216922) [Magic]
#
# Magic damage (3.6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 吸着爆雷 (216902) [None]
#
# Reduce DEF and SPR by 15% for 2 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 爆雷起爆 (216903) [None]
#
# [Death]
# Instant KO (100%) to one enemy
# Unknown parameters: [1,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 誘導レーザー (216904) [Magic]
#
# Magic damage (1.7x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔導レーザー (216923) [Magic]
#
# Magic damage (1.65x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 拡散レーザー (216906) [Magic]
#
# Magic damage (4x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ミストラルソング (216907) [Magic]
#
# Magic wind damage (3.5x, MAG) to all enemies
# Reduce resistance to Wind by 60% for 5 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アイ・オブ・ストーム (216908) [Magic]
#
# Magic wind damage (4.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ジオクラッシュ (216909) [Physical]
#
# Physical earth damage (5.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 光輝の炎柱 (216924) [Magic]
#
# Magic fire damage (2.2x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 大地の重み (216925) [Physical]
#
# Physical earth damage (3.7x, ATK) to all enemies
# Reduce resistance to Earth by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# クリムゾンサイクロン (216912) [Magic]
#
# Magic fire damage (6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エーテル波動 (216913) [None]
#
# Inflict Stop (100%) for one turn on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 融合爆発 (216914) [Physical]
#
# 15% HP damage to all enemies
# Unknown parameters: [30,100,1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アルテマ詠唱 (216915) [None]
#
# Reduce physical damage taken by 65% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 50% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔力が集中していく…… (216916) [None]
#
# Reduce physical damage taken by 70% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 55% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 魔力が集中していく! (216917) [None]
#
# Reduce physical damage taken by 75% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 60% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 膨大な魔力が集中していく! (216918) [None]
#
# Reduce physical damage taken by 80% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
# Reduce magic damage taken by 65% to caster for 999 turns (can not be removed)
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アルテマ (216919) [None]
#
# Instant KO (100%) to all enemies (ignores death resist)
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if var_70 == True:
endTurn()
elif once() and unit('1:ally:any').HP < 0.2:
useSkill(17, 'random') # アルテマ詠唱 (216915): Reduce physical damage taken by 65% to caster for 999 turns (can not be removed), Reduce magic damage taken by 50% to caster for 999 turns (can not be removed)
var_70 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.2:
useSkill(18, 'random') # 魔力が集中していく…… (216916): Reduce physical damage taken by 70% to caster for 999 turns (can not be removed), Reduce magic damage taken by 55% to caster for 999 turns (can not be removed)
var_70 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.2:
useSkill(19, 'random') # 魔力が集中していく! (216917): Reduce physical damage taken by 75% to caster for 999 turns (can not be removed), Reduce magic damage taken by 60% to caster for 999 turns (can not be removed)
var_70 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.2:
useSkill(20, 'random') # 膨大な魔力が集中していく! (216918): Reduce physical damage taken by 80% to caster for 999 turns (can not be removed), Reduce magic damage taken by 65% to caster for 999 turns (can not be removed)
var_70 = True # unknown flag type
elif unit('1:ally:any').HP < 0.2:
useSkill(21, 'random') # アルテマ (216919): Instant KO (100%) to all enemies (ignores death resist), Remove all buffs and debuffs from all enemies
var_70 = True # unknown flag type
elif green >= 10 and isTurnMod(3) and var_61 == False:
useSkill(3, 'random') # 魔導フレア (216922): Magic damage (3.6x, MAG) to all enemies
var_61 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.8 and green >= 10:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.8 and green >= 10:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.8 and green >= 10:
useSkill(16, 'random') # 融合爆発 (216914): 15% HP damage to all enemies
elif once() and unit('1:ally:any').HP < 0.8 and green >= 10:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.8 and green >= 10:
wait() # No action
var_62 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.6 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.6 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.6 and green >= 10 and var_62 == False:
useSkill(16, 'random') # 融合爆発 (216914): 15% HP damage to all enemies
elif once() and unit('1:ally:any').HP < 0.6 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.6 and green >= 10 and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
elif once() and unit('1:ally:any').HP < 0.4 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.4 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.4 and green >= 10 and var_62 == False:
useSkill(16, 'random') # 融合爆発 (216914): 15% HP damage to all enemies
elif once() and unit('1:ally:any').HP < 0.4 and green >= 10 and var_62 == False:
wait() # No action
elif once() and unit('1:ally:any').HP < 0.4 and green >= 10 and var_62 == False:
wait() # No action
elif unit('1:ally:any').HP < 0.6 and green >= 10 and var_69 == False and isTurnMod(5):
useSkill(15, 'random') # エーテル波動 (216913): Inflict Stop (100%) for one turn on all enemies
var_69 = True # unknown flag type
elif green >= 10 and white >= 5 and var_63 == True:
endTurn()
green = 0
ramen = False # persistent
honey = True # persistent
elif green >= 10 and var_63 == True:
endTurn()
green = 0
ramen = False # persistent
elif green >= 10 and white >= 5:
endTurn()
green = 0
honey = True # persistent
elif green >= 10:
endTurn()
green = 0
elif unit('5:enemy:any').hasDebuff('SPR') and honey == True and apple == False:
useSkill(5, 'stdown_buff:6') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif unit('5:enemy:any').hasDebuff('DEF') and honey == True and apple == False:
useSkill(5, 'stdown_buff:4') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif honey == True and apple == False:
useSkill(5, 'random') # 爆雷起爆 (216903): [Death], Instant KO (100%) to one enemy
white = 0
apple = True # reset next turn
honey = False # persistent
elif apple == False:
useSkill(4, 'random') # 吸着爆雷 (216902): Reduce DEF and SPR by 15% for 2 turns to one enemy
white += 1
apple = True # reset next turn
elif random() <= 0.33 and unit('7:enemy:1').is('dead') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif random() <= 0.33 and unit('7:enemy:1').hasStatus('Petrify') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif random() <= 0.33 and conditionNotImplemented('outside_field:0') and bacon == False and green < 3 and steak == False and salad == False:
wait() # No action
bacon = True # persistent
elif unit('7:enemy:4').is('dead') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif unit('7:enemy:4').hasStatus('Petrify') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif conditionNotImplemented('outside_field:0') and bacon == True and green < 3 and steak == False and salad == False:
wait() # No action
green += 1
bacon = False # persistent
elif random() <= 0.33 and unit('7:enemy:1').is('alive') and conditionNotImplemented('outside_field:1') and bacon == False and green < 3 and steak == False and salad == False:
useSkill(7, 'slot:1') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
bacon = True # persistent
elif bacon == True and green < 3 and steak == False and salad == False:
useSkill(7, 'slot:4') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
green += 1
bacon = False # persistent
elif random() <= 0.50 and unit('7:enemy:2').is('dead') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif random() <= 0.50 and unit('7:enemy:2').hasStatus('Petrify') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif random() <= 0.50 and conditionNotImplemented('outside_field:0') and steak == False and green < 3 and bacon == False and salad == False:
wait() # No action
steak = True # persistent
elif unit('7:enemy:5').is('dead') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif unit('7:enemy:5').hasStatus('Petrify') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif conditionNotImplemented('outside_field:0') and steak == True and green < 3 and bacon == False and salad == False:
wait() # No action
green += 1
steak = False # persistent
elif random() <= 0.50 and unit('7:enemy:2').is('alive') and conditionNotImplemented('outside_field:1') and steak == False and green < 3 and bacon == False and salad == False:
useSkill(7, 'slot:2') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
steak = True # persistent
elif steak == True and green < 3 and bacon == False and salad == False:
useSkill(7, 'slot:5') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
green += 1
steak = False # persistent
elif unit('7:enemy:3').is('dead') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif unit('7:enemy:3').hasStatus('Petrify') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif conditionNotImplemented('outside_field:0') and salad == False and green < 3 and bacon == False and steak == False:
wait() # No action
salad = True # persistent
elif unit('7:enemy:6').is('dead') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif unit('7:enemy:6').hasStatus('Petrify') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif conditionNotImplemented('outside_field:0') and salad == True and green < 3 and bacon == False and steak == False:
wait() # No action
green += 1
salad = False # persistent
elif unit('7:enemy:3').is('alive') and conditionNotImplemented('outside_field:1') and salad == False and green < 3 and bacon == False and steak == False:
useSkill(7, 'slot:3') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
salad = True # persistent
elif salad == True and green < 3 and bacon == False and steak == False:
useSkill(7, 'slot:6') # 魔導レーザー (216923): Magic damage (1.65x, MAG) to one enemy
green += 1
salad = False # persistent
elif unit('1:ally:any').HP < 0.6 and isTurnMod(5) and var_67 == False:
useSkill(8, 'random') # 拡散レーザー (216906): Magic damage (4x, MAG) to one enemy
var_67 = True # unknown flag type
elif isTurnMod(2) and var_61 == False:
useSkill(1, 'random') # セルレアムベント (216920): Magic damage (3.2x, MAG) to all enemies
var_61 = True # unknown flag type
elif isTurnMod(4) and olive == False:
useSkill(2, 'random') # バルカンバースト (216921): Physical damage (6x, ATK) to all enemies
olive = True # reset next turn
elif isTurnMod(3) and peach == False:
useSkill(1, 'random') # セルレアムベント (216920): Magic damage (3.2x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.45 and unit('7:enemy:1').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and unit('7:enemy:1').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
wait() # No action
mango = True # reset next turn
elif random() <= 0.45 and unit('1:ally:any').HP < 0.65 and ramen == False and mango == False and melon == False:
useSkill(12, 'slot:1') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
mango = True # reset next turn
elif unit('7:enemy:2').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif unit('7:enemy:2').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
wait() # No action
lemon = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and lemon == False and mango == True:
useSkill(12, 'slot:2') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
lemon = True # reset next turn
elif unit('7:enemy:3').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:3').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
wait() # No action
grape = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == False and grape == False and mango == True:
useSkill(12, 'slot:3') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
grape = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:4').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif unit('7:enemy:4').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
wait() # No action
melon = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and melon == False and mango == False:
useSkill(12, 'slot:4') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
melon = True # reset next turn
elif unit('7:enemy:5').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif unit('7:enemy:5').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
wait() # No action
guava = True # reset next turn
elif unit('1:ally:any').HP < 0.65 and ramen == False and guava == False and melon == True and mango == False:
useSkill(12, 'slot:5') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
guava = True # reset next turn
elif unit('7:enemy:6').is('dead') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif unit('7:enemy:6').hasStatus('Petrify') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif conditionNotImplemented('outside_field:0') and unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
wait() # No action
gourd = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == False and gourd == False and melon == True and mango == False:
useSkill(12, 'slot:6') # 光輝の炎柱 (216924): Magic fire damage (2.2x, MAG) to one enemy
gourd = True # reset next turn
ramen = True # persistent
elif unit('1:ally:any').HP < 0.65 and ramen == True and var_63 == False and mango == False and melon == False:
useSkill(13, 'random') # 大地の重み (216925): Physical earth damage (3.7x, ATK) to all enemies, Reduce resistance to Earth by 50% for 3 turns to all enemies
var_63 = True # unknown flag type
elif unit('1:ally:any').HP < 0.4 and green < 5:
useSkill(6, 'highest ATK') # 誘導レーザー (216904): Magic damage (1.7x, MAG) to one enemy
green += 1
elif unit('1:ally:any').HP < 0.4 and green < 6:
useSkill(6, 'random') # 誘導レーザー (216904): Magic damage (1.7x, MAG) to one enemy
green += 1
else:
attack('random')
green += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment