Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SE - Bonus Stage
##
# Mission 'Bonus Stage 1' (8280901)
#
# Battles
# * Malacoda
##
##
# Monster Info
##
#
# Monster Malacoda (212028002)
# Race Dragon, Reaper
# Level 100
# Actions 8-8
#
#
# Stats
# HP 25000000
# MP 10000
# ATK 580
# DEF 250
# MAG 500
# SPR 250
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 50%
# Light -50%
# Dark 50%
# Non-Elemental 0%
#
#
# Status resist (+50% / 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 +
# Unknown (7) +
#
###
###
# Passives
###
#
# 攻撃魔力50% (100025) [Passive]
#
# Increase ATK and MAG by 50%
#
##
###
# Skills
###
#
# Self-Repair (199810) [None]
#
# Restore 4000000 HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Self-Repair (199820) [None]
#
# Restore 13000000 HP to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earthquake (172920) [Magic]
#
# Magic earth damage (4x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Calamity Fang (178500) [Physical]
#
# Physical damage (3x, ATK) to one enemy
# Inflict Poison and Sleep (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Snap (178510) [Physical]
#
# Physical damage (1.8x, ATK) to one enemy (+1% accuracy)
# Reduce ATK and MAG by 50% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Crunch (170500) [Physical]
#
# Physical damage (1.8x, ATK) to one enemy (+1% accuracy)
# Reduce DEF and SPR by 50% for 3 turns to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Bone (150620) [Physical]
#
# Physical damage (1.8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if self.sufferedDamageLastTurn('fire', 'physical') and apple == False:
useSkill(1, 'random') # Self-Repair (199810): Restore 4000000 HP to caster
apple = True # reset next turn
elif self.sufferedDamageLastTurn('fire', 'magical') and apple == False:
useSkill(1, 'random') # Self-Repair (199810): Restore 4000000 HP to caster
apple = True # reset next turn
elif self.sufferedDamageLastTurn('light', 'physical') and apple == False:
useSkill(1, 'random') # Self-Repair (199810): Restore 4000000 HP to caster
apple = True # reset next turn
elif self.sufferedDamageLastTurn('light', 'magical') and apple == False:
useSkill(1, 'random') # Self-Repair (199810): Restore 4000000 HP to caster
apple = True # reset next turn
elif apple == False:
useSkill(2, 'random') # Self-Repair (199820): Restore 13000000 HP to caster
apple = True # reset next turn
elif self.HP < 0.8 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.6 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.4 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.4 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.2 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.2 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif self.HP < 0.2 and once():
useSkill(4, 'random') # Calamity Fang (178500): Physical damage (3x, ATK) to one enemy, Inflict Poison and Sleep (100%) on one enemy
elif random() <= 0.20 and self.HP < 0.5 and berry == False:
useSkill(3, 'random') # Earthquake (172920): Magic earth damage (4x, MAG) to all enemies
berry = True # reset next turn
elif random() <= 0.20 and peach == False:
useSkill(5, 'random') # Snap (178510): Physical damage (1.8x, ATK) to one enemy (+1% accuracy), Reduce ATK and MAG by 50% for 3 turns to one enemy
peach = True # reset next turn
elif random() <= 0.20 and peach == False:
useSkill(6, 'random') # Crunch (170500): Physical damage (1.8x, ATK) to one enemy (+1% accuracy), Reduce DEF and SPR by 50% for 3 turns to one enemy
peach = True # reset next turn
elif random() <= 0.30:
useSkill(7, 'random') # Bone (150620): Physical damage (1.8x, ATK) to one enemy
else:
attack('random')
##
# Mission 'Bonus Stage' (8280900)
##
##
# Mission 'Bonus Stage 3' (8280903)
# Enemy has first strike!
#
# Battles
# * Giga Rat Lv. 100 [+ Dire Rat Lv. 100 (max 99), Dire Rat Lv. 100 (max 99), Dire Rat Lv. 100 (max 99), Stunner Lv. 100 (max 99), Wild Rat Lv. 100 (max 99), Lab Rat Lv. 100 (max 99)]
##
##
# Monster Info
##
#
# Monster Dire Rat Lv. 100 (101001021)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 180
# MAG 666
# SPR 130
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / 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 +
#
###
###
# Skills
###
#
# Grudge of the Rat (165580) [None]
#
# Fixed fire damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165580): Fixed fire damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Dire Rat Lv. 100 (101001022)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 180
# MAG 666
# SPR 130
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / 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 +
#
###
###
# Skills
###
#
# Grudge of the Rat (165590) [None]
#
# Fixed water damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165590): Fixed water damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Dire Rat Lv. 100 (101001023)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 180
# MAG 666
# SPR 130
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / 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 +
#
###
###
# Skills
###
#
# Grudge of the Rat (165600) [None]
#
# Fixed wind damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165600): Fixed wind damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Giga Rat Lv. 100 (401013002)
# Race Beast
# Level 100
# Actions 20-20
#
#
# Stats
# HP 45000000
# MP 66666
# ATK 800
# DEF 750
# MAG 630
# SPR 550
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 300%
# Wind 0%
# Earth 300%
# 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 +
#
###
###
# Skills
###
#
# Feel the animosity! (165640) [None]
#
# Summon ally #5
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (165650) [None]
#
# Summon ally #6
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (165660) [None]
#
# Summon ally #7
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (165670) [None]
#
# Summon random ally
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rage of All (165680) [None]
#
# Fixed damage (4242) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rage of All (165690) [None]
#
# Fixed damage (6514) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rage of All (165700) [None]
#
# Fixed damage (9646) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rage of All (165710) [None]
#
# Fixed damage (66666) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The chagrin of its fallen friends has transferred (165720) [Magic]
#
# Increase ATK by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Giganto Tail (199960) [Physical]
#
# Physical damage (2x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Tenacious Discernment (165740) [Magic]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat's Instinct (199830) [None]
#
# Increase DEF and SPR by 25% and ATK and MAG by 20% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (199930) [None]
#
# Summon ally #1
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (199940) [None]
#
# Summon ally #2
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feel the animosity! (199950) [None]
#
# Summon ally #3
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
green = 0
elif once():
useSkill(13, 'random') # Feel the animosity! (199930): Summon Dire Rat Lv. 100 (101001021)
elif once():
useSkill(14, 'random') # Feel the animosity! (199940): Summon Dire Rat Lv. 100 (101001022)
elif once():
useSkill(15, 'random') # Feel the animosity! (199950): Summon Dire Rat Lv. 100 (101001023)
elif once():
endTurn()
elif once() and self.HP < 0.85:
useSkill(1, 'random') # Feel the animosity! (165640): Summon Stunner Lv. 100 (101002021)
elif once() and self.HP < 0.85:
useSkill(2, 'random') # Feel the animosity! (165650): Summon Wild Rat Lv. 100 (101006010)
elif once() and self.HP < 0.85:
useSkill(3, 'random') # Feel the animosity! (165660): Summon Lab Rat Lv. 100 (101005004)
elif unit('3:ally:1:Dire Rat Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2) and once():
useSkill(1, 'random') # Feel the animosity! (165640): Summon Stunner Lv. 100 (101002021)
berry = True # reset next turn
elif unit('3:ally:2:Dire Rat Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2) and once():
useSkill(2, 'random') # Feel the animosity! (165650): Summon Wild Rat Lv. 100 (101006010)
berry = True # reset next turn
elif unit('3:ally:3:Dire Rat Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2) and once():
useSkill(3, 'random') # Feel the animosity! (165660): Summon Lab Rat Lv. 100 (101005004)
berry = True # reset next turn
elif unit('3:ally:5:Stunner Lv. 100').is('dead') and white >= 6 and berry == False and self.HP < 0.5:
useSkill(1, 'random') # Feel the animosity! (165640): Summon Stunner Lv. 100 (101002021)
berry = True # reset next turn
elif unit('3:ally:6:Wild Rat Lv. 100').is('dead') and white >= 6 and berry == False and self.HP < 0.5:
useSkill(2, 'random') # Feel the animosity! (165650): Summon Wild Rat Lv. 100 (101006010)
berry = True # reset next turn
elif unit('3:ally:7:Lab Rat Lv. 100').is('dead') and white >= 6 and berry == False and self.HP < 0.5:
useSkill(3, 'random') # Feel the animosity! (165660): Summon Lab Rat Lv. 100 (101005004)
berry = True # reset next turn
elif unit('3:ally:5:Stunner Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2):
useSkill(1, 'random') # Feel the animosity! (165640): Summon Stunner Lv. 100 (101002021)
berry = True # reset next turn
elif unit('3:ally:6:Wild Rat Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2):
useSkill(2, 'random') # Feel the animosity! (165650): Summon Wild Rat Lv. 100 (101006010)
berry = True # reset next turn
elif unit('3:ally:7:Lab Rat Lv. 100').is('dead') and white >= 6 and berry == False and isTurnMod(2):
useSkill(3, 'random') # Feel the animosity! (165660): Summon Lab Rat Lv. 100 (101005004)
berry = True # reset next turn
elif unit('3:ally:1:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.7 and melon == False:
useSkill(13, 'random') # Feel the animosity! (199930): Summon Dire Rat Lv. 100 (101001021)
melon = True # reset next turn
elif unit('3:ally:2:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.7 and melon == False:
useSkill(14, 'random') # Feel the animosity! (199940): Summon Dire Rat Lv. 100 (101001022)
melon = True # reset next turn
elif unit('3:ally:3:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.7 and melon == False:
useSkill(15, 'random') # Feel the animosity! (199950): Summon Dire Rat Lv. 100 (101001023)
melon = True # reset next turn
elif unit('3:ally:1:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.4 and var_61 == False:
useSkill(13, 'random') # Feel the animosity! (199930): Summon Dire Rat Lv. 100 (101001021)
var_61 = True # unknown flag type
elif unit('3:ally:2:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.4 and var_61 == False:
useSkill(14, 'random') # Feel the animosity! (199940): Summon Dire Rat Lv. 100 (101001022)
var_61 = True # unknown flag type
elif unit('3:ally:3:Dire Rat Lv. 100').is('dead') and white >= 6 and self.HP < 0.4 and var_61 == False:
useSkill(15, 'random') # Feel the animosity! (199950): Summon Dire Rat Lv. 100 (101001023)
var_61 = True # unknown flag type
elif white >= 6:
endTurn()
white = 0
elif self.HP < 0.5 and grape == False and isTurnMod(4):
useSkill(11, 'random') # Tenacious Discernment (165740): Inflict Stop (100%) for 2 turns on one enemy
grape = True # reset next turn
elif green >= 10 and isTurnMod(4) and var_62 == False:
useSkill(8, 'random') # Rage of All (165710): Fixed damage (66666) to all enemies
apple = True # reset next turn
elif green == 9 and isTurnMod(4) and var_62 == False:
useSkill(8, 'random') # Rage of All (165710): Fixed damage (66666) to all enemies
apple = True # reset next turn
elif green == 8 and isTurnMod(4) and var_62 == False:
useSkill(7, 'random') # Rage of All (165700): Fixed damage (9646) to all enemies
apple = True # reset next turn
elif green == 7 and isTurnMod(4) and var_62 == False:
useSkill(7, 'random') # Rage of All (165700): Fixed damage (9646) to all enemies
apple = True # reset next turn
elif green == 6 and isTurnMod(4) and var_62 == False:
useSkill(6, 'random') # Rage of All (165690): Fixed damage (6514) to all enemies
apple = True # reset next turn
elif green == 5 and isTurnMod(4) and var_62 == False:
useSkill(6, 'random') # Rage of All (165690): Fixed damage (6514) to all enemies
apple = True # reset next turn
elif green == 4 and isTurnMod(4) and var_62 == False:
useSkill(6, 'random') # Rage of All (165690): Fixed damage (6514) to all enemies
apple = True # reset next turn
elif green == 3 and isTurnMod(4) and var_62 == False:
useSkill(5, 'random') # Rage of All (165680): Fixed damage (4242) to all enemies
apple = True # reset next turn
elif green == 2 and isTurnMod(4) and var_62 == False:
useSkill(5, 'random') # Rage of All (165680): Fixed damage (4242) to all enemies
apple = True # reset next turn
elif green == 1 and isTurnMod(4) and var_62 == False:
useSkill(5, 'random') # Rage of All (165680): Fixed damage (4242) to all enemies
apple = True # reset next turn
elif self.HP < 0.5 and lemon == False and isTurnMod(2):
useSkill(12, 'random') # Rat's Instinct (199830): Increase DEF and SPR by 25% and ATK and MAG by 20% for 3 turns to caster
lemon = True # reset next turn
elif unit('3:ally:1:Dire Rat Lv. 100').is('alive') and peach == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
peach = True # reset next turn
elif unit('3:ally:2:Dire Rat Lv. 100').is('alive') and peach == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
peach = True # reset next turn
elif unit('3:ally:3:Dire Rat Lv. 100').is('alive') and peach == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
peach = True # reset next turn
elif unit('3:ally:1:Dire Rat Lv. 100').is('alive') and olive == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
olive = True # reset next turn
elif unit('3:ally:2:Dire Rat Lv. 100').is('alive') and olive == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
olive = True # reset next turn
elif unit('3:ally:3:Dire Rat Lv. 100').is('alive') and olive == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
olive = True # reset next turn
elif unit('3:ally:5:Stunner Lv. 100').is('alive') and guava == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
guava = True # reset next turn
elif unit('3:ally:6:Wild Rat Lv. 100').is('alive') and guava == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
guava = True # reset next turn
elif unit('3:ally:7:Lab Rat Lv. 100').is('alive') and guava == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
guava = True # reset next turn
elif unit('3:ally:5:Stunner Lv. 100').is('alive') and gourd == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
gourd = True # reset next turn
elif unit('3:ally:6:Wild Rat Lv. 100').is('alive') and gourd == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
gourd = True # reset next turn
elif unit('3:ally:7:Lab Rat Lv. 100').is('alive') and gourd == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
green += 1
gourd = True # reset next turn
elif mango == False:
useSkill(10, 'random') # Giganto Tail (199960): Physical damage (2x, ATK) to all enemies
white += 1
mango = True # reset next turn
else:
attack('random')
white += 1
##
# Monster Info
##
#
# Monster Stunner Lv. 100 (101002021)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 130
# MAG 666
# SPR 180
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 100%
# Blind 100%
# Sleep 0%
# Silence 100%
# Paralyze 0%
# Confusion 100%
# Disease 0%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Grudge of the Rat (165610) [None]
#
# Fixed earth damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165610): Fixed earth damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Wild Rat Lv. 100 (101006010)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 130
# MAG 666
# SPR 180
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 100%
# Blind 100%
# Sleep 0%
# Silence 100%
# Paralyze 0%
# Confusion 100%
# Disease 0%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Grudge of the Rat (165620) [None]
#
# Fixed lightning damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165620): Fixed lightning damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Monster Info
##
#
# Monster Lab Rat Lv. 100 (101005004)
# Race Beast
# Level 100
# Actions 1-1
#
#
# Stats
# HP 9000000
# MP 66666
# ATK 666
# DEF 130
# MAG 666
# SPR 180
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 0%
# Lightning 0%
# Water 100%
# Wind 0%
# Earth 100%
# Light 0%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+10% / application)
# Poison 100%
# Blind 100%
# Sleep 0%
# Silence 100%
# Paralyze 0%
# Confusion 100%
# Disease 0%
# Petrify 100%
#
#
# Debuff resist
# ATK 0%
# DEF 0%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Skills
###
#
# Grudge of the Rat (165630) [None]
#
# Fixed dark damage (6666) to one enemy
# Inflict Disease (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Fascinating Glint (199840) [None]
#
# Inflict Charm (50%) on one enemy for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rat Virus (199850) [None]
#
# Inflict 2 random status effects (30%) to one enemy
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if once():
endTurn()
elif random() <= 0.30 and apple == False:
useSkill(1, 'random') # Grudge of the Rat (165630): Fixed dark damage (6666) to one enemy, Inflict Disease (100%) on one enemy
apple = True # reset next turn
elif random() <= 0.40 and apple == False:
useSkill(2, 'random') # Fascinating Glint (199840): Inflict Charm (50%) on one enemy for 3 turns
apple = True # reset next turn
elif random() <= 0.50 and apple == False:
useSkill(3, 'random') # Rat Virus (199850): Inflict 2 random status effects (30%) to one enemy
apple = True # reset next turn
else:
attack('random')
##
# Mission 'Bonus Stage 2' (8280902)
#
# Battles
# * Ettin
##
##
# Monster Info
##
#
# Monster Ettin (305002002)
# Race Human
# Level 100
# Actions 13-13
#
#
# Stats
# HP 30000000
# MP 10000
# ATK 650
# DEF 290
# MAG 450
# SPR 290
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire -50%
# Ice 50%
# 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 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 攻撃魔力50% (100025) [Passive]
#
# Increase ATK and MAG by 50%
#
##
###
# Skills
###
#
# Magnitude 8 (150290) [Physical]
#
# Physical earth damage (1.8x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Swing Down (164330) [Physical]
#
# Physical damage (1.8x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Stomp (165160) [Physical]
#
# Physical damage (2.2x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Rampage (165390) [Physical]
#
# Physical damage (3x, ATK) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Pistol Shot (171040) [None]
#
# Remove one enemy from the fight for 3 turns
# 50% HP damage to one enemy
# Unknown parameters: [50,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Enraged (171050) [None]
#
# Increase ATK, DEF, MAG and SPR by 20% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Further Enraged (171060) [None]
#
# Increase ATK, DEF, MAG and SPR by 40% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Furiously Enraged (171070) [None]
#
# Increase ATK, DEF, MAG and SPR by 60% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Angry Heart (171080) [None]
#
# Increase ATK, DEF, MAG and SPR by 100% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if honey == True:
endTurn()
green = 0
honey = False # persistent
elif green >= 9:
endTurn()
green = 0
elif self.hasBuff('any') and ramen == True:
useSkill(4, 'random') # Rampage (165390): Physical damage (3x, ATK) to all enemies
green += 1
ramen = False # persistent
honey = True # persistent
elif ramen == True:
useSkill(5, 'random') # Pistol Shot (171040): Remove one enemy from the fight for 3 turns, 50% HP damage to one enemy
green += 1
ramen = False # persistent
honey = True # persistent
elif green >= 8 and apple == False and once() and self.HP < 0.6:
useSkill(9, 'random') # Angry Heart (171080): Increase ATK, DEF, MAG and SPR by 100% for 2 turns to caster
green += 1
apple = True # reset next turn
ramen = True # persistent
elif green >= 8 and apple == False and once() and self.HP < 0.3:
useSkill(9, 'random') # Angry Heart (171080): Increase ATK, DEF, MAG and SPR by 100% for 2 turns to caster
green += 1
apple = True # reset next turn
ramen = True # persistent
elif green >= 8 and apple == False and salad == True:
useSkill(6, 'random') # Enraged (171050): Increase ATK, DEF, MAG and SPR by 20% for 2 turns to caster
green += 1
apple = True # reset next turn
salad = False # persistent
sushi = True # persistent
elif green >= 8 and apple == False and sushi == True:
useSkill(7, 'random') # Further Enraged (171060): Increase ATK, DEF, MAG and SPR by 40% for 2 turns to caster
green += 1
apple = True # reset next turn
bacon = True # persistent
sushi = False # persistent
elif green >= 8 and apple == False and bacon == True:
useSkill(8, 'random') # Furiously Enraged (171070): Increase ATK, DEF, MAG and SPR by 60% for 2 turns to caster
green += 1
apple = True # reset next turn
steak = True # persistent
bacon = False # persistent
elif self.hasBuff('any') and green >= 8 and apple == False and steak == True:
useSkill(4, 'random') # Rampage (165390): Physical damage (3x, ATK) to all enemies
green += 1
apple = True # reset next turn
salad = True # persistent
steak = False # persistent
elif green >= 8 and apple == False and steak == True:
useSkill(5, 'random') # Pistol Shot (171040): Remove one enemy from the fight for 3 turns, 50% HP damage to one enemy
green += 1
apple = True # reset next turn
salad = True # persistent
steak = False # persistent
elif green >= 8 and apple == False and once():
useSkill(6, 'random') # Enraged (171050): Increase ATK, DEF, MAG and SPR by 20% for 2 turns to caster
green += 1
apple = True # reset next turn
sushi = True # persistent
elif random() <= 0.30:
useSkill(2, 'random') # Swing Down (164330): Physical damage (1.8x, ATK) to one enemy
green += 1
elif random() <= 0.30:
useSkill(3, 'random') # Stomp (165160): Physical damage (2.2x, ATK) to one enemy
green += 1
elif random() <= 0.30 and berry == False:
useSkill(1, 'random') # Magnitude 8 (150290): Physical earth damage (1.8x, ATK) to all enemies
green += 1
berry = True # reset next turn
elif peach == False and self.HP < 0.5 and isTurnMod(2):
useSkill(1, 'random') # Magnitude 8 (150290): Physical earth damage (1.8x, ATK) to all enemies
green += 1
peach = True # reset next turn
else:
attack('random')
green += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.