Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Crimson SE - Bonus Stage
##
# Mission 'Bonus Stage 1' (8380901)
# Enemy has first strike!
#
# Battles
# * Snatcher
##
##
# Monster Info
##
#
# Monster Snatcher (208005001)
# Race Fairy
# Level 99
# Actions 9-9
#
#
# Stats
# HP 29000000
# MP 10000
# ATK 480
# DEF 9999
# MAG 490
# SPR 200
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 200%
# Ice 200%
# Lightning 200%
# Water 200%
# Wind 200%
# Earth 200%
# Light 200%
# Dark 200%
# 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 100%
# DEF 100%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Resistance Shift (205730) [None]
#
# Reduce resistance to Fire by 300% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance Shift (205740) [None]
#
# Reduce resistance to Ice by 300% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance Shift (205750) [None]
#
# Reduce resistance to Lightning by 300% for 3 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance Shift - MAG (205770) [None]
#
# Reduce MAG by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance Shift - DEF (205780) [None]
#
# Reduce DEF by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Resistance Shift (205790) [None]
#
# Increase resistance to Water, Wind, Earth, Light and Dark by 30% and reduce resistance to Fire, Ice and Lightning by 50% for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Firaga (205800) [Magic]
#
# Magic fire damage (2.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Blizzaga (205810) [Magic]
#
# Magic ice damage (2.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Thundaga (205820) [Magic]
#
# Magic lightning damage (2.5x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Sleep (155780) [Magic]
#
# Inflict Sleep (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Bioga (205830) [Magic]
#
# Magic dark damage (2.5x, MAG) to all enemies
# Inflict Poison (100%) on all enemies
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Confuse (164500) [Magic]
#
# Inflict Confusion (100%) on one enemy
# Unknown parameters: [1]
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Resistance Shift (205760) [None]
#
# Reduce resistance to Lightning by 300% for 2 turns to caster
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(13, 'random') # Resistance Shift (205760): Reduce resistance to Lightning by 300% for 2 turns to caster
apple = True # reset next turn
elif random() <= 0.33 and isTurnMod(3) and berry == False:
useSkill(3, 'random') # Resistance Shift (205750): Reduce resistance to Lightning by 300% for 3 turns to caster
berry = True # reset next turn
elif random() <= 0.34 and isTurnMod(3) and berry == False:
useSkill(2, 'random') # Resistance Shift (205740): Reduce resistance to Ice by 300% for 3 turns to caster
berry = True # reset next turn
elif isTurnMod(3) and berry == False:
useSkill(1, 'random') # Resistance Shift (205730): Reduce resistance to Fire by 300% for 3 turns to caster
berry = True # reset next turn
elif self.HP < 0.5 and olive == False:
useSkill(9, 'random') # Thundaga (205820): Magic lightning damage (2.5x, MAG) to all enemies
olive = True # reset next turn
elif random() <= 0.33 and grape == False:
useSkill(8, 'random') # Blizzaga (205810): Magic ice damage (2.5x, MAG) to all enemies
grape = True # reset next turn
elif random() <= 0.34 and grape == False:
useSkill(9, 'random') # Thundaga (205820): Magic lightning damage (2.5x, MAG) to all enemies
grape = True # reset next turn
elif grape == False:
useSkill(7, 'random') # Firaga (205800): Magic fire damage (2.5x, MAG) to all enemies
grape = True # reset next turn
elif random() <= 0.33 and peach == False:
useSkill(6, 'random') # Resistance Shift (205790): Increase resistance to Water, Wind, Earth, Light and Dark by 30% and reduce resistance to Fire, Ice and Lightning by 50% for 3 turns to all enemies
peach = True # reset next turn
elif random() <= 0.34 and peach == False:
useSkill(5, 'random') # Resistance Shift - DEF (205780): Reduce DEF by 50% for 3 turns to all enemies
peach = True # reset next turn
elif peach == False:
useSkill(4, 'random') # Resistance Shift - MAG (205770): Reduce MAG by 50% for 3 turns to all enemies
peach = True # reset next turn
elif isTurnMod(2) and mango == False:
useSkill(11, 'random') # Bioga (205830): Magic dark damage (2.5x, MAG) to all enemies, Inflict Poison (100%) on all enemies
mango = True # reset next turn
elif random() <= 0.50 and lemon == False:
useSkill(10, 'random') # Sleep (155780): Inflict Sleep (100%) on one enemy
lemon = True # reset next turn
elif lemon == False:
useSkill(12, 'random') # Confuse (164500): Inflict Confusion (100%) on one enemy
lemon = True # reset next turn
else:
attack('random')
##
# Mission 'Bonus Stage 2' (8380902)
# Enemy has first strike!
#
# Battles
# * Cursed Knight
##
##
# Monster Info
##
#
# Monster Cursed Knight (312003001)
# Race Reaper
# Level 99
# Actions 15-15
#
#
# Stats
# HP 35000000
# MP 10000
# ATK 370
# DEF 200
# MAG 335
# SPR 250
#
#
# 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 100%
# DEF 0%
# MAG 100%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
# Unknown (7) +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
#
# 火属性吸収 (100003) [Passive]
#
# Absorb Fire elemental attacks
#
##
#
# 物理カウンターグレイブ・カウンタ (100055) [Passive]
#
# 100% chance to counter physical attacks with Mighty Defense (205880) to the attacker (max 3 / turn)
# 100% chance to counter magic attacks with Multiheal (205890) to the attacker (max 3 / turn)
#
##
###
# Skills
###
#
# Mortal Glaive (205840) [Physical]
#
# Physical damage (4x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruin Parade (205850) [Magic]
#
# Magic damage (5.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glaive (205860) [Physical]
#
# Physical damage (2x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Napalm (205870) [Magic]
#
# Magic fire damage (3x, MAG) to all enemies
# Add Fire element (100%) to physical attacks for 3 turns to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Glaive Counter (205880) [Physical]
#
# Physical damage (1.3x, ATK) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruin Counter (205890) [Magic]
#
# Magic damage (1.3x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(4, 'random') # Napalm (205870): Magic fire damage (3x, MAG) to all enemies, Add Fire element (100%) to physical attacks for 3 turns to all enemies
elif once():
useSkill(1, 'highest SPR') # Mortal Glaive (205840): Physical damage (4x, ATK) to one enemy
elif once():
useSkill(1, 'highest SPR') # Mortal Glaive (205840): Physical damage (4x, ATK) to one enemy
apple = True # reset next turn
elif honey == False and green >= 9:
endTurn()
green = 0
elif self.HP < 0.5 and timesExecuted() < 3:
useSkill(1, 'hp_min') # Mortal Glaive (205840): Physical damage (4x, ATK) to one enemy
green += 1
elif self.HP < 0.5 and once():
useSkill(4, 'random') # Napalm (205870): Magic fire damage (3x, MAG) to all enemies, Add Fire element (100%) to physical attacks for 3 turns to all enemies
apple = True # reset next turn
honey = True # persistent
elif honey == True and berry == False and isTurnMod(2):
useSkill(4, 'random') # Napalm (205870): Magic fire damage (3x, MAG) to all enemies, Add Fire element (100%) to physical attacks for 3 turns to all enemies
berry = True # reset next turn
elif self.HP > 0.5 and isTurnMod(3) and peach == False:
useSkill(2, 'random') # Ruin Parade (205850): Magic damage (5.5x, MAG) to all enemies
green += 1
peach = True # reset next turn
elif self.HP < 0.5 and isTurnMod(2) and peach == False:
useSkill(2, 'random') # Ruin Parade (205850): Magic damage (5.5x, MAG) to all enemies
green += 1
peach = True # reset next turn
elif honey == True and peach == False:
useSkill(1, 'random') # Mortal Glaive (205840): Physical damage (4x, ATK) to one enemy
green += 1
peach = True # reset next turn
elif random() <= 0.50:
useSkill(3, 'random') # Glaive (205860): Physical damage (2x, ATK) to one enemy
green += 1
else:
attack('random')
green += 1
##
# Mission 'Bonus Stage 3' (8380903)
# Enemy has first strike!
#
# Battles
# * Heartburn [+ Heartburn, Heartburn]
##
##
# Monster Info
##
#
# Monster Heartburn (204017003)
# Race Demon
# Level 100
# Actions 10-10
#
#
# Stats
# HP 43000000
# MP 10000
# ATK 450
# DEF 160
# MAG 530
# SPR 150
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 100%
# Light 100%
# Dark 100%
# Non-Elemental 0%
#
#
# Status resist (+25% / application)
# Poison 100%
# Blind 25%
# Sleep 100%
# Silence 100%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Chaos Impact (205940) [Magic]
#
# Magic damage (2.5x, MAG) to all enemies
# Inflict one random status effect (Poison, Blind, Sleep, Silence, Paralyze and Disease 10%) to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Drain (205950) [Magic]
#
# Magic damage (4x, MAG) as MP drain (400%) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dispelga (205960) [Magic]
#
# Remove all buffs and debuffs from all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Power of Poison and Darkness (205970) [None]
#
# Add Dark element (100%) to physical attacks for 3 turns to all enemies
# Unused parameters: [1]
# Inflict one random status effect (Poison 100%) to all enemies
# Unused parameters: [1]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Summon (205980) [None]
#
# Summon ally #2
# Summon ally #3
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Demonic Nova (205990) [Magic]
#
# Magic damage (5.5x * 1.33 = 7.33x, MAG) to all enemies (ignore reflect)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultima (206000) [Magic]
#
# Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
green = 0
elif honey == False and green >= 5:
endTurn()
green = 0
elif once():
useSkill(5, 'random') # Summon (205980): Summon Heartburn (204017002), Summon Heartburn (204017001)
elif once():
useSkill(4, 'random') # Power of Poison and Darkness (205970): Add Dark element (100%) to physical attacks for 3 turns to all enemies, Inflict one random status effect (Poison 100%) to all enemies
apple = True # reset next turn
elif self.HP < 0.9 and once():
useSkill(6, 'random') # Demonic Nova (205990): Magic damage (5.5x * 1.33 = 7.33x, MAG) to all enemies (ignore reflect)
apple = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(6, 'random') # Demonic Nova (205990): Magic damage (5.5x * 1.33 = 7.33x, MAG) to all enemies (ignore reflect)
apple = True # reset next turn
honey = True # persistent
elif honey == True and isTurnMod(5):
useSkill(6, 'random') # Demonic Nova (205990): Magic damage (5.5x * 1.33 = 7.33x, MAG) to all enemies (ignore reflect)
apple = True # reset next turn
elif isTurnMod(5) and mango == False:
useSkill(3, 'random') # Dispelga (205960): Remove all buffs and debuffs from all enemies
green += 1
mango = True # reset next turn
elif isTurnMod(3) and lemon == False:
useSkill(4, 'random') # Power of Poison and Darkness (205970): Add Dark element (100%) to physical attacks for 3 turns to all enemies, Inflict one random status effect (Poison 100%) to all enemies
green += 1
lemon = True # reset next turn
elif isTurnMod(4) and peach == False:
useSkill(2, 'highest MP') # Drain (205950): Magic damage (4x, MAG) as MP drain (400%) to one enemy
green += 1
peach = True # reset next turn
elif isTurnMod(5) and olive == False:
useSkill(1, 'random') # Chaos Impact (205940): Magic damage (2.5x, MAG) to all enemies, Inflict one random status effect (Poison, Blind, Sleep, Silence, Paralyze and Disease 10%) to all enemies
green += 1
olive = True # reset next turn
elif self.HP < 0.7 and berry == False and isTurnMod(2):
useSkill(7, 'random') # Ultima (206000): Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
green += 1
berry = True # reset next turn
else:
attack('random')
green += 1
##
# Monster Info
##
#
# Monster Heartburn (204017002)
# Race Demon
# Level 99
# Actions 3-3
#
#
# Stats
# HP 17000000
# MP 10000
# ATK 400
# DEF 150
# MAG 500
# SPR 150
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 100%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+25% / application)
# Poison 100%
# Blind 25%
# Sleep 100%
# Silence 50%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Dark Ball (205910) [Magic]
#
# Magic dark damage (2.3x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hellfire (205900) [Magic]
#
# Magic fire damage (2.3x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultima (205920) [Magic]
#
# Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hurricane (205930) [Magic]
#
# 30% HP damage to all enemies
# Unknown parameters: [30,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if unit('2:ally:204017001:Heartburn').is('alive') and unit('2:ally:204017003:Heartburn').is('alive') and apple == True:
endTurn()
elif once():
useSkill(1, 'random') # Dark Ball (205910): Magic dark damage (2.3x, MAG) to one enemy
apple = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(3, 'random') # Ultima (205920): Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
apple = True # reset next turn
elif random() <= 0.50 and berry == False:
useSkill(2, 'random') # Hellfire (205900): Magic fire damage (2.3x, MAG) to one enemy
berry = True # reset next turn
apple = True # reset next turn
elif berry == False:
useSkill(4, 'random') # Hurricane (205930): 30% HP damage to all enemies
berry = True # reset next turn
apple = True # reset next turn
else:
useSkill(1, 'random') # Dark Ball (205910): Magic dark damage (2.3x, MAG) to one enemy
apple = True # reset next turn
##
# Monster Info
##
#
# Monster Heartburn (204017001)
# Race Demon
# Level 99
# Actions 3-3
#
#
# Stats
# HP 17000000
# MP 10000
# ATK 400
# DEF 150
# MAG 500
# SPR 150
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 100%
# Dark 0%
# Non-Elemental 0%
#
#
# Status resist (+25% / application)
# Poison 100%
# Blind 25%
# Sleep 100%
# Silence 50%
# Paralyze 100%
# Confusion 100%
# Disease 100%
# Petrify 100%
#
#
# Debuff resist
# ATK 100%
# DEF 100%
# MAG 0%
# SPR 100%
# Stop 100%
# Charm 100%
# Berserk 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 全ステ50% (100015) [Passive]
#
# Increase ATK, DEF, MAG and SPR by 50%
#
##
###
# Skills
###
#
# Dark Ball (205910) [Magic]
#
# Magic dark damage (2.3x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hellfire (205900) [Magic]
#
# Magic fire damage (2.3x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ultima (205920) [Magic]
#
# Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Hurricane (205930) [Magic]
#
# 30% HP damage to all enemies
# Unknown parameters: [30,100]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if unit('2:ally:204017002:Heartburn').is('alive') and unit('2:ally:204017003:Heartburn').is('alive') and apple == True:
endTurn()
elif once():
useSkill(1, 'random') # Dark Ball (205910): Magic dark damage (2.3x, MAG) to one enemy
apple = True # reset next turn
elif self.HP < 0.5 and once():
useSkill(3, 'random') # Ultima (205920): Magic damage (2.8x * 1.33 = 3.73x, MAG) to all enemies (ignore reflect)
apple = True # reset next turn
elif random() <= 0.50 and berry == False:
useSkill(1, 'random') # Dark Ball (205910): Magic dark damage (2.3x, MAG) to one enemy
berry = True # reset next turn
apple = True # reset next turn
elif berry == False:
useSkill(2, 'random') # Hellfire (205900): Magic fire damage (2.3x, MAG) to one enemy
berry = True # reset next turn
apple = True # reset next turn
else:
useSkill(1, 'random') # Dark Ball (205910): Magic dark damage (2.3x, MAG) to one enemy
apple = True # reset next turn
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.