Created
April 26, 2018 14:14
-
-
Save aEnigmatic/30c2b427a3041ce4d57154105f418f58 to your computer and use it in GitHub Desktop.
Scorn of the White Dragon - GL
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 'Scorn of the White Dragon' (8992801) | |
# Enemy has first strike! | |
## | |
## | |
# Monster Info | |
## | |
# | |
# Monster White Dragon (407001002) | |
# Race Dragon | |
# Level 100 | |
# Actions 8-8 | |
# | |
# | |
# Stats | |
# HP 1200000 | |
# MP 3000 | |
# ATK 355 | |
# DEF 375 | |
# MAG 340 | |
# SPR 330 | |
# | |
# | |
# Damage resist | |
# physical 0% | |
# magical 0% | |
# | |
# | |
# Element resist | |
# Fire 0% | |
# Ice 0% | |
# Lightning 0% | |
# Water 0% | |
# Wind 0% | |
# Earth 0% | |
# Light 300% | |
# Dark 300% | |
# 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 0% | |
# Berserk? 0% | |
# | |
# | |
# Immunity | |
# Death + | |
# Gravity + | |
# | |
### | |
### | |
# Skills | |
### | |
# | |
# Malstrom (157520) [Magic] | |
# | |
# 99% HP damage to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 + | |
# | |
## | |
# | |
# Scorch (172890) [Magic] | |
# | |
# Magic fire damage (4x, MAG) to one enemy | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Snowstorm (172900) [Magic] | |
# | |
# Magic ice damage (4x, MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Bolt (172910) [Magic] | |
# | |
# Magic lightning damage (4x, MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# Earthquake (172920) [Magic] | |
# | |
# Magic earth damage (4x, MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# The white dragon unleashed its wrath (172930) [None] | |
# | |
# No effect | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# White Dragon's Protection (172940) [None] | |
# | |
# Increase DEF and SPR by 200% for 3 turns to one ally | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# White Dragon's Roar (172950) [Magic] | |
# | |
# Magic damage (8x, MAG) to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
# | |
# White Dragon's Awe (172960) [None] | |
# | |
# Reduce resistance to all elements by 30% for 5 turns to all enemies | |
# | |
# Sealable - Unknown1 + | |
# Reflect - Unknown2 - | |
# | |
## | |
### | |
# AI | |
### | |
if apple == True: | |
end_turn() | |
elif once(): | |
useSkill(1, 'random') # Malstrom (157520): 99% HP damage to all enemies | |
elif once(): | |
useSkill(9, 'random') # White Dragon's Awe (172960): Reduce resistance to all elements by 30% for 5 turns to all enemies | |
elif once(): | |
useSkill(7, 'random') # White Dragon's Protection (172940): Increase DEF and SPR by 200% for 3 turns to one ally | |
apple = True # reset next turn | |
elif self.HP < 0.8 and once(): | |
useSkill(8, 'random') # White Dragon's Roar (172950): Magic damage (8x, MAG) to all enemies | |
berry = True # reset next turn | |
peach = True # reset next turn | |
olive = True # reset next turn | |
mango = True # reset next turn | |
lemon = 1 | |
elif self.HP < 0.6 and once(): | |
useSkill(8, 'random') # White Dragon's Roar (172950): Magic damage (8x, MAG) to all enemies | |
berry = True # reset next turn | |
peach = True # reset next turn | |
olive = True # reset next turn | |
mango = True # reset next turn | |
lemon = 1 | |
elif self.HP < 0.6 and once(): | |
useSkill(7, 'random') # White Dragon's Protection (172940): Increase DEF and SPR by 200% for 3 turns to one ally | |
berry = True # reset next turn | |
peach = True # reset next turn | |
olive = True # reset next turn | |
mango = True # reset next turn | |
lemon = 1 | |
elif self.HP < 0.4 and once(): | |
useSkill(8, 'random') # White Dragon's Roar (172950): Magic damage (8x, MAG) to all enemies | |
berry = True # reset next turn | |
peach = True # reset next turn | |
olive = True # reset next turn | |
mango = True # reset next turn | |
lemon = 1 | |
elif grape == True and peach == False: | |
useSkill(2, 'random') # Scorch (172890): Magic fire damage (4x, MAG) to one enemy | |
peach = True # reset next turn | |
elif grape == True and olive == False: | |
useSkill(3, 'random') # Snowstorm (172900): Magic ice damage (4x, MAG) to all enemies | |
olive = True # reset next turn | |
elif grape == True and mango == False: | |
useSkill(4, 'random') # Bolt (172910): Magic lightning damage (4x, MAG) to all enemies | |
mango = True # reset next turn | |
elif grape == True: | |
useSkill(5, 'random') # Earthquake (172920): Magic earth damage (4x, MAG) to all enemies | |
apple = True # reset next turn | |
elif self.lastTurnHitBy('attack') and green > 3 and berry == False: | |
useSkill(6, 'random') # The white dragon unleashed its wrath (172930): No effect | |
grape = True # reset next turn | |
green = 0 | |
elif self.lastTurnHitBy('spell') and green > 3 and berry == False: | |
useSkill(6, 'random') # The white dragon unleashed its wrath (172930): No effect | |
grape = True # reset next turn | |
green = 0 | |
elif self.lastTurnHitBy('ability') and green > 3 and berry == False: | |
useSkill(6, 'random') # The white dragon unleashed its wrath (172930): No effect | |
grape = True # reset next turn | |
green = 0 | |
elif self.lastTurnHitBy('esper') and green > 3 and berry == False: | |
useSkill(6, 'random') # The white dragon unleashed its wrath (172930): No effect | |
grape = True # reset next turn | |
green = 0 | |
elif unit('player_any').usedLbLastTurn() and green > 3 and berry == False: | |
useSkill(6, 'random') # The white dragon unleashed its wrath (172930): No effect | |
grape = True # reset next turn | |
green = 0 | |
elif green > 3 and berry == False: | |
attack('random') | |
green = 0 | |
elif random() <= 0.20 and self.HP < 0.6 and peach == False: | |
useSkill(4, 'random') # Bolt (172910): Magic lightning damage (4x, MAG) to all enemies | |
peach = True # reset next turn | |
elif random() <= 0.25 and self.HP < 0.6 and peach == False: | |
useSkill(3, 'random') # Snowstorm (172900): Magic ice damage (4x, MAG) to all enemies | |
peach = True # reset next turn | |
elif random() <= 0.35 and self.HP < 0.6 and peach == False: | |
useSkill(2, 'random') # Scorch (172890): Magic fire damage (4x, MAG) to one enemy | |
peach = True # reset next turn | |
elif self.HP < 0.6 and peach == False: | |
useSkill(5, 'random') # Earthquake (172920): Magic earth damage (4x, MAG) to all enemies | |
peach = True # reset next turn | |
elif random() <= 0.20 and olive == False: | |
useSkill(5, 'random') # Earthquake (172920): Magic earth damage (4x, MAG) to all enemies | |
berry = True # reset next turn | |
olive = True # reset next turn | |
green += 1 | |
elif random() <= 0.25 and olive == False: | |
useSkill(4, 'random') # Bolt (172910): Magic lightning damage (4x, MAG) to all enemies | |
berry = True # reset next turn | |
olive = True # reset next turn | |
green += 1 | |
elif random() <= 0.35 and olive == False: | |
useSkill(3, 'random') # Snowstorm (172900): Magic ice damage (4x, MAG) to all enemies | |
berry = True # reset next turn | |
olive = True # reset next turn | |
green += 1 | |
elif olive == False: | |
useSkill(2, 'random') # Scorch (172890): Magic fire damage (4x, MAG) to one enemy | |
berry = True # reset next turn | |
olive = True # reset next turn | |
green += 1 | |
else: | |
attack('random') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment