Aug 31st
As the new tournament starts on September (so logically, it should end on the 31st)
if you get hit by shockThrow/trap, it may stop your movement, making it stuck on a “0.5 tile” (so basically if hero.moveForward(0.5) was a thing, it makes it like that" and you arent able to get back onto opponent’s x axis/y axis. please fix this @Venneth
@Venneth I believe I have found the reason for the crabs exploding when I send them out. The boundaries for the crab include “cPosY<=5” but sometimes when I send them out, I am at hero.y=5 and they immediately explode. I also took a screenshot of the code where it is
@venneth it seems hero.getSolarMap is a bit… bugged.
it doesnt return a array.
POV hero.getSolarMap rn:
Hello, Why did I lose?
I thought if no-body had died, the winner would be the person who collected the most solar?
I guess ur solar win he after 120sec(It often happens to me too, I win only when it’s over)like more 0.5sec
Happens to me too. Probably a “last second win” type of thing
Does anybody know how to define the smoke thing?
Hero.findShadows (returns a array of shadows (x,y,duration)
Is there a function for me to find enemy shock traps?
Nope. Sorry. It’s all manual
Oof. That sucks. Thanks.
Try making functions to track when the opponent uses the ability, then put that location in a array
ty (10 chars forgot that rule)
Does enemy = hero.findNearestEnemy()
work to find the enemy?
No. Just use hero.opponent
.
Nope. Hero.opponent works
One last question do I need to loop through the array of shadows to find out if there are shadows at a specific x, y point or is there some sorta hero.lavaAtXY(x, y)
like Lava Lake had?
For that just do
for shadow in hero.findShadows:
if hero.distanceTo(shadow) <= #your number:
#have it do something
Yes. Hero.solaratxy. (and there isn’t a method to find shadows near a area. It’s all done manually)