Skip to content

Instantly share code, notes, and snippets.

@aEnigmatic
Created June 28, 2018 12:59
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/aa0de2db2e56074a43d048c19e1f1aae to your computer and use it in GitHub Desktop.
Save aEnigmatic/aa0de2db2e56074a43d048c19e1f1aae to your computer and use it in GitHub Desktop.
Carbuncle 3* - New Trial of the Ruby
##
# Mission 'New Trial of the Ruby' (1325107)
##
##
# Monster Info
##
#
# Monster Carbuncle (201031002)
# Race Beast
# Level 99
# Actions 20-20
#
#
# Stats
# HP 30000000
# MP 100000
# ATK 900
# DEF 9999
# MAG 450
# SPR 3000
#
#
# Damage resist
# physical 0%
# magical 0%
#
#
# Element resist
# Fire 0%
# Ice 0%
# Lightning 0%
# Water 0%
# Wind 0%
# Earth 0%
# Light 0%
# Dark -100%
# 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 0%
# DEF 100%
# MAG 0%
# SPR 0%
# Stop 100%
# Charm 100%
# Berserk? 100%
#
#
# Immunity
# Death +
# Gravity +
#
###
###
# Passives
###
#
# 光属性吸収 (100012) [Passive]
#
# Absorb Light elemental attacks
#
##
###
# Skills
###
#
# Ruby Light (179480) [Magic]
#
# Reflect all spell(s) to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Healing Ruby (179490) [Magic]
#
# Restore 1500000 HP to caster
# Unused paramaters: [0,0,0,0,0,0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruby Mischief (179500) [Magic]
#
# Reflect all spell(s) for 3 turns to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruby Flash (179510) [Magic]
#
# Magic damage (1.2x, MAG) to one enemy
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Ruby Sparkle (179520) [Magic]
#
# Magic damage (1.35x, MAG) to all enemies
# Reduce resistance to Light by 50% for 3 turns to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Metamorphosis (179530) [None]
#
# Increase MAG by 100% for 999 turns to caster
# Reduce SPR by 99% for 999 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Metamorphosis (179540) [None]
#
# Remove all buffs and debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Dark power is running wild! (179550) [None]
#
# No effect
# Unused paramaters: [0]
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The wall of light has been destroyed by darkness! (179560) [Magic]
#
# Remove all buffs and debuffs from caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# The light's spark is changing (179570) [None]
#
# Increase resistance to Dark by 50% for 99 turns to caster
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Searing Light (179580) [Magic]
#
# Magic light damage (1.5x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Searing Light Over (179590) [Magic]
#
# Magic light damage (1.7x, MAG) to all enemies
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Banishga (160830) [Magic]
#
# Magic light damage (2.3x, MAG) to all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Silencega (176320) [Magic]
#
# Inflict Silence (100%) on all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Bioga (156110) [Magic]
#
# Magic dark damage (1.6x, MAG) to all enemies
# Inflict Poison (100%) on all enemies
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Confuse (160351) [Magic]
#
# Inflict Confusion (50%) on one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Silence (178880) [Magic]
#
# Inflict Silence (40%) on one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
#
# Stop (130370) [Magic]
#
# Inflict Stop (50%) for 3 turns on target
#
# Sealable - Unknown1 +
# Reflect - Unknown2 -
#
##
#
# Death (162200) [Magic]
#
# [Death]
# Instant KO (100%) to one enemy
#
# Sealable + Unknown1 +
# Reflect + Unknown2 -
#
##
###
# AI
###
if gourd == True:
end_turn()
elif self.HP < 0.6 and once():
useSkill(2, 'random') # Healing Ruby (179490): Restore 1500000 HP to caster
elif self.HP < 0.4 and once():
useSkill(2, 'random') # Healing Ruby (179490): Restore 1500000 HP to caster
elif self.HP < 0.2 and once():
useSkill(2, 'random') # Healing Ruby (179490): Restore 1500000 HP to caster
elif once():
useSkill(8, 'random') # Dark power is running wild! (179550): No effect
elif once():
useSkill(10, 'random') # The light's spark is changing (179570): Increase resistance to Dark by 50% for 99 turns to caster
elif once():
useSkill(1, 'random') # Ruby Light (179480): Reflect all spell(s) to caster
gourd = True # reset next turn
elif black > 2 and honey == False:
useSkill(9, 'random') # The wall of light has been destroyed by darkness! (179560): Remove all buffs and debuffs from caster
honey = True # persistent
black = 0
elif unit('player_any').sufferedDamageLastTurn('dark', 'phys') and honey == False and guava == False:
useSkill(8, 'random') # Dark power is running wild! (179550): No effect
guava = True # reset next turn
black += 1
elif unit('player_any').sufferedDamageLastTurn('dark', 'mag') and honey == False and guava == False:
useSkill(8, 'random') # Dark power is running wild! (179550): No effect
guava = True # reset next turn
black += 1
elif unit('player_any').is('rifrect_mode:0') and honey == False and bacon == False:
useSkill(1, 'random') # Ruby Light (179480): Reflect all spell(s) to caster
elif green == 10 and self.HP < 0.5 and sushi == False:
useSkill(3, 'hp_min') # Ruby Mischief (179500): Reflect all spell(s) for 3 turns to one enemy
sushi = True # persistent
elif green == 10 and honey == False:
wait('random')
gourd = True # reset next turn
sushi = False # persistent
green = 0
elif honey == False and apple == False:
useSkill(4, 'mind_max') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
apple = True # reset next turn
green += 1
elif honey == False and berry == False:
useSkill(4, 'random') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
berry = True # reset next turn
green += 1
elif honey == False and isTurnMod(3) and peach == False:
useSkill(5, 'random') # Ruby Sparkle (179520): Magic damage (1.35x, MAG) to all enemies, Reduce resistance to Light by 50% for 3 turns to all enemies
peach = True # reset next turn
green += 1
elif honey == False and isTurnMod(2) and olive == False:
useSkill(13, 'random') # Banishga (160830): Magic light damage (2.3x, MAG) to all enemies
olive = True # reset next turn
green += 1
elif honey == False and mango == False:
useSkill(13, 'random') # Banishga (160830): Magic light damage (2.3x, MAG) to all enemies
mango = True # reset next turn
green += 1
elif random() <= 0.30 and honey == False and lemon == False:
useSkill(18, 'mp_max') # Stop (130370): Inflict Stop (50%) for 3 turns on target
lemon = True # reset next turn
green += 1
elif honey == False and grape == False:
useSkill(16, 'random') # Confuse (160351): Inflict Confusion (50%) on one enemy
grape = True # reset next turn
green += 1
elif honey == False:
useSkill(4, 'random') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
green += 1
elif black > 3 and honey == True and guava == False:
useSkill(7, 'random') # Metamorphosis (179540): Remove all buffs and debuffs from caster
guava = True # reset next turn
elif black > 3 and honey == True:
useSkill(10, 'random') # The light's spark is changing (179570): Increase resistance to Dark by 50% for 99 turns to caster
honey = False # persistent
bacon = False # persistent
black = 0
elif white == 10 and self.HP < 0.5 and sushi == False:
useSkill(3, 'hp_min') # Ruby Mischief (179500): Reflect all spell(s) for 3 turns to one enemy
sushi = True # persistent
elif white == 10 and honey == True:
wait('random')
gourd = True # reset next turn
sushi = False # persistent
white = 0
black += 1
elif honey == True and bacon == False:
useSkill(6, 'random') # Metamorphosis (179530): Increase MAG by 100% for 999 turns to caster, Reduce SPR by 99% for 999 turns to caster
bacon = True # persistent
elif random() <= 0.30 and honey == True and berry == False:
useSkill(19, 'int_max') # Death (162200): [Death], Instant KO (100%) to one enemy
berry = True # reset next turn
white += 1
elif honey == True and peach == False:
useSkill(4, 'mind_max') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
peach = True # reset next turn
white += 1
elif honey == True and olive == False:
useSkill(4, 'random') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
olive = True # reset next turn
white += 1
elif honey == True and mango == False:
useSkill(5, 'random') # Ruby Sparkle (179520): Magic damage (1.35x, MAG) to all enemies, Reduce resistance to Light by 50% for 3 turns to all enemies
mango = True # reset next turn
white += 1
elif honey == True and lemon == False:
useSkill(13, 'random') # Banishga (160830): Magic light damage (2.3x, MAG) to all enemies
lemon = True # reset next turn
white += 1
elif self.HP > 0.6 and isTurnMod(3) and honey == True and grape == False:
useSkill(12, 'random') # Searing Light Over (179590): Magic light damage (1.7x, MAG) to all enemies
grape = True # reset next turn
white += 1
elif self.HP < 0.4 and isTurnMod(2) and honey == True and grape == False:
useSkill(12, 'random') # Searing Light Over (179590): Magic light damage (1.7x, MAG) to all enemies
grape = True # reset next turn
white += 1
elif honey == True and melon == False:
useSkill(14, 'random') # Silencega (176320): Inflict Silence (100%) on all enemies
melon = True # reset next turn
white += 1
elif honey == True:
useSkill(4, 'random') # Ruby Flash (179510): Magic damage (1.2x, MAG) to one enemy
white += 1
else:
attack('random')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment