Created
August 14, 2021 20:50
-
-
Save aEnigmatic/95ea2b80a37eaa77755e6818b237beb8 to your computer and use it in GitHub Desktop.
Dragon from Across Time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Mission 'Dragon from Across Time' (71010101) | |
# Enemy has first strike! | |
# | |
# Battles | |
# * Undead Dragon Osta | |
## | |
## | |
# Monster Info | |
## | |
# | |
# Monster Undead Dragon Osta (900011066) | |
# Race Dragon, Reaper | |
# Level 1 | |
# Actions 30-30 | |
# | |
# NEW DAMAGE FORMULA! (5, 25, 185) | |
# | |
# | |
# Stats | |
# HP 100000000 | |
# MP 100000 | |
# ATK 200 | |
# DEF 1000 | |
# MAG 200 | |
# SPR 1000 | |
# | |
# | |
# Damage resist | |
# physical 0% | |
# magical 0% | |
# | |
# | |
# Element resist | |
# Fire -20% | |
# Ice 50% | |
# Lightning 80% | |
# Water 80% | |
# Wind -50% | |
# Earth -20% | |
# Light 50% | |
# Dark 80% | |
# Non-Elemental 50% | |
# | |
# | |
# 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 + | |
# Unknown (7) + | |
# | |
### | |
### | |
# Passives | |
### | |
# | |
# TFA 2: Osta Tier 1 (920003) [Passive] | |
# | |
# Increase ATK, DEF, MAG and SPR by 30% | |
# | |
## | |
### | |
# Skills | |
### | |
# | |
# Pernicious Breath I (901027) [Magic] | |
# | |
# Inflict one random status effect (30%) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Osta is accumulating dark energy! (901032) [Hybrid] | |
# | |
# No effect | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Dark Rage of the Dragon (901033) [Magic] | |
# | |
# Magic dark damage (20x, MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Corrosive Mist I (901036) [Hybrid] | |
# | |
# Reduce DEF and SPR by 35% for 3 turns to all enemies | |
# Unknown active effect type '1015': [300,0,0,0,0,2,0] | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Deathly Plague (901041) [Hybrid] | |
# | |
# Remove all buffs from all enemies | |
# Remove resistances to Poison from all enemies for 3 turns | |
# Inflict Poison (100%) on all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Osta's willpower has strengthened! (901049) [Hybrid] | |
# | |
# Unknown active effect type '1015': [500,100,[2,4,7],0,0,1,0] | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Allies' willpower has strengthened! (901050) [Hybrid] | |
# | |
# Unknown active effect type '1015': [-250,-50,[1,5,6],0,0,1,0] | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Undying Dragon (901051) [Hybrid] | |
# | |
# Increase DEF and SPR by 100% for 2 turns to caster (can not be removed) | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Osta is accumulating elemental energy! (901052) [Hybrid] | |
# | |
# No effect | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Omnis Destruction (901053) [Hybrid] | |
# | |
# Hybrid fire, ice, lightning, water, wind, earth, light and dark damage (20x, ATK & MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Dragon's Doom (901054) [None] | |
# | |
# Fixed damage (40000000) to caster | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Stunning Spire (901055) [Physical] | |
# | |
# Physical earth damage (5x, ATK) to one enemy | |
# Reduce resistance to Earth by 50% for 2 turns to one enemy | |
# Unknown active effect type '147': [[0,0,0,0,100,"0%0%0"],0,0,0,0,0,0,0,1,1] | |
# Inflict Paralyze (100%) on one enemy | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Bewildering Blaze (901056) [Magic] | |
# | |
# Magic fire damage (5x, MAG) to one enemy | |
# Reduce resistance to Fire by 50% for 2 turns to one enemy | |
# Unknown active effect type '147': [[0,0,0,0,0,100,0,0],0,0,0,0,0,0,0,1,1] | |
# Inflict Confusion (100%) on one enemy | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Wretched Wind (901057) [Hybrid] | |
# | |
# Hybrid wind and dark damage (5x, ATK & MAG) to all enemies | |
# Reduce resistance to Wind and Dark by 50% for 2 turns to all enemies | |
# Inflict Poison (30%) on all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Immortal Frame (901058) [Hybrid] | |
# | |
# Remove all buffs from all enemies | |
# Remove all debuffs from caster | |
# Increase ATK, DEF, MAG and SPR by 100% for 3 turns to caster (can not be removed) | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
### | |
# AI | |
### | |
if manta >= 36 and gourd == False and once(): | |
useSkill(8, 'random') # Undying Dragon (901051): Increase DEF and SPR by 100% for 2 turns to caster (can not be removed) | |
gourd = True # reset next turn | |
elif manta >= 36 and gourd == False and once(): | |
useSkill(9, 'random') # Osta is accumulating elemental energy! (901052): No effect | |
gourd = True # reset next turn | |
elif manta >= 36 and gourd == False and once(): | |
useSkill(10, 'random') # Omnis Destruction (901053): Hybrid fire, ice, lightning, water, wind, earth, light and dark damage (20x, ATK & MAG) to all enemies | |
gourd = True # reset next turn | |
elif manta >= 36 and gourd == False and var_89 == False: | |
useSkill(11, 'random') # Dragon's Doom (901054): Fixed damage (40000000) to caster | |
var_89 = True # unknown flag type (89) | |
gourd = True # reset next turn | |
elif manta == 6 and once(): | |
useSkill(6, 'random') # Osta's willpower has strengthened! (901049): Unknown active effect type '1015': [500,100,[2,4,7],0,0,1,0] | |
elif manta == 11 and once(): | |
useSkill(6, 'random') # Osta's willpower has strengthened! (901049): Unknown active effect type '1015': [500,100,[2,4,7],0,0,1,0] | |
elif manta == 16 and once(): | |
useSkill(6, 'random') # Osta's willpower has strengthened! (901049): Unknown active effect type '1015': [500,100,[2,4,7],0,0,1,0] | |
elif manta == 21 and once(): | |
useSkill(6, 'random') # Osta's willpower has strengthened! (901049): Unknown active effect type '1015': [500,100,[2,4,7],0,0,1,0] | |
elif self.HP < 0.75 and once(): | |
useSkill(7, 'random') # Allies' willpower has strengthened! (901050): Unknown active effect type '1015': [-250,-50,[1,5,6],0,0,1,0] | |
elif self.HP < 0.5 and once(): | |
useSkill(7, 'random') # Allies' willpower has strengthened! (901050): Unknown active effect type '1015': [-250,-50,[1,5,6],0,0,1,0] | |
elif self.HP < 0.25 and once(): | |
useSkill(7, 'random') # Allies' willpower has strengthened! (901050): Unknown active effect type '1015': [-250,-50,[1,5,6],0,0,1,0] | |
elif var_88 == True and once(): | |
endTurn() | |
manta = Timer.create() # timer | |
elif honey == False and guava == False and once(): | |
useSkill(4, 'random') # Corrosive Mist I (901036): Reduce DEF and SPR by 35% for 3 turns to all enemies, Unknown active effect type '1015': [300,0,0,0,0,2,0] | |
var_88 = True # unknown flag type (88) | |
guava = True # reset next turn | |
honey = True # persistent | |
elif honey == False and isTurnMod(3) and guava == False and var_89 == False: | |
useSkill(4, 'random') # Corrosive Mist I (901036): Reduce DEF and SPR by 35% for 3 turns to all enemies, Unknown active effect type '1015': [300,0,0,0,0,2,0] | |
guava = True # reset next turn | |
honey = True # persistent | |
elif honey == True and guava == False and var_89 == False: | |
useSkill(1, 'random') # Pernicious Breath I (901027): Inflict one random status effect (30%) to all enemies | |
guava = True # reset next turn | |
honey = False # persistent | |
elif isTurnMod(3) and melon == False and ramen == False and var_89 == False: | |
useSkill(2, 'random') # Osta is accumulating dark energy! (901032): No effect | |
melon = True # reset next turn | |
ramen = True # persistent | |
elif melon == False and ramen == True and var_89 == False: | |
useSkill(3, 'random') # Dark Rage of the Dragon (901033): Magic dark damage (20x, MAG) to all enemies | |
melon = True # reset next turn | |
ramen = False # persistent | |
elif self.sufferedDamageLastTurn('physical', 'fire') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif self.sufferedDamageLastTurn('magical', 'fire') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif self.sufferedDamageLastTurn('physical', 'quake') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif self.sufferedDamageLastTurn('magical', 'quake') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif self.sufferedDamageLastTurn('physical', 'aero') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif self.sufferedDamageLastTurn('magical', 'aero') and grape == False and var_89 == False: | |
wait() # No action | |
green += 1 | |
grape = True # reset next turn | |
elif green >= 3 and var_89 == False: | |
useSkill(5, 'random') # Deathly Plague (901041): Remove all buffs from all enemies, Remove resistances to Poison from all enemies for 3 turns, Inflict Poison (100%) on all enemies | |
green = 0 | |
elif white == 3 and lemon == False: | |
wait() # No action | |
white = 0 | |
lemon = True # reset next turn | |
elif random() <= 0.50 and lemon == False and self.HP > 0.75: | |
useSkill(12, 'random') # Stunning Spire (901055): Physical earth damage (5x, ATK) to one enemy, Reduce resistance to Earth by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,100,"0%0%0"],0,0,0,0,0,0,0,1,1], Inflict Paralyze (100%) on one enemy | |
white += 1 | |
elif lemon == False and self.HP > 0.75: | |
useSkill(13, 'random') # Bewildering Blaze (901056): Magic fire damage (5x, MAG) to one enemy, Reduce resistance to Fire by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,0,100,0,0],0,0,0,0,0,0,0,1,1], Inflict Confusion (100%) on one enemy | |
white += 1 | |
elif black == 3 and mango == False and self.HP > 0.5 and self.HP < 0.75: | |
wait() # No action | |
black = 0 | |
mango = True # reset next turn | |
elif random() <= 0.20 and mango == False and self.HP > 0.5 and self.HP < 0.75: | |
useSkill(14, 'random') # Wretched Wind (901057): Hybrid wind and dark damage (5x, ATK & MAG) to all enemies, Reduce resistance to Wind and Dark by 50% for 2 turns to all enemies, Inflict Poison (30%) on all enemies | |
black += 1 | |
elif random() <= 0.60 and mango == False and self.HP > 0.5 and self.HP < 0.75: | |
useSkill(13, 'random') # Bewildering Blaze (901056): Magic fire damage (5x, MAG) to one enemy, Reduce resistance to Fire by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,0,100,0,0],0,0,0,0,0,0,0,1,1], Inflict Confusion (100%) on one enemy | |
black += 1 | |
elif mango == False and self.HP > 0.5 and self.HP < 0.75: | |
useSkill(12, 'random') # Stunning Spire (901055): Physical earth damage (5x, ATK) to one enemy, Reduce resistance to Earth by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,100,"0%0%0"],0,0,0,0,0,0,0,1,1], Inflict Paralyze (100%) on one enemy | |
black += 1 | |
elif self.HP < 0.25 and once(): | |
useSkill(15, 'random') # Immortal Frame (901058): Remove all buffs from all enemies, Remove all debuffs from caster, Increase ATK, DEF, MAG and SPR by 100% for 3 turns to caster (can not be removed) | |
elif olive == False and self.HP < 0.25: | |
useSkill(14, 'random') # Wretched Wind (901057): Hybrid wind and dark damage (5x, ATK & MAG) to all enemies, Reduce resistance to Wind and Dark by 50% for 2 turns to all enemies, Inflict Poison (30%) on all enemies | |
olive = True # reset next turn | |
elif mauve == 5 and peach == False and self.HP < 0.5: | |
wait() # No action | |
mauve = 0 | |
peach = True # reset next turn | |
elif random() <= 0.20 and peach == False and self.HP < 0.5: | |
useSkill(14, 'random') # Wretched Wind (901057): Hybrid wind and dark damage (5x, ATK & MAG) to all enemies, Reduce resistance to Wind and Dark by 50% for 2 turns to all enemies, Inflict Poison (30%) on all enemies | |
mauve += 1 | |
elif random() <= 0.60 and peach == False and self.HP < 0.5: | |
useSkill(13, 'random') # Bewildering Blaze (901056): Magic fire damage (5x, MAG) to one enemy, Reduce resistance to Fire by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,0,100,0,0],0,0,0,0,0,0,0,1,1], Inflict Confusion (100%) on one enemy | |
mauve += 1 | |
elif peach == False and self.HP < 0.5: | |
useSkill(12, 'random') # Stunning Spire (901055): Physical earth damage (5x, ATK) to one enemy, Reduce resistance to Earth by 50% for 2 turns to one enemy, Unknown active effect type '147': [[0,0,0,0,100,"0%0%0"],0,0,0,0,0,0,0,1,1], Inflict Paralyze (100%) on one enemy | |
mauve += 1 | |
else: | |
endTurn() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment