Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created June 6, 2019 00:22
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/2c1a71dc6b7006f7607e084aa9086d94 to your computer and use it in GitHub Desktop.
Save aEnigmatic/2c1a71dc6b7006f7607e084aa9086d94 to your computer and use it in GitHub Desktop.
Sinzar needs to git gud so he won't need so many AIs
###
# Flickering Presence
###
# Skills
###
#
# 吸いつくす (209790) [Magic]
#
# 99% HP damage to all enemies
# Unknown parameters: [99,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントウェーブ・火 (209800) [Magic]
#
# Magic fire damage (3.5x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントウェーブ・氷 (209810) [Magic]
#
# Magic ice damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントウェーブ・雷 (209820) [Magic]
#
# Magic lightning damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントウェーブ・土 (209830) [Magic]
#
# Magic earth damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 大気が揺らめく (209840) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 守護の防壁 (209850) [None]
#
# Increase DEF and SPR by 100% for 3 turns to one ally
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントウェーブ・無 (209860) [Magic]
#
# Magic damage (6x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# エレメントダウン (209870) [None]
#
# Reduce resistance to all elements by 50% for 5 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(1, 'random') # 吸いつくす (209790): 99% HP damage to all enemies
elif once():
useSkill(9, 'random') # エレメントダウン (209870): Reduce resistance to all elements by 50% for 5 turns to all enemies
elif once():
useSkill(7, 'random') # 守護の防壁 (209850): Increase DEF and SPR by 100% for 3 turns to one ally
apple = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
elif self.HP < 0.8 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
lemon = True # reset next turn
mango = True # reset next turn
olive = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
elif self.HP < 0.6 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
elif self.HP < 0.6 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
lemon = True # reset next turn
mango = True # reset next turn
olive = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
elif self.HP < 0.6 and once():
useSkill(7, 'random') # 守護の防壁 (209850): Increase DEF and SPR by 100% for 3 turns to one ally
lemon = True # reset next turn
mango = True # reset next turn
olive = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
elif self.HP < 0.4 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
elif self.HP < 0.4 and once():
useSkill(8, 'random') # エレメントウェーブ・無 (209860): Magic damage (6x, MAG) to all enemies
lemon = True # reset next turn
mango = True # reset next turn
olive = True # reset next turn
peach = True # reset next turn
berry = True # reset next turn
elif grape == True and peach == False:
useSkill(2, 'random') # エレメントウェーブ・火 (209800): Magic fire damage (3.5x, MAG) to one enemy
peach = True # reset next turn
elif grape == True and olive == False:
useSkill(3, 'random') # エレメントウェーブ・氷 (209810): Magic ice damage (3.5x, MAG) to all enemies
olive = True # reset next turn
elif grape == True and mango == False:
useSkill(4, 'random') # エレメントウェーブ・雷 (209820): Magic lightning damage (3.5x, MAG) to all enemies
mango = True # reset next turn
elif grape == True:
useSkill(5, 'random') # エレメントウェーブ・土 (209830): Magic earth damage (3.5x, MAG) to all enemies
apple = True # reset next turn
elif self.hitByLastTurn('hit_attack') and green >= 3 and berry == False:
useSkill(6, 'random') # 大気が揺らめく (209840): No effect
green = 0
grape = True # reset next turn
elif self.hitByLastTurn('magic_attack') and green >= 3 and berry == False:
useSkill(6, 'random') # 大気が揺らめく (209840): No effect
green = 0
grape = True # reset next turn
elif self.hitByLastTurn('special_attack') and green >= 3 and berry == False:
useSkill(6, 'random') # 大気が揺らめく (209840): No effect
green = 0
grape = True # reset next turn
elif self.hitByLastTurn('beast_attack') and green >= 3 and berry == False:
useSkill(6, 'random') # 大気が揺らめく (209840): No effect
green = 0
grape = True # reset next turn
elif unit('5:enemy:any').usedLastTurn('limitburst') and green >= 6 and berry == False:
useSkill(6, 'random') # 大気が揺らめく (209840): No effect
green = 0
grape = True # reset next turn
elif green >= 6 and berry == False:
wait() # No action
green = 0
elif random() <= 0.20 and self.HP < 0.6 and peach == False:
useSkill(4, 'random') # エレメントウェーブ・雷 (209820): Magic lightning damage (3.5x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.25 and self.HP < 0.6 and peach == False:
useSkill(3, 'random') # エレメントウェーブ・氷 (209810): Magic ice damage (3.5x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.35 and self.HP < 0.6 and peach == False:
useSkill(2, 'random') # エレメントウェーブ・火 (209800): Magic fire damage (3.5x, MAG) to one enemy
peach = True # reset next turn
elif self.HP < 0.6 and peach == False:
useSkill(5, 'random') # エレメントウェーブ・土 (209830): Magic earth damage (3.5x, MAG) to all enemies
peach = True # reset next turn
elif random() <= 0.20 and olive == False:
useSkill(5, 'random') # エレメントウェーブ・土 (209830): Magic earth damage (3.5x, MAG) to all enemies
green += 1
olive = True # reset next turn
berry = True # reset next turn
elif random() <= 0.25 and olive == False:
useSkill(4, 'random') # エレメントウェーブ・雷 (209820): Magic lightning damage (3.5x, MAG) to all enemies
green += 1
olive = True # reset next turn
berry = True # reset next turn
elif random() <= 0.35 and olive == False:
useSkill(3, 'random') # エレメントウェーブ・氷 (209810): Magic ice damage (3.5x, MAG) to all enemies
green += 1
olive = True # reset next turn
berry = True # reset next turn
elif olive == False:
useSkill(2, 'random') # エレメントウェーブ・火 (209800): Magic fire damage (3.5x, MAG) to one enemy
green += 1
olive = True # reset next turn
berry = True # reset next turn
elif random() <= 0.20 and lemon == False:
useSkill(5, 'random') # エレメントウェーブ・土 (209830): Magic earth damage (3.5x, MAG) to all enemies
green += 1
lemon = True # reset next turn
berry = True # reset next turn
elif random() <= 0.25 and lemon == False:
useSkill(4, 'random') # エレメントウェーブ・雷 (209820): Magic lightning damage (3.5x, MAG) to all enemies
green += 1
lemon = True # reset next turn
berry = True # reset next turn
elif random() <= 0.35 and lemon == False:
useSkill(3, 'random') # エレメントウェーブ・氷 (209810): Magic ice damage (3.5x, MAG) to all enemies
green += 1
lemon = True # reset next turn
berry = True # reset next turn
elif lemon == False:
useSkill(2, 'random') # エレメントウェーブ・火 (209800): Magic fire damage (3.5x, MAG) to one enemy
green += 1
lemon = True # reset next turn
berry = True # reset next turn
else:
attack('random')
###
# New Magitek Weapon
###
# Skills
###
#
# 焼却魔導弾 (209880) [Magic]
#
# Magic fire damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 凍結魔導弾 (209890) [Magic]
#
# Magic ice damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 雷撃魔導弾 (209900) [Magic]
#
# Magic lightning damage (3.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ポイズンダスト (209910) [Magic]
#
# Magic damage (3.5x, MAG) to all enemies
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ストーンダスト (209920) [Magic]
#
# Magic damage (3.5x, MAG) to all enemies
# Inflict Petrify (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# パライズダスト (209930) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Inflict Paralyze (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# アーム (209940) [Physical]
#
# Physical damage (3.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ブーストアーム (209950) [Physical]
#
# Physical damage (6x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 高負荷モード (209960) [None]
#
# Increase ATK and MAG by 100% for 5 turns to one ally
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif self.HP < 0.8 and once():
useSkill(8, 'random') # ブーストアーム (209950): Physical damage (6x, ATK) to all enemies
berry = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(8, 'random') # ブーストアーム (209950): Physical damage (6x, ATK) to all enemies
peach = True # reset next turn
elif self.HP < 0.3 and once():
useSkill(8, 'random') # ブーストアーム (209950): Physical damage (6x, ATK) to all enemies
olive = True # reset next turn
elif self.HP < 0.8 and once() and berry == True:
useSkill(9, 'random') # 高負荷モード (209960): Increase ATK and MAG by 100% for 5 turns to one ally
apple = True # reset next turn
elif self.HP < 0.5 and once() and peach == True:
useSkill(9, 'random') # 高負荷モード (209960): Increase ATK and MAG by 100% for 5 turns to one ally
apple = True # reset next turn
elif self.HP < 0.3 and once() and olive == True:
useSkill(9, 'random') # 高負荷モード (209960): Increase ATK and MAG by 100% for 5 turns to one ally
apple = True # reset next turn
elif self.HP < 0.5 and lemon == False:
useSkill(5, 'random') # ストーンダスト (209920): Magic damage (3.5x, MAG) to all enemies, Inflict Petrify (100%) on all enemies
lemon = True # reset next turn
elif honey == True and mango == False:
useSkill(7, 'random') # アーム (209940): Physical damage (3.5x, ATK) to all enemies
mango = True # reset next turn
honey = False # persistent
elif mango == False:
useSkill(4, 'random') # ポイズンダスト (209910): Magic damage (3.5x, MAG) to all enemies, Inflict Poison (100%) on all enemies
mango = True # reset next turn
honey = True # persistent
elif self.HP < 0.5 and grape == False:
useSkill(3, 'random') # 雷撃魔導弾 (209900): Magic lightning damage (3.5x, MAG) to all enemies
grape = True # reset next turn
elif random() <= 0.33 and melon == False:
useSkill(1, 'random') # 焼却魔導弾 (209880): Magic fire damage (3.5x, MAG) to all enemies
melon = True # reset next turn
elif random() <= 0.50 and melon == False:
useSkill(2, 'random') # 凍結魔導弾 (209890): Magic ice damage (3.5x, MAG) to all enemies
melon = True # reset next turn
elif melon == False:
useSkill(3, 'random') # 雷撃魔導弾 (209900): Magic lightning damage (3.5x, MAG) to all enemies
melon = True # reset next turn
elif guava == False:
useSkill(6, 'highest SPR') # パライズダスト (209930): Physical damage (4x, ATK) to one enemy, Inflict Paralyze (100%) on one enemy
guava = True # reset next turn
elif gourd == False:
useSkill(6, 'highest SPR') # パライズダスト (209930): Physical damage (4x, ATK) to one enemy, Inflict Paralyze (100%) on one enemy
gourd = True # reset next turn
elif var_61 == False:
useSkill(6, 'highest SPR') # パライズダスト (209930): Physical damage (4x, ATK) to one enemy, Inflict Paralyze (100%) on one enemy
var_61 = True # unknown flag type
else:
attack('random')
###
# Evil Eater
###
# Skills
###
#
# 食欲増進 (209970) [None]
#
# Increase ATK and MAG by 20% for 9999 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# すべてまるのみ (209980) [Physical]
#
# [Death]
# Instant KO (50%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# ファイガ (209990) [Magic]
#
# Magic fire damage (2x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# つまみ食い (210000) [Physical]
#
# Physical damage (3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# はぎとり食い (210010) [Physical]
#
# Physical damage (2.5x, ATK) to one enemy
# Remove all buffs and debuffs from one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 食い散らかす (210020) [Physical]
#
# Physical damage (1.9x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if self.HP < 0.2 and once():
useSkill(2, 'random') # すべてまるのみ (209980): [Death], Instant KO (50%) to all enemies
elif self.HP < 0.4 and once():
useSkill(1, 'random') # 食欲増進 (209970): Increase ATK and MAG by 20% for 9999 turns to caster
elif self.HP < 0.4 and once():
useSkill(2, 'random') # すべてまるのみ (209980): [Death], Instant KO (50%) to all enemies
elif self.HP < 0.6 and once():
useSkill(1, 'random') # 食欲増進 (209970): Increase ATK and MAG by 20% for 9999 turns to caster
elif self.HP < 0.6 and once():
useSkill(2, 'random') # すべてまるのみ (209980): [Death], Instant KO (50%) to all enemies
elif self.HP < 0.8 and once():
useSkill(1, 'random') # 食欲増進 (209970): Increase ATK and MAG by 20% for 9999 turns to caster
elif self.HP < 0.8 and once():
useSkill(2, 'random') # すべてまるのみ (209980): [Death], Instant KO (50%) to all enemies
elif apple == False:
useSkill(3, 'random') # ファイガ (209990): Magic fire damage (2x, MAG) to all enemies
apple = True # reset next turn
elif unit('1:ally:any').HP > 0.6 and isTurnMod(3) and mango == False:
useSkill(6, 'random') # 食い散らかす (210020): Physical damage (1.9x, ATK) to all enemies
mango = True # reset next turn
elif unit('1:ally:any').HP < 0.6 and isTurnMod(2) and mango == False:
useSkill(6, 'random') # 食い散らかす (210020): Physical damage (1.9x, ATK) to all enemies
mango = True # reset next turn
elif isTurnMod(2) and berry == False:
useSkill(5, 'random') # はぎとり食い (210010): Physical damage (2.5x, ATK) to one enemy, Remove all buffs and debuffs from one enemy
berry = True # reset next turn
elif isTurnMod(4) and olive == False:
useSkill(5, 'random') # はぎとり食い (210010): Physical damage (2.5x, ATK) to one enemy, Remove all buffs and debuffs from one enemy
olive = True # reset next turn
elif unit('1:ally:any').HP > 0.6 and isTurnMod(2) and peach == False:
useSkill(3, 'random') # ファイガ (209990): Magic fire damage (2x, MAG) to all enemies
peach = True # reset next turn
elif unit('1:ally:any').HP < 0.6 and peach == False:
useSkill(3, 'random') # ファイガ (209990): Magic fire damage (2x, MAG) to all enemies
peach = True # reset next turn
else:
useSkill(4, 'random') # つまみ食い (210000): Physical damage (3x, ATK) to one enemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment