What do you mean by brrrrr?. And move pet.on
out of the whole loop.
Use the gift of the trees for naria (you need scattershot)
Not really, I beat the level without using the gift of the trees. Itâs rather the code that needs improvement.
My hero goes spinning (sorta)
Lydia
It still doesnât work even after I move pet.on
out of the loop.
Lydia
This is definitely challenging. I used Senick and struggled to survive the first time I tried this level. Flags are actually unneeded in this level. Youâd probably want to use moveXY()
more than flags. I recommend you use griffin-riders for troops since they deal decent damage and have a high HP value compared to archers. Hereâs a quick demo video of what I did for the level:
I think your Blue Fox have to move to skeletons.
What do you mean?
Lydia
Before it shapeShift()
it have to moveXY
to skeletons.
@Chaboi_3000 Can you make a Tips topic for Restless Dead like this one?
But for Restless Dead?
Lydia
Yeah sure Iâll try to get some time. Pretty busy with exams though.
Youâre still in school? I thought you graduated already.
Lydia
I still have classes Just good at time management so I shouldnât have a load on me.
Well, after graduation thereâs still college or if you want get different degrees.
@Lydia_Song
I just tried this level using your exact equipment(Shown below), and finally completed this level with a whooping 80 lines of code!
I did as @xython said,
- No new equipment(All are copied from Lydiaâs inventory)
- No flags
Hereâs the quick gameplay GIF of Restless Dead using the above methods + equipment:
Hopefully this gives you a better understanding of different ways you can complete this level. Have fun!
Personally I never knew how much of a challenge this level is â Iâve been using Senick + Gift of Trees, so it wasnât too much of a challenge. Fun one though! Really pushed my algorithmic thinking!
Thank you for this advice, I will try it as soon as possible.
You can summon griffin-riders with BS3?
Lydia
One thing I donât get is did you use while-true loops? I canât figure out how to command my hero to move to different spots while doing something. Without my hero just going back and forth.
Lydia
def onSpawn():
if pet.isReady("shape-shift"):
pet.moveXY(58, 54)
pet.shapeShift()
pet.moveXY(50, 37)
def summon():
if hero.gold > hero.costOf("archer"):
hero.summon("archer")
def command():
friends = hero.findFriends()
for friend in friends:
if friend.type == "archer":
enemyF = friend.findNearestEnemy()
if enemyF:
hero.command(friend, "attack", enemyF)
else:
hero.command(friend, "move", {'x':36, 'y':40})
def friendMove():
friends = hero.findFriends()
for friend in friends:
if friend.type == "archer":
hero.command(friend, "move", {'x':36, 'y':38})
def attack():
enemy = hero.findNearestEnemy()
hero.move({'x':56, 'y':51})
if enemy:
if hero.isReady("throw"):
hero.throw(enemy)
if hero.canCast("chain-lightning", enemy):
hero.cast("chain-lightning", enemy)
else:
hero.attack(enemy)
def collect():
item = hero.findNearestItem()
if item:
hero.move(item.pos)
def move():
hero.move({'x':19, 'y':40})
hero.move({'x':56, 'y':51})
pet.on("spawn", onSpawn)
while True:
friends = hero.findFriends()
item = hero.findNearestItem()
enemy = hero.findNearestEnemy()
summon()
command()
friendMove()
move()
if enemy:
attack()
if hero.time < 40:
collect()
My hero still does the same thing.
Lydia
Yes, you can. I used all of your listed Naria equipment
I did the first movements outside of a while true loop, and I used the gilt wristwatchâs hero.time
to transition from outside the graveyard to inside the graveyard
So you did something like this?
while True:
if hero.time <= 40:
hero.moveXY(inside graveyard)
if hero.time <= 50:
hero.moveXY(outside graveyard)
Lydia