Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created December 14, 2019 02:12
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/680193ef7fbe179adad5af6c58bd6d06 to your computer and use it in GitHub Desktop.
Save aEnigmatic/680193ef7fbe179adad5af6c58bd6d06 to your computer and use it in GitHub Desktop.
暴威をふるう鉄鎧 真降臨
##
# Mission '暴威をふるう鉄鎧 真降臨' (8977101)
# Enemy has first strike!
#
# Battles
# * Iron Giant
##
##
# Monster Info
##
#
# Monster Iron Giant (406131003)
# Race Human
# Level 99
# Actions 40-40
#
# NEW DAMAGE FORMULA! (5, 25, 185)
#
#
# Stats
# HP 430000000
# MP 100000
# ATK 1550
# DEF 1400
# MAG 1250
# SPR 1050
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 30%
# Ice 30%
# Lightning 30%
# Water 30%
# Wind 30%
# Earth 30%
# Light 30%
# Dark 30%
# Non-Elemental 0%
#
#
# Status resist (+20% / application)
# Poison 100%
# Blind 0%
# 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
###
#
# 全ステ60% (100048) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 60%
#
##
###
# Skills
###
#
# Sword (216225) [Physical]
#
# Physical damage (4.3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Helm Divide (216226) [Physical]
#
# Physical damage (4x, ATK) to one enemy (+100% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crash Down (216227) [Magic]
#
# Magic damage (9.5x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Reaper (216228) [Physical]
#
# Physical damage (4x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Gigantic Swing (216229) [None]
#
# Physical* damage (2.5x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Darksteel Destroyer (216230) [Physical]
#
# Physical damage (4x, ATK) to all enemies (+100% accuracy)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Meteor (216231) [Magic]
#
# Magic damage (2.8x * 1.11 = 3.11x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Thunderous Meteor (216232) [None]
#
# Magic* damage (4x * 1.18 = 4.71x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Pressure is tightening! (216233) [None]
#
# Remove all buffs and debuffs from all enemies
# Reduce DEF by 25% and ATK by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Focused Stance (216234) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruthless Stance (216235) [None]
#
# No effect
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Iron Colossus (216236) [None]
#
# Increase ATK and MAG by 100% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The pressure is overwhelming! (216237) [None]
#
# Inflict Stop (100%) for 3 turns on all enemies
# Inflict Paralyze (100%) on all enemies
# Unknown parameters: [1]
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (100%) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mighty Guard (216238) [None]
#
# Increase DEF and SPR by 40% for one turn to caster (can not be removed)
# Unused parameters: [1]
# Increase DEF and SPR by 30% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if gourd == True:
endTurn()
elif once():
useSkill(14, 'random') # Mighty Guard (216238): Increase DEF and SPR by 40% for one turn to caster (can not be removed), Increase DEF and SPR by 30% for 3 turns to caster
gourd = True # reset next turn
elif once() and self.HP < 0.8:
useSkill(8, 'random') # Thunderous Meteor (216232): Magic* damage (4x * 1.18 = 4.71x, MAG) to all enemies (ignore reflect)
guava = True # reset next turn
elif once() and self.HP < 0.8 and green >= 7:
useSkill(14, 'random') # Mighty Guard (216238): Increase DEF and SPR by 40% for one turn to caster (can not be removed), Increase DEF and SPR by 30% for 3 turns to caster
guava = True # reset next turn
elif once() and self.HP < 0.8 and green >= 7:
wait() # No action
elif once() and self.HP < 0.8 and green >= 7:
wait() # No action
elif once() and self.HP < 0.6 and guava == False:
useSkill(8, 'random') # Thunderous Meteor (216232): Magic* damage (4x * 1.18 = 4.71x, MAG) to all enemies (ignore reflect)
melon = True # reset next turn
elif once() and self.HP < 0.6 and green >= 7 and guava == False:
useSkill(14, 'random') # Mighty Guard (216238): Increase DEF and SPR by 40% for one turn to caster (can not be removed), Increase DEF and SPR by 30% for 3 turns to caster
melon = True # reset next turn
elif once() and self.HP < 0.6 and green >= 7 and guava == False:
wait() # No action
elif once() and self.HP < 0.6 and green >= 7 and guava == False:
wait() # No action
elif once() and self.HP < 0.4 and guava == False and melon == False:
useSkill(8, 'random') # Thunderous Meteor (216232): Magic* damage (4x * 1.18 = 4.71x, MAG) to all enemies (ignore reflect)
grape = True # reset next turn
elif once() and self.HP < 0.4 and green >= 7 and guava == False and melon == False:
useSkill(14, 'random') # Mighty Guard (216238): Increase DEF and SPR by 40% for one turn to caster (can not be removed), Increase DEF and SPR by 30% for 3 turns to caster
grape = True # reset next turn
elif once() and self.HP < 0.4 and green >= 7 and guava == False and melon == False:
wait() # No action
elif once() and self.HP < 0.4 and green >= 7 and guava == False and melon == False:
wait() # No action
elif once() and self.HP < 0.2 and guava == False and melon == False and grape == False:
useSkill(8, 'random') # Thunderous Meteor (216232): Magic* damage (4x * 1.18 = 4.71x, MAG) to all enemies (ignore reflect)
elif once() and self.HP < 0.2 and green >= 7 and guava == False and melon == False and grape == False:
useSkill(14, 'random') # Mighty Guard (216238): Increase DEF and SPR by 40% for one turn to caster (can not be removed), Increase DEF and SPR by 30% for 3 turns to caster
elif once() and self.HP < 0.2 and green >= 7 and guava == False and melon == False and grape == False:
wait() # No action
elif once() and self.HP < 0.2 and green >= 7 and guava == False and melon == False and grape == False:
wait() # No action
elif green >= 7 and var_69 == False:
wait() # No action
var_69 = True # unknown flag type
elif green >= 7 and var_70 == False:
wait() # No action
var_70 = True # unknown flag type
elif self.HP < 0.4 and green >= 7 and berry == False and steak == True:
useSkill(6, 'random') # Darksteel Destroyer (216230): Physical damage (4x, ATK) to all enemies (+100% accuracy)
berry = True # reset next turn
steak = False # persistent
elif self.HP < 0.4 and green >= 7 and berry == False and salad == True:
useSkill(5, 'random') # Gigantic Swing (216229): Physical* damage (2.5x, ATK) to all enemies
berry = True # reset next turn
salad = False # persistent
elif self.HP < 0.4 and green >= 7 and berry == False:
useSkill(4, 'random') # Reaper (216228): Physical damage (4x, ATK) to all enemies
berry = True # reset next turn
elif self.HP > 0.3 and green >= 7 and peach == False and white == 1:
useSkill(7, 'random') # Meteor (216231): Magic damage (2.8x * 1.11 = 3.11x, MAG) to all enemies (ignore reflect)
peach = True # reset next turn
elif self.HP > 0.5 and green >= 7 and olive == False and honey == True and white == 2:
useSkill(12, 'random') # Iron Colossus (216236): Increase ATK and MAG by 100% for 3 turns to caster
olive = True # reset next turn
ramen = True # persistent
honey = False # persistent
elif self.HP > 0.5 and green >= 7 and olive == False and white == 2 and honey == False:
useSkill(9, 'random') # Pressure is tightening! (216233): Remove all buffs and debuffs from all enemies, Reduce DEF by 25% and ATK by 50% for 3 turns to all enemies
olive = True # reset next turn
pasta = True # persistent
honey = True # persistent
elif self.HP < 0.3 and green >= 7 and peach == False:
useSkill(7, 'random') # Meteor (216231): Magic damage (2.8x * 1.11 = 3.11x, MAG) to all enemies (ignore reflect)
peach = True # reset next turn
elif self.HP < 0.5 and green >= 7 and olive == False and honey == True and white == 1:
useSkill(12, 'random') # Iron Colossus (216236): Increase ATK and MAG by 100% for 3 turns to caster
olive = True # reset next turn
ramen = True # persistent
honey = False # persistent
elif self.HP < 0.5 and green >= 7 and olive == False and white == 1 and honey == False:
useSkill(9, 'random') # Pressure is tightening! (216233): Remove all buffs and debuffs from all enemies, Reduce DEF by 25% and ATK by 50% for 3 turns to all enemies
olive = True # reset next turn
pasta = True # persistent
honey = True # persistent
elif random() <= 0.45 and green >= 7 and mango == False and ramen == True:
useSkill(10, 'random') # Focused Stance (216234): No effect
mango = True # reset next turn
sushi = True # persistent
ramen = False # persistent
elif green >= 7 and mango == False and ramen == True:
useSkill(11, 'random') # Ruthless Stance (216235): No effect
mango = True # reset next turn
bacon = True # persistent
ramen = False # persistent
elif self.HP > 0.5 and green >= 7 and white == 2:
endTurn()
white = 0
green = 0
elif self.HP > 0.5 and green >= 7 and white == 1:
endTurn()
white += 1
green = 0
elif self.HP < 0.5 and green >= 7 and white == 2:
endTurn()
white = 0
green = 0
elif self.HP < 0.5 and green >= 7 and white == 1:
endTurn()
white = 0
green = 0
elif green >= 7:
endTurn()
white += 1
green = 0
elif pasta == True and apple == False:
useSkill(13, 'random') # The pressure is overwhelming! (216237): Inflict Stop (100%) for 3 turns on all enemies, Inflict Paralyze (100%) on all enemies, Hybrid* damage (0.1x, ATK & MAG) as MP drain (100%) to all enemies
apple = True # reset next turn
pasta = False # persistent
elif bacon == True and var_61 == False:
wait() # No action
var_61 = True # unknown flag type
elif bacon == True and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
elif green < 1 and bacon == True:
useSkill(1, 'random') # Sword (216225): Physical damage (4.3x, ATK) to one enemy
green += 1
elif bacon == True and var_63 == False:
wait() # No action
var_63 = True # unknown flag type
elif bacon == True and var_64 == False:
wait() # No action
var_64 = True # unknown flag type
elif green < 2 and bacon == True:
useSkill(1, 'random') # Sword (216225): Physical damage (4.3x, ATK) to one enemy
green += 1
elif bacon == True and var_65 == False:
wait() # No action
var_65 = True # unknown flag type
elif bacon == True and var_66 == False:
wait() # No action
var_66 = True # unknown flag type
elif sushi == True and var_61 == False:
wait() # No action
var_61 = True # unknown flag type
elif sushi == True and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
elif green < 1 and sushi == True:
useSkill(2, 'random') # Helm Divide (216226): Physical damage (4x, ATK) to one enemy (+100% accuracy)
green += 1
elif sushi == True and var_63 == False:
wait() # No action
var_63 = True # unknown flag type
elif sushi == True and var_64 == False:
wait() # No action
var_64 = True # unknown flag type
elif green < 2 and sushi == True:
useSkill(2, 'random') # Helm Divide (216226): Physical damage (4x, ATK) to one enemy (+100% accuracy)
green += 1
elif sushi == True and var_65 == False:
wait() # No action
var_65 = True # unknown flag type
elif sushi == True and var_66 == False:
wait() # No action
var_66 = True # unknown flag type
elif var_61 == False:
wait() # No action
var_61 = True # unknown flag type
elif var_62 == False:
wait() # No action
var_62 = True # unknown flag type
elif green < 1:
useSkill(1, 'random') # Sword (216225): Physical damage (4.3x, ATK) to one enemy
green += 1
elif var_63 == False:
wait() # No action
var_63 = True # unknown flag type
elif var_64 == False:
wait() # No action
var_64 = True # unknown flag type
elif green < 2:
useSkill(1, 'random') # Sword (216225): Physical damage (4.3x, ATK) to one enemy
green += 1
elif var_65 == False:
wait() # No action
var_65 = True # unknown flag type
elif var_66 == False:
wait() # No action
var_66 = True # unknown flag type
elif self.HP < 0.4 and green < 5 and isTurnMod(2):
attack('random')
green += 1
elif self.HP < 0.4 and lemon == False and isTurnMod(2):
useSkill(3, 'random') # Crash Down (216227): Magic damage (9.5x, MAG) to one enemy
green += 1
lemon = True # reset next turn
elif self.HP > 0.4 and self.HP < 0.7 and green < 5 and isTurnMod(3):
attack('random')
green += 1
elif self.HP > 0.4 and self.HP < 0.7 and lemon == False and isTurnMod(3):
useSkill(3, 'random') # Crash Down (216227): Magic damage (9.5x, MAG) to one enemy
green += 1
lemon = True # reset next turn
elif green < 6:
attack('random')
green += 1
elif var_67 == False:
wait() # No action
var_67 = True # unknown flag type
elif var_68 == False:
wait() # No action
var_68 = True # unknown flag type
elif self.HP < 0.4 and sushi == True:
useSkill(6, 'random') # Darksteel Destroyer (216230): Physical damage (4x, ATK) to all enemies (+100% accuracy)
green += 1
steak = True # persistent
sushi = False # persistent
elif self.HP < 0.4 and bacon == True:
useSkill(5, 'random') # Gigantic Swing (216229): Physical* damage (2.5x, ATK) to all enemies
green += 1
salad = True # persistent
bacon = False # persistent
elif sushi == True:
useSkill(6, 'random') # Darksteel Destroyer (216230): Physical damage (4x, ATK) to all enemies (+100% accuracy)
green += 1
sushi = False # persistent
elif bacon == True:
useSkill(5, 'random') # Gigantic Swing (216229): Physical* damage (2.5x, ATK) to all enemies
green += 1
bacon = False # persistent
else:
useSkill(4, 'random') # Reaper (216228): Physical damage (4x, ATK) to all enemies
green += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment