Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created November 21, 2020 12:17
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/4d8e18872e5e573a0b8f966806da5ac3 to your computer and use it in GitHub Desktop.
Save aEnigmatic/4d8e18872e5e573a0b8f966806da5ac3 to your computer and use it in GitHub Desktop.
Sand Worm
##
# Mission '砂に潜む巨蟲・覚醒級' (8997903)
# BattleScript: 8997901
#
# Battles
# * サンドウォーム
##
##
# Monster Info
##
#
# Monster サンドウォーム (309011017, 309011002)
# Race Insect
# Level 99
# Actions 30-30
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 3000000000
# MP 10000
# ATK 7500
# DEF 150000
# MAG 3000
# SPR 150000
#
#
# 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 0%
# 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 +
#
###
###
# Skills
###
#
# 砂崩れ (221206) [Physical]
#
# Physical damage (1.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 砂煙 (221207) [None]
#
# Inflict Blind (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# HPを吸い込む (221208) [Physical]
#
# Physical damage (1.8x, ATK) as HP drain (30%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 流砂 (221209) [Physical]
#
# Physical damage (4x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 解除の巻きつき (221210) [Physical]
#
# Remove all buffs from one enemy
# Physical damage (1.5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 地響き (221211) [Physical]
#
# Physical earth damage (1.2x, ATK) to one enemy
# Reduce resistance to Earth by 50% for 4 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# しめつけ (221212) [Physical]
#
# Physical damage (0.1x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 丸呑み (221213) [Physical]
#
# Physical damage (1.5x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 脱皮 (221214) [None]
#
# Increase ATK by 30% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# グラビガ (221215) [Magic]
#
# 50% HP damage to all enemies
# Unknown parameters: [50,100]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# 頭を打ちつけた (221216) [None]
#
# 1% HP damage to caster
# Unknown parameters: [2,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 攻撃アイテムを受けてHPを吸い込めなかった (221217) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 流砂の準備をしている (221218) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# 攻撃アイテムを受けて流砂がだせなかった (221219) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif isTurn(1) and gourd == False and once():
useSkill(10, 'random') # グラビガ (221215): 50% HP damage to all enemies
gourd = True # reset next turn
elif self.HP < 0.8 and gourd == False and once():
useSkill(10, 'random') # グラビガ (221215): 50% HP damage to all enemies
gourd = True # reset next turn
elif self.HP < 0.6 and gourd == False and once():
useSkill(10, 'random') # グラビガ (221215): 50% HP damage to all enemies
gourd = True # reset next turn
elif self.HP < 0.4 and gourd == False and once():
useSkill(10, 'random') # グラビガ (221215): 50% HP damage to all enemies
gourd = True # reset next turn
elif self.HP < 0.2 and gourd == False and once():
useSkill(10, 'random') # グラビガ (221215): 50% HP damage to all enemies
gourd = True # reset next turn
elif green == 0 and peach == False:
useSkill(1, 'random') # 砂崩れ (221206): Physical damage (1.5x, ATK) to all enemies
peach = True # reset next turn
elif green == 0 and olive == False:
useSkill(6, 'random') # 地響き (221211): Physical earth damage (1.2x, ATK) to one enemy, Reduce resistance to Earth by 50% for 4 turns to one enemy
olive = True # reset next turn
elif green == 0 and mango == False:
useSkill(5, 'random') # 解除の巻きつき (221210): Remove all buffs from one enemy, Physical damage (1.5x, ATK) to one enemy
mango = True # reset next turn
elif green == 1 and peach == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
peach = True # reset next turn
elif green == 1 and olive == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
olive = True # reset next turn
elif green == 1 and mango == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
mango = True # reset next turn
elif green == 1 and lemon == False:
useSkill(8, 'random') # 丸呑み (221213): Physical damage (1.5x, ATK) to one enemy
lemon = True # reset next turn
elif green == 1 and grape == False:
useSkill(2, 'random') # 砂煙 (221207): Inflict Blind (100%) on one enemy
grape = True # reset next turn
elif self.hitByLastTurn('item') and green == 1 and melon == False:
useSkill(12, 'random') # 攻撃アイテムを受けてHPを吸い込めなかった (221217): No effect
melon = True # reset next turn
honey = True # persistent
elif green == 1 and honey == True:
useSkill(11, 'random') # 頭を打ちつけた (221216): 1% HP damage to caster
honey = False # persistent
elif green == 1 and melon == False:
useSkill(3, 'random') # HPを吸い込む (221208): Physical damage (1.8x, ATK) as HP drain (30%) to one enemy
melon = True # reset next turn
elif green == 1 and guava == False:
useSkill(13, 'random') # 流砂の準備をしている (221218): No effect
guava = True # reset next turn
elif green == 2 and lemon == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
lemon = True # reset next turn
elif green == 2 and grape == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
grape = True # reset next turn
elif green == 2 and melon == False:
useSkill(7, 'random') # しめつけ (221212): Physical damage (0.1x, ATK) to all enemies
melon = True # reset next turn
elif green == 2 and peach == False:
useSkill(6, 'random') # 地響き (221211): Physical earth damage (1.2x, ATK) to one enemy, Reduce resistance to Earth by 50% for 4 turns to one enemy
peach = True # reset next turn
elif green == 2 and olive == False:
useSkill(9, 'random') # 脱皮 (221214): Increase ATK by 30% for 2 turns to caster
olive = True # reset next turn
elif self.hitByLastTurn('item') and green == 2 and mango == False:
useSkill(14, 'random') # 攻撃アイテムを受けて流砂がだせなかった (221219): No effect
mango = True # reset next turn
elif green == 2 and mango == False:
useSkill(4, 'random') # 流砂 (221209): Physical damage (4x, ATK) to all enemies
mango = True # reset next turn
elif berry == False and green == 2:
wait() # No action
green = 0
berry = True # reset next turn
apple = True # reset next turn
elif berry == False:
wait() # No action
green += 1
berry = True # reset next turn
apple = 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