Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic aEnigmatic/506041002.gl.py
Last active Jan 29, 2019

Embed
What would you like to do?
Alexander 3* - GL [AI ONLY]
###
# Alexander
###
# Skills
###
#
# Judge's Gavel (196740) [Physical]
#
# Physical damage (4x, ATK) to one enemy
# Inflict Silence (100%) on one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Sacred Cannon (196750) [Physical]
#
# Physical light damage (2x, ATK) to one enemy
# Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Guilty Rain (196760) [Magic]
#
# Magic light damage (1.5x, MAG) to all enemies
# Add Light element (100%) to physical attacks for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Beam of Judgment (196770) [None]
#
# Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect)
# Reduce resistance to Light by 60% for 2 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Castle Lv. 1 (196780) [None]
#
# Grant a 5000000 HP shield to caster for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dispelga (196790) [Magic]
#
# Remove all buffs and debuffs from all enemies
#
# Sealable + Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Shot (196800) [Magic]
#
# Magic light damage (3.6x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Holy Bleed (196810) [Magic]
#
# Magic light damage (2.5x, MAG) to all enemies
# Reduce ATK and DEF by 65% for 5 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Radiant Sacrament (196820) [Physical]
#
# Physical damage (3.5x, ATK) to all enemies
# Reduce MAG and SPR by 65% for 5 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Holy (196830) [Magic]
#
# Magic light damage (8x, MAG) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Diaja (196840) [Magic]
#
# Magic light damage (3.4x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Commencing Deliberation (196850) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Deliberating... (196860) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Verdict (196870) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Perfect Defense Lv. 1 (196880) [None]
#
# Reduce physical damage taken by 40% to caster for 3 turns (can not be removed)
# Reduce magic damage taken by 40% to caster for 3 turns (can not be removed)
# Increase ATK and MAG by 10% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Perfect Defense Lv. 2 (196890) [None]
#
# Reduce physical damage taken by 60% to caster for 3 turns (can not be removed)
# Reduce magic damage taken by 60% to caster for 3 turns (can not be removed)
# Increase ATK and MAG by 20% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Perfect Defense Lv. 3 (196900) [None]
#
# Reduce physical damage taken by 80% to caster for 3 turns (can not be removed)
# Reduce magic damage taken by 80% to caster for 3 turns (can not be removed)
# Increase ATK and MAG by 30% for 3 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Karma (196910) [None]
#
# Magic* damage (1.5x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Judgment (196911) [Magic]
#
# Magic light damage (5.2x, MAG) to all enemies
# Reduce resistance to Light by 300% for 5 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Castle Lv. 2 (197200) [None]
#
# Grant a 10000000 HP shield to caster for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Divine Castle Lv. 3 (197210) [None]
#
# Grant a 15000000 HP shield to caster for 3 turns
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# He deems your claim acceptable. (197220) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Recommencing Deliberation (197230) [None]
#
# No effect
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Perfect Defense Lv. 3 (197959) [None]
#
# Reduce physical damage taken by 80% to caster for 4 turns (can not be removed)
# Reduce magic damage taken by 80% to caster for 4 turns (can not be removed)
# Increase ATK and MAG by 30% for 4 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
###
# AI
###
if apple == True:
endTurn()
elif once():
useSkill(24, 'random') # Perfect Defense Lv. 3 (197959): Reduce physical damage taken by 80% to caster for 4 turns (can not be removed), Reduce magic damage taken by 80% to caster for 4 turns (can not be removed), Increase ATK and MAG by 30% for 4 turns to caster
sushi = True # persistent
elif once():
useSkill(12, 'random') # Commencing Deliberation (196850): No effect
apple = True # reset next turn
elif self.HP > 0.5 and honey == False and ramen == False and sushi == False and melon == False:
wait() # No action
mauve = 0
black = 0
melon = True # reset next turn
elif self.HP > 0.5 and honey == False and ramen == False and sushi == False:
useSkill(17, 'random') # Perfect Defense Lv. 3 (196900): Reduce physical damage taken by 80% to caster for 3 turns (can not be removed), Reduce magic damage taken by 80% to caster for 3 turns (can not be removed), Increase ATK and MAG by 30% for 3 turns to caster
pizza = False # persistent
sugar = False # persistent
fries = False # persistent
salad = False # persistent
sushi = True # persistent
elif self.HP < 0.5 and sushi == True:
wait() # No action
steak = False # persistent
bacon = False # persistent
sushi = False # persistent
elif self.HP < 0.5 and ramen == True:
wait() # No action
steak = False # persistent
bacon = False # persistent
ramen = False # persistent
elif self.HP < 0.5 and honey == True:
wait() # No action
steak = False # persistent
bacon = False # persistent
honey = False # persistent
elif self.HP < 0.5 and white >= 10 and lemon == False:
useSkill(10, 'random') # Holy (196830): Magic light damage (8x, MAG) to one enemy
white += 1
lemon = True # reset next turn
elif self.HP < 0.5 and white >= 10 and grape == False:
useSkill(10, 'random') # Holy (196830): Magic light damage (8x, MAG) to one enemy
white += 1
grape = True # reset next turn
elif self.HP < 0.5 and white >= 10:
endTurn()
white = 0
elif self.HP < 0.5 and mango == False and isTurnMod(4):
useSkill(4, 'random') # Beam of Judgment (196770): Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect), Reduce resistance to Light by 60% for 2 turns to all enemies
mango = True # reset next turn
elif random() <= 0.50 and self.HP < 0.5 and white <= 2:
useSkill(1, 'random') # Judge's Gavel (196740): Physical damage (4x, ATK) to one enemy, Inflict Silence (100%) on one enemy
white += 1
elif self.HP < 0.5 and white <= 2:
useSkill(7, 'random') # Divine Shot (196800): Magic light damage (3.6x, MAG) to one enemy
white += 1
elif self.HP < 0.5 and white <= 5:
useSkill(2, 'random') # Sacred Cannon (196750): Physical light damage (2x, ATK) to one enemy, Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
white += 1
elif self.HP < 0.5 and berry == False:
useSkill(11, 'random') # Diaja (196840): Magic light damage (3.4x, MAG) to all enemies
berry = True # reset next turn
elif self.HP < 0.5 and pasta == False and peach == False:
useSkill(9, 'random') # Radiant Sacrament (196820): Physical damage (3.5x, ATK) to all enemies, Reduce MAG and SPR by 65% for 5 turns to all enemies
peach = True # reset next turn
pasta = True # persistent
elif self.HP < 0.5 and pasta == True and peach == False:
useSkill(8, 'random') # Holy Bleed (196810): Magic light damage (2.5x, MAG) to all enemies, Reduce ATK and DEF by 65% for 5 turns to all enemies
peach = True # reset next turn
pasta = False # persistent
elif self.HP < 0.5 and white <= 9:
attack('random')
white += 1
elif self.HP < 0.5 and self.HP > 0.2 and olive == False and isTurnMod(3):
useSkill(19, 'random') # Divine Judgment (196911): Magic light damage (5.2x, MAG) to all enemies, Reduce resistance to Light by 300% for 5 turns to all enemies
white += 1
olive = True # reset next turn
elif self.HP < 0.2 and olive == False and isTurnMod(2):
useSkill(19, 'random') # Divine Judgment (196911): Magic light damage (5.2x, MAG) to all enemies, Reduce resistance to Light by 300% for 5 turns to all enemies
white += 1
olive = True # reset next turn
elif self.HP < 0.5:
useSkill(2, 'random') # Sacred Cannon (196750): Physical light damage (2x, ATK) to one enemy, Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
white += 1
elif once():
wait() # No action
guava = True # reset next turn
elif mauve == 1 and guava == False:
useSkill(13, 'random') # Deliberating... (196860): No effect
guava = True # reset next turn
elif mauve == 0 and guava == False:
useSkill(13, 'random') # Deliberating... (196860): No effect
guava = True # reset next turn
elif unit('5:enemy:any').usedLastTurn('limitburst') and mauve == 0 and var_61 == False:
wait() # No action
var_61 = True # unknown flag type
black += 1
elif self.sufferedDamageLastTurn('dark', 'physical') and mauve == 0 and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
black += 1
elif self.sufferedDamageLastTurn('dark', 'magical') and mauve == 0 and var_62 == False:
wait() # No action
var_62 = True # unknown flag type
black += 1
elif unit('5:enemy:any').usedLastTurn('limitburst') and mauve == 1 and var_63 == False:
wait() # No action
var_63 = True # unknown flag type
black += 1
elif self.sufferedDamageLastTurn('dark', 'physical') and mauve == 1 and var_64 == False:
wait() # No action
var_64 = True # unknown flag type
black += 1
elif self.sufferedDamageLastTurn('dark', 'magical') and mauve == 1 and var_64 == False:
wait() # No action
var_64 = True # unknown flag type
black += 1
elif green >= 9 and mauve == 2 and black == 0 and gourd == False:
useSkill(14, 'random') # Verdict (196870): No effect
gourd = True # reset next turn
steak = False # persistent
bacon = False # persistent
sushi = True # persistent
ramen = False # persistent
honey = False # persistent
elif green >= 9 and mauve == 2 and black == 1 and gourd == False:
useSkill(14, 'random') # Verdict (196870): No effect
gourd = True # reset next turn
steak = False # persistent
bacon = False # persistent
sushi = True # persistent
ramen = False # persistent
honey = False # persistent
elif green >= 9 and mauve == 2 and black == 2 and gourd == False:
useSkill(14, 'random') # Verdict (196870): No effect
gourd = True # reset next turn
steak = False # persistent
bacon = False # persistent
sushi = False # persistent
ramen = True # persistent
honey = False # persistent
elif green >= 9 and mauve == 2 and black == 3 and gourd == False:
useSkill(14, 'random') # Verdict (196870): No effect
gourd = True # reset next turn
steak = False # persistent
bacon = False # persistent
sushi = False # persistent
ramen = True # persistent
honey = False # persistent
elif green >= 9 and mauve == 2 and black == 4 and gourd == False:
useSkill(14, 'random') # Verdict (196870): No effect
gourd = True # reset next turn
steak = False # persistent
bacon = False # persistent
sushi = False # persistent
ramen = False # persistent
honey = True # persistent
elif green >= 9 and mauve == 2 and sushi == True and var_65 == False:
useSkill(17, 'random') # Perfect Defense Lv. 3 (196900): Reduce physical damage taken by 80% to caster for 3 turns (can not be removed), Reduce magic damage taken by 80% to caster for 3 turns (can not be removed), Increase ATK and MAG by 30% for 3 turns to caster
var_65 = True # unknown flag type
elif green >= 9 and mauve == 2 and ramen == True and var_66 == False:
useSkill(16, 'random') # Perfect Defense Lv. 2 (196890): Reduce physical damage taken by 60% to caster for 3 turns (can not be removed), Reduce magic damage taken by 60% to caster for 3 turns (can not be removed), Increase ATK and MAG by 20% for 3 turns to caster
var_66 = True # unknown flag type
elif green >= 9 and mauve == 2 and honey == True and var_67 == False:
useSkill(15, 'random') # Perfect Defense Lv. 1 (196880): Reduce physical damage taken by 40% to caster for 3 turns (can not be removed), Reduce magic damage taken by 40% to caster for 3 turns (can not be removed), Increase ATK and MAG by 10% for 3 turns to caster
var_67 = True # unknown flag type
elif green >= 9 and mauve == 2 and sushi == True and var_68 == False:
useSkill(23, 'random') # Recommencing Deliberation (197230): No effect
var_68 = True # unknown flag type
pizza = False # persistent
sugar = False # persistent
fries = False # persistent
salad = False # persistent
elif green >= 9 and mauve == 2 and sushi == True:
endTurn()
mauve = 0
black = 0
green = 0
elif green >= 9 and mauve == 2 and ramen == True and var_68 == False:
useSkill(23, 'random') # Recommencing Deliberation (197230): No effect
var_68 = True # unknown flag type
pizza = False # persistent
sugar = False # persistent
fries = False # persistent
salad = False # persistent
elif green >= 9 and mauve == 2 and ramen == True:
endTurn()
mauve = 0
black = 0
green = 0
elif green >= 9 and mauve == 2 and honey == True and var_68 == False:
useSkill(23, 'random') # Recommencing Deliberation (197230): No effect
var_68 = True # unknown flag type
pizza = False # persistent
sugar = False # persistent
fries = False # persistent
salad = False # persistent
elif green >= 9 and mauve == 2 and honey == True:
endTurn()
mauve = 0
black = 0
green = 0
elif green >= 9 and mauve == 1 and sushi == True and melon == False:
useSkill(21, 'random') # Divine Castle Lv. 3 (197210): Grant a 15000000 HP shield to caster for 3 turns
melon = True # reset next turn
elif green >= 9 and sushi == True and black == 1 and salad == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
salad = True # persistent
elif green >= 9 and sushi == True and black == 2 and fries == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
fries = True # persistent
elif green >= 9 and sushi == True and black == 3 and sugar == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
sugar = True # persistent
elif green >= 9 and sushi == True and black == 4 and pizza == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
pizza = True # persistent
elif green >= 9 and sushi == True:
endTurn()
mauve += 1
green = 0
elif sushi == True and green <= 2:
useSkill(2, 'random') # Sacred Cannon (196750): Physical light damage (2x, ATK) to one enemy, Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
green += 1
elif sushi == True and peach == False and mauve == 1:
useSkill(6, 'random') # Dispelga (196790): Remove all buffs and debuffs from all enemies
peach = True # reset next turn
elif sushi == True and bacon == False and olive == False:
useSkill(8, 'random') # Holy Bleed (196810): Magic light damage (2.5x, MAG) to all enemies, Reduce ATK and DEF by 65% for 5 turns to all enemies
olive = True # reset next turn
bacon = True # persistent
elif sushi == True and bacon == True and olive == False:
useSkill(4, 'random') # Beam of Judgment (196770): Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect), Reduce resistance to Light by 60% for 2 turns to all enemies
olive = True # reset next turn
bacon = False # persistent
elif random() <= 0.50 and sushi == True and green <= 6:
useSkill(1, 'random') # Judge's Gavel (196740): Physical damage (4x, ATK) to one enemy, Inflict Silence (100%) on one enemy
green += 1
elif sushi == True and green <= 6:
useSkill(7, 'random') # Divine Shot (196800): Magic light damage (3.6x, MAG) to one enemy
green += 1
elif sushi == True and steak == False and mango == False:
useSkill(4, 'random') # Beam of Judgment (196770): Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect), Reduce resistance to Light by 60% for 2 turns to all enemies
mango = True # reset next turn
steak = True # persistent
elif sushi == True and steak == True and mango == False:
useSkill(9, 'random') # Radiant Sacrament (196820): Physical damage (3.5x, ATK) to all enemies, Reduce MAG and SPR by 65% for 5 turns to all enemies
mango = True # reset next turn
steak = False # persistent
elif sushi == True and berry == False and mauve == 1:
useSkill(3, 'random') # Guilty Rain (196760): Magic light damage (1.5x, MAG) to all enemies, Add Light element (100%) to physical attacks for 3 turns to all enemies
berry = True # reset next turn
elif sushi == True:
attack('random')
green += 1
elif green >= 9 and mauve == 1 and ramen == True and melon == False:
useSkill(20, 'random') # Divine Castle Lv. 2 (197200): Grant a 10000000 HP shield to caster for 3 turns
melon = True # reset next turn
elif green >= 9 and ramen == True and black == 1 and salad == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
salad = True # persistent
elif green >= 9 and ramen == True and black == 2 and fries == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
fries = True # persistent
elif green >= 9 and ramen == True and black == 3 and sugar == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
sugar = True # persistent
elif green >= 9 and ramen == True and black == 4 and pizza == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
pizza = True # persistent
elif green >= 9 and ramen == True:
endTurn()
mauve += 1
green = 0
elif ramen == True and green <= 2:
useSkill(2, 'random') # Sacred Cannon (196750): Physical light damage (2x, ATK) to one enemy, Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
green += 1
elif ramen == True and berry == False:
useSkill(11, 'random') # Diaja (196840): Magic light damage (3.4x, MAG) to all enemies
berry = True # reset next turn
elif ramen == True and bacon == False and peach == False:
useSkill(8, 'random') # Holy Bleed (196810): Magic light damage (2.5x, MAG) to all enemies, Reduce ATK and DEF by 65% for 5 turns to all enemies
peach = True # reset next turn
bacon = True # persistent
elif ramen == True and bacon == True and peach == False:
useSkill(3, 'random') # Guilty Rain (196760): Magic light damage (1.5x, MAG) to all enemies, Add Light element (100%) to physical attacks for 3 turns to all enemies
peach = True # reset next turn
bacon = False # persistent
elif random() <= 0.50 and ramen == True and green <= 6:
useSkill(1, 'random') # Judge's Gavel (196740): Physical damage (4x, ATK) to one enemy, Inflict Silence (100%) on one enemy
green += 1
elif ramen == True and green <= 6:
useSkill(7, 'random') # Divine Shot (196800): Magic light damage (3.6x, MAG) to one enemy
green += 1
elif ramen == True and steak == False and olive == False:
useSkill(9, 'random') # Radiant Sacrament (196820): Physical damage (3.5x, ATK) to all enemies, Reduce MAG and SPR by 65% for 5 turns to all enemies
olive = True # reset next turn
steak = True # persistent
elif ramen == True and steak == True and olive == False:
useSkill(4, 'random') # Beam of Judgment (196770): Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect), Reduce resistance to Light by 60% for 2 turns to all enemies
olive = True # reset next turn
steak = False # persistent
elif ramen == True:
attack('random')
green += 1
elif green >= 9 and mauve == 1 and honey == True and melon == False:
useSkill(5, 'random') # Divine Castle Lv. 1 (196780): Grant a 5000000 HP shield to caster for 3 turns
melon = True # reset next turn
elif green >= 9 and honey == True and black == 1 and salad == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
salad = True # persistent
elif green >= 9 and honey == True and black == 2 and fries == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
fries = True # persistent
elif green >= 9 and honey == True and black == 3 and sugar == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
sugar = True # persistent
elif green >= 9 and honey == True and black == 4 and pizza == False:
useSkill(22, 'random') # He deems your claim acceptable. (197220): No effect
pizza = True # persistent
elif green >= 9 and honey == True:
endTurn()
mauve += 1
green = 0
elif honey == True and green <= 2:
useSkill(2, 'random') # Sacred Cannon (196750): Physical light damage (2x, ATK) to one enemy, Physical light damage (1.5x * 2 = 3x, ATK) to all enemies (ignore cover)
green += 1
elif honey == True and berry == False:
useSkill(11, 'random') # Diaja (196840): Magic light damage (3.4x, MAG) to all enemies
berry = True # reset next turn
elif honey == True and bacon == False and peach == False:
useSkill(8, 'random') # Holy Bleed (196810): Magic light damage (2.5x, MAG) to all enemies, Reduce ATK and DEF by 65% for 5 turns to all enemies
peach = True # reset next turn
bacon = True # persistent
elif honey == True and bacon == True and peach == False:
useSkill(9, 'random') # Radiant Sacrament (196820): Physical damage (3.5x, ATK) to all enemies, Reduce MAG and SPR by 65% for 5 turns to all enemies
peach = True # reset next turn
bacon = False # persistent
elif random() <= 0.50 and honey == True and green <= 6:
useSkill(1, 'random') # Judge's Gavel (196740): Physical damage (4x, ATK) to one enemy, Inflict Silence (100%) on one enemy
green += 1
elif honey == True and green <= 6:
useSkill(7, 'random') # Divine Shot (196800): Magic light damage (3.6x, MAG) to one enemy
green += 1
elif honey == True and olive == False:
useSkill(4, 'random') # Beam of Judgment (196770): Magic* damage (4x * 1.54 = 6.15x, MAG) to all enemies (ignore reflect), Reduce resistance to Light by 60% for 2 turns to all enemies
green += 1
olive = True # reset next turn
elif honey == True:
attack('random')
green += 1
else:
attack('random')
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.