Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created December 21, 2023 12:49
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/dfa135d110aac3ed342aa08ece708d92 to your computer and use it in GitHub Desktop.
Save aEnigmatic/dfa135d110aac3ed342aa08ece708d92 to your computer and use it in GitHub Desktop.
Yeti of Unknown Origin
##
# Mission 'Yeti of Unknown Origin' (95240101)
#
# Monsters
# * Abominable Snowbeast (900011364)
#
##
##
# Morale Rules - Before Battle
##
#
# Begin battle with 5% additional morale for every 3 EX levels included in party.Begin battle with 5% additional morale if all units in party are at EX +3.
# All units in party are EX+3
#
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
# [Both] Boost fire, lightning, or earth damage for ally (Once per status effect per unit per turn)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (915770) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 20% - Temperate Will (916913) [Player]
#
# Increase resistance to Ice and Earth by 150% for one turn to all allies
#
##
# 50% - Resurging Will (915320) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (915968) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Remedial Will (915541) [Player]
#
# Remove Zombie from all allies
# Remove all debuffs from all allies
#
##
# 115% - Scarring Despair (916116) [Enemy]
#
# Reduce healing received by 90% to all enemies for 4 turns
#
##
# 140% - Motionless Despair (915927) [Enemy]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
##
# 150% - Resilient Will (915321) [Player]
#
# Increase DEF and SPR by 400% for one turn to all allies (can not be removed)
#
##
# 180% - Resounding Will (915322) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Abominable Snowbeast (900011364)
# Race Beast, Demon, Human
# Level 99
# Actions 10-10
#
#
# Stats
# HP 200000000
# MP 100000
# ATK 300
# DEF 4000
# MAG 300
# SPR 4000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 85%
# Lightning -40%
# Water 85%
# Wind 85%
# Earth -40%
# Light 85%
# Dark 85%
# Non-Elemental 50%
#
#
# Status resist (+0% / 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
###
#
# TFA Passive 30/60 Tier 1 (920032) [Passive]
#
# Increase DEF and SPR by 60% and ATK and MAG by 30%
#
##
###
# Skills
###
#
# Chilling Flurry (902060) [Magic]
#
# Magic ice damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Spike (902061) [Magic]
#
# Magic earth damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frozen Earth (902059) [None]
#
# Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
else:
endTurn()
return
##
# Mission 'Yeti of Unknown Origin' (95240102)
#
# Monsters
# * Abominable Snowbeast (900011365)
#
##
##
# Morale Rules - Before Battle
##
#
# Begin battle with 5% additional morale.
#
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
# [Both] Boost fire, lightning, or earth damage for ally (Once per status effect per unit per turn)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (915770) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 20% - Temperate Will (916913) [Player]
#
# Increase resistance to Ice and Earth by 150% for one turn to all allies
#
##
# 50% - Resurging Will (915320) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (915968) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Remedial Will (915541) [Player]
#
# Remove Zombie from all allies
# Remove all debuffs from all allies
#
##
# 115% - Scarring Despair (916116) [Enemy]
#
# Reduce healing received by 90% to all enemies for 4 turns
#
##
# 140% - Motionless Despair (915927) [Enemy]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
##
# 150% - Resilient Will (915321) [Player]
#
# Increase DEF and SPR by 400% for one turn to all allies (can not be removed)
#
##
# 180% - Resounding Will (915322) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Abominable Snowbeast (900011365, 900011364)
# Race Beast, Demon, Human
# Level 99
# Actions 10-10
#
#
# Stats
# HP 300000000
# MP 100000
# ATK 700
# DEF 10000
# MAG 700
# SPR 10000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 85%
# Lightning -40%
# Water 85%
# Wind 85%
# Earth -40%
# Light 85%
# Dark 85%
# Non-Elemental 50%
#
#
# Status resist (+0% / 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
###
#
# TFA Passive 40/70 Tier 2 (920033) [Passive]
#
# Increase DEF and SPR by 70% and ATK and MAG by 40%
#
##
###
# Skills
###
#
# Chilling Flurry (902060) [Magic]
#
# Magic ice damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Spike (902061) [Magic]
#
# Magic earth damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frozen Earth (902059) [None]
#
# Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
else:
endTurn()
return
##
# Mission 'Yeti of Unknown Origin' (95240103)
#
# Monsters
# * Abominable Snowbeast (900011366)
#
##
##
# Morale Rules - Before Battle
##
#
# Begin battle with 12% additional morale.
#
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
# [Both] Boost fire, lightning, or earth damage for ally (Once per status effect per unit per turn)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (915770) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 20% - Temperate Will (916913) [Player]
#
# Increase resistance to Ice and Earth by 150% for one turn to all allies
#
##
# 50% - Resurging Will (915320) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (915968) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Remedial Will (915541) [Player]
#
# Remove Zombie from all allies
# Remove all debuffs from all allies
#
##
# 115% - Scarring Despair (916116) [Enemy]
#
# Reduce healing received by 90% to all enemies for 4 turns
#
##
# 140% - Motionless Despair (915927) [Enemy]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
##
# 150% - Resilient Will (915321) [Player]
#
# Increase DEF and SPR by 400% for one turn to all allies (can not be removed)
#
##
# 180% - Resounding Will (915322) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Abominable Snowbeast (900011366)
# Race Beast, Demon, Human
# Level 99
# Actions 15-15
#
#
# Stats
# HP 400000000
# MP 100000
# ATK 1000
# DEF 15000
# MAG 1000
# SPR 15000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 85%
# Lightning -40%
# Water 85%
# Wind 85%
# Earth -40%
# Light 85%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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
###
#
# TFA Passive 50/80 Tier 3 (920034) [Passive]
#
# Increase DEF and SPR by 80% and ATK and MAG by 50%
#
##
###
# Skills
###
#
# Chilling Flurry (902060) [Magic]
#
# Magic ice damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Spike (902061) [Magic]
#
# Magic earth damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frozen Earth (902059) [None]
#
# Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Claws (902057) [Magic]
#
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Roar (902058) [Magic]
#
# Magic damage (8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Trembling Earth (902062) [Magic]
#
# Magic earth damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chilling Icicle (902063) [Magic]
#
# Magic ice damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Wave (902064) [Magic]
#
# Magic damage (20x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Intimidating Roar (902065) [None]
#
# Reduce DEF and SPR by 50% for one turn to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if not var_73:
var_73 = True # unknown flag type (73)
green += 1
wait()
return
if green == 1:
if not apple:
apple = True # reset next turn
useSkill(4, 'random') # Mystic Claws (902057): Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(5, 'random') # Mystic Roar (902058): Magic damage (8x, MAG) to all enemies
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 2:
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 3:
if not apple:
apple = True # reset next turn
useSkill(6, 'random') # Trembling Earth (902062): Magic earth damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(7, 'random') # Chilling Icicle (902063): Magic ice damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(8, 'random') # Mystic Wave (902064): Magic damage (20x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(9, 'random') # Intimidating Roar (902065): Reduce DEF and SPR by 50% for one turn to all enemies
return
else:
green = 0
wait()
return
else:
endTurn()
return
##
# Mission 'Yeti of Unknown Origin' (95240104)
#
# Monsters
# * Abominable Snowbeast (900011367)
#
##
##
# Morale Rules - Before Battle
##
#
# Begin battle with 20% additional morale.
#
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
# [Both] Boost fire, lightning, or earth damage for ally (Once per status effect per unit per turn)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (915770) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 20% - Temperate Will (916913) [Player]
#
# Increase resistance to Ice and Earth by 150% for one turn to all allies
#
##
# 50% - Resurging Will (915320) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (915968) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Remedial Will (915541) [Player]
#
# Remove Zombie from all allies
# Remove all debuffs from all allies
#
##
# 115% - Scarring Despair (916116) [Enemy]
#
# Reduce healing received by 90% to all enemies for 4 turns
#
##
# 140% - Motionless Despair (915927) [Enemy]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
##
# 150% - Resilient Will (915321) [Player]
#
# Increase DEF and SPR by 400% for one turn to all allies (can not be removed)
#
##
# 180% - Resounding Will (915322) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Abominable Snowbeast (900011367, 900011366)
# Race Beast, Demon, Human
# Level 99
# Actions 15-15
#
#
# Stats
# HP 600000000
# MP 100000
# ATK 1300
# DEF 22000
# MAG 1300
# SPR 22000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 85%
# Lightning -40%
# Water 85%
# Wind 85%
# Earth -40%
# Light 85%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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
###
#
# TFA Passive 60/90 Tier 4 (920035) [Passive]
#
# Increase DEF and SPR by 90% and ATK and MAG by 60%
#
##
###
# Skills
###
#
# Chilling Flurry (902060) [Magic]
#
# Magic ice damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Spike (902061) [Magic]
#
# Magic earth damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frozen Earth (902059) [None]
#
# Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Claws (902057) [Magic]
#
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Roar (902058) [Magic]
#
# Magic damage (8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Trembling Earth (902062) [Magic]
#
# Magic earth damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chilling Icicle (902063) [Magic]
#
# Magic ice damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Wave (902064) [Magic]
#
# Magic damage (20x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Intimidating Roar (902065) [None]
#
# Reduce DEF and SPR by 50% for one turn to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if not var_73:
var_73 = True # unknown flag type (73)
green += 1
wait()
return
if green == 1:
if not apple:
apple = True # reset next turn
useSkill(4, 'random') # Mystic Claws (902057): Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(5, 'random') # Mystic Roar (902058): Magic damage (8x, MAG) to all enemies
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 2:
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 3:
if not apple:
apple = True # reset next turn
useSkill(6, 'random') # Trembling Earth (902062): Magic earth damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(7, 'random') # Chilling Icicle (902063): Magic ice damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(8, 'random') # Mystic Wave (902064): Magic damage (20x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(9, 'random') # Intimidating Roar (902065): Reduce DEF and SPR by 50% for one turn to all enemies
return
else:
green = 0
wait()
return
else:
endTurn()
return
##
# Mission 'Yeti of Unknown Origin' (95240105)
# Enemy has first strike!
#
# Monsters
# * Abominable Snowbeast (900011368)
#
##
##
# Morale Rules - Before Battle
##
#
# Begin battle with 30% additional morale.
#
##
##
# Morale Rules - During Battle
##
#
# [Enemy] Player unit is KO'ed
# [Player] Attack enemy's weakness (Once per ability cast)
# [Both] Inflict enemy with status ailment (Once per ailment per turn)
# [Both] Boost ATK, DEF, MAG, SPR or reduce damage taken for ally (Once per status effect per unit per turn)
# [Both] Reduce ATK, DEF, MAG, or SPR for enemy (Once per status effect per unit per turn)
# [Both] Restore HP or MP for ally (Once per ability cast)
# [Both] Boost fire, lightning, or earth damage for ally (Once per status effect per unit per turn)
#
##
##
# Morale Thresholds
##
# 10% - Fatal Despair (915770) [Enemy]
#
# Instant KO (100%) to all enemies (ignores death resist)
#
##
# 20% - Temperate Will (916913) [Player]
#
# Increase resistance to Ice and Earth by 150% for one turn to all allies
#
##
# 50% - Resurging Will (915320) [Player]
#
# Restore 5000 HP to all allies
# Restore 500 MP to all allies
#
##
# 60% - Enervating Despair (915968) [Enemy]
#
# Remove all buffs from all enemies
# Remove resistances to Poison, Blind, Sleep, Silence, Paralyze, Confusion, Disease and Petrify from all enemies for 2 turns
# Hybrid* damage (0.1x, ATK & MAG) as MP drain (10%) to all enemies
#
##
# 110% - Remedial Will (915541) [Player]
#
# Remove Zombie from all allies
# Remove all debuffs from all allies
#
##
# 115% - Scarring Despair (916116) [Enemy]
#
# Reduce healing received by 90% to all enemies for 4 turns
#
##
# 140% - Motionless Despair (915927) [Enemy]
#
# Inflict Stop (100%) for 2 turns on one enemy
#
##
# 150% - Resilient Will (915321) [Player]
#
# Increase DEF and SPR by 400% for one turn to all allies (can not be removed)
#
##
# 180% - Resounding Will (915322) [Player]
#
# Increase ATK and MAG by 400% for one turn to all allies (can not be removed)
#
##
##
# Monster Info
##
#
# Monster Abominable Snowbeast (900011368)
# Race Beast, Demon, Human
# Level 99
# Actions 20-20
#
#
# Stats
# HP 800000000
# MP 100000
# ATK 2000
# DEF 40000
# MAG 2000
# SPR 40000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 85%
# Lightning -40%
# Water 85%
# Wind 85%
# Earth -40%
# Light 85%
# Dark 85%
# Non-Elemental 80%
#
#
# Status resist (+0% / 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
###
#
# TFA Passive 70/100 Tier 5 (920036) [Passive]
#
# Increase DEF and SPR by 100% and ATK and MAG by 70%
#
##
###
# Skills
###
#
# Chilling Flurry (902060) [Magic]
#
# Magic ice damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Earth Spike (902061) [Magic]
#
# Magic earth damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Frozen Earth (902059) [None]
#
# Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Claws (902057) [Magic]
#
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
# Magic damage (30x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Roar (902058) [Magic]
#
# Magic damage (8x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Trembling Earth (902062) [Magic]
#
# Magic earth damage (60x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Chilling Icicle (902063) [Magic]
#
# Magic ice damage (100x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Mystic Wave (902064) [Magic]
#
# Magic damage (20x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Intimidating Roar (902065) [None]
#
# Reduce DEF and SPR by 50% for one turn to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Call of the Wild (902046) [None]
#
# Increase ATK and MAG by 50% for one turn to caster (can not be removed)
# Increase DEF and SPR by 75% for 2 turns to caster (can not be removed)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Strength of the Wild (902047) [None]
#
# Increase ATK, DEF, MAG and SPR by 100% for one turn to caster (can not be removed)
# Remove resistances to Paralyze from all enemies for one turn
# Inflict Paralyze (100%) on all enemies
# Increase morale by 3000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beastly Power (902048) [Magic]
#
# Increase ATK, DEF, MAG and SPR by 100% for one turn to caster (can not be removed)
# Magic damage (100x, MAG) to all enemies
# Increase morale by 3000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beastly Concentration (902049) [None]
#
# Increase DEF and SPR by 50% and ATK and MAG by 25% for one turn to caster (can not be removed)
# Increase morale by 1000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beastly Tenacity (902050) [None]
#
# Increase DEF and SPR by 75% and ATK and MAG by 50% for one turn to caster (can not be removed)
# Increase morale by 3000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beastly Perseverance (902051) [None]
#
# Increase DEF and SPR by 100% and ATK and MAG by 75% for one turn to caster (can not be removed)
# Increase morale by 5000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Abominable Defense (902052) [None]
#
# Reduce damage taken from physical attacks taken by 50% to caster for one turn
# Reduce damage taken by magic attacks by 75% to caster for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The enemy is about to overcome its limits! (902053) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feral Ferocity I (902054) [None]
#
# Increase ATK and MAG by 50% for one turn to caster (can not be removed)
# Increase morale by 6000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feral Ferocity II (902055) [None]
#
# Increase ATK and MAG by 75% for one turn to caster (can not be removed)
# Increase morale by 9000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Feral Ferocity III (902056) [None]
#
# Increase ATK and MAG by 100% for one turn to caster (can not be removed)
# Increase morale by 12000 for this team
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Demoralizing Roar (902066) [None]
#
# Remove resistances to Petrify from all enemies for one turn
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Petrifying Roar (902067) [None]
#
# Inflict Petrify (100%) on all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Furious Landslide (902068) [Magic]
#
# Magic earth damage (150x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if isFirstTurn():
useSkill(10, 'random') # Call of the Wild (902046): Increase ATK and MAG by 50% for one turn to caster (can not be removed), Increase DEF and SPR by 75% for 2 turns to caster (can not be removed)
endTurn()
return
if not var_70:
if not self.sufferedDamageLastTurn('physical', 'thunder') \
or not self.sufferedDamageLastTurn('magical', 'thunder') \
or not self.sufferedDamageLastTurn('magical|physical', 'fire|quake'):
var_70 = True # unknown flag type (70)
wait()
return
if not var_71:
var_71 = True # unknown flag type (71)
var_70 = True # unknown flag type (70)
useSkill(11, 'random') # Strength of the Wild (902047): Increase ATK, DEF, MAG and SPR by 100% for one turn to caster (can not be removed), Remove resistances to Paralyze from all enemies for one turn, Inflict Paralyze (100%) on all enemies, Increase morale by 3000 for this team
return
if honey and not var_72:
var_72 = True # unknown flag type (72)
honey = False # persistent
if conditionNotImplemented('physics_fire_lb:0') \
or conditionNotImplemented('physics_ice_lb:0') \
or conditionNotImplemented('physics_thunder_lb:0') \
or conditionNotImplemented('physics_water_lb:0') \
or conditionNotImplemented('physics_aero_lb:0') \
or conditionNotImplemented('physics_quake_lb:0') \
or conditionNotImplemented('physics_light_lb:0') \
or conditionNotImplemented('physics_dark_lb:0') \
or conditionNotImplemented('magic_fire_lb:0') \
or conditionNotImplemented('magic_ice_lb:0') \
or conditionNotImplemented('magic_thunder_lb:0') \
or conditionNotImplemented('magic_water_lb:0') \
or conditionNotImplemented('magic_aero_lb:0') \
or conditionNotImplemented('magic_quake_lb:0') \
or conditionNotImplemented('magic_light_lb:0') \
or conditionNotImplemented('magic_dark_lb:0') \
or conditionNotImplemented('physics_none_lb:0') \
or conditionNotImplemented('magic_none_lb:0'):
wait()
return
else:
useSkill(12, 'random') # Beastly Power (902048): Increase ATK, DEF, MAG and SPR by 100% for one turn to caster (can not be removed), Magic damage (100x, MAG) to all enemies, Increase morale by 3000 for this team
return
if self.HP < 0.5 and once():
ramen = True # persistent
wait()
return
if not var_73:
var_73 = True # unknown flag type (73)
green += 1
wait()
return
if green == 1:
if not apple:
apple = True # reset next turn
useSkill(4, 'random') # Mystic Claws (902057): Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies, Magic damage (30x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(5, 'random') # Mystic Roar (902058): Magic damage (8x, MAG) to all enemies
return
if not peach:
peach = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if not ramen:
if green == 2:
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(5, 'random') # Mystic Roar (902058): Magic damage (8x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 3:
if not apple:
apple = True # reset next turn
useSkill(6, 'random') # Trembling Earth (902062): Magic earth damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(7, 'random') # Chilling Icicle (902063): Magic ice damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(8, 'random') # Mystic Wave (902064): Magic damage (20x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(9, 'random') # Intimidating Roar (902065): Reduce DEF and SPR by 50% for one turn to all enemies
return
if ramen:
if green == 2:
if not apple:
apple = True # reset next turn
useSkill(6, 'random') # Trembling Earth (902062): Magic earth damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(7, 'random') # Chilling Icicle (902063): Magic ice damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(8, 'random') # Mystic Wave (902064): Magic damage (20x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(21, 'random') # Demoralizing Roar (902066): Remove resistances to Petrify from all enemies for one turn
return
if not mango:
mango = True # reset next turn
useSkill(3, 'random') # Frozen Earth (902059): Reduce resistance to Ice and Earth by 200% for 3 turns to all enemies
return
if green == 3:
if not apple:
apple = True # reset next turn
useSkill(1, 'random') # Chilling Flurry (902060): Magic ice damage (60x, MAG) to all enemies
return
if not berry:
berry = True # reset next turn
useSkill(2, 'random') # Earth Spike (902061): Magic earth damage (100x, MAG) to one enemy
return
if not peach:
peach = True # reset next turn
useSkill(5, 'random') # Mystic Roar (902058): Magic damage (8x, MAG) to all enemies
return
if not olive:
olive = True # reset next turn
useSkill(22, 'random') # Petrifying Roar (902067): Inflict Petrify (100%) on all enemies
return
if not mango:
mango = True # reset next turn
useSkill(9, 'random') # Intimidating Roar (902065): Reduce DEF and SPR by 50% for one turn to all enemies
return
if self.HP < 0.75:
if once():
useSkill(13, 'random') # Beastly Concentration (902049): Increase DEF and SPR by 50% and ATK and MAG by 25% for one turn to caster (can not be removed), Increase morale by 1000 for this team
return
if once():
useSkill(23, 'random') # Furious Landslide (902068): Magic earth damage (150x, MAG) to all enemies
return
if self.HP < 0.5 and once():
useSkill(14, 'random') # Beastly Tenacity (902050): Increase DEF and SPR by 75% and ATK and MAG by 50% for one turn to caster (can not be removed), Increase morale by 3000 for this team
return
if self.HP < 0.25 and once():
useSkill(15, 'random') # Beastly Perseverance (902051): Increase DEF and SPR by 100% and ATK and MAG by 75% for one turn to caster (can not be removed), Increase morale by 5000 for this team
return
if green == 3:
if not var_61:
var_61 = True # reset next turn
useSkill(16, 'random') # Abominable Defense (902052): Reduce damage taken from physical attacks taken by 50% to caster for one turn, Reduce damage taken by magic attacks by 75% to caster for one turn
return
if not var_62:
var_62 = True # reset next turn
useSkill(10, 'random') # Call of the Wild (902046): Increase ATK and MAG by 50% for one turn to caster (can not be removed), Increase DEF and SPR by 75% for 2 turns to caster (can not be removed)
return
if not var_63:
var_72 = True # unknown flag type (72)
var_63 = True # reset next turn
honey = True # persistent
useSkill(17, 'random') # The enemy is about to overcome its limits! (902053): No effect
return
if isTurn(16) and once():
sushi = True # persistent
wait()
return
if isTurn(21) and once():
bacon = True # persistent
sushi = False # persistent
wait()
return
if isTurn(26) and once():
steak = True # persistent
bacon = False # persistent
wait()
return
if sushi and not var_64:
var_64 = True # reset next turn
useSkill(18, 'random') # Feral Ferocity I (902054): Increase ATK and MAG by 50% for one turn to caster (can not be removed), Increase morale by 6000 for this team
return
if bacon and not var_65:
var_65 = True # reset next turn
useSkill(19, 'random') # Feral Ferocity II (902055): Increase ATK and MAG by 75% for one turn to caster (can not be removed), Increase morale by 9000 for this team
return
if steak and not var_66:
var_66 = True # unknown flag type (66)
useSkill(20, 'random') # Feral Ferocity III (902056): Increase ATK and MAG by 100% for one turn to caster (can not be removed), Increase morale by 12000 for this team
return
if green == 3:
green = 0
wait()
return
else:
endTurn()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment