this topicc is deaaddddd
This is my first time on Code Combat, I do python coding on checkio and codingame. This is a bit different. I am trying to do simple print or debug statements so I can see the results of arrays and whatnot, but I cannot seem to figure out how it works on here. Can anyone point me in the direction of the documentation I have missed or the simple command I missed.
I think you need to open the developer console using inspect element. Btw, next time if you’ve a question similar to this one just make a topic and mark it under level help. (now that i think about it, level help might not be the best catagory but it’s the best i could think of).
Also…
Welcome to the discourse
You probably already noticed the big blue thing at the top of the home page, it contains the rules and other information so you should check that out.
hero.say() also works, but it adds delays to the code.
I tried both hero.say(“anything”) and hero.say() and those show a ‘cant read protected property’. I am just trying to see the results of something such as hero.findMyUnits(0) for instance. I want to see the results of the array, see if it is just an array of the Unit objects or what. There must be some kind of simple print line or debug line for this type of action. I will try posting it in help.
So this does work, seems like an odd choice though. Thanks!
Try
console.log("result"),
will come up on F12 console.
- Yashins
Also, Does anybody know how to get the flaming ball on the target lane?
Need to use it for:
hero.distanceTo(ball)
It is:
hero.findBoulders()
They don’t say how to, though, so I see how you are confused.
Its really confusing bc they don’t update the hints properly.
may i ask is there a way to check the oppenents casted spells, I kinda see Learned doing that but I dont know if hes just checking the boulder’s position
Just found something:
1st Place W4V3:8988score
2nd Place HeeroL: 8988score
U see this rarely, so I decided to post it for fun.
Also, I’ve been summoning orbs, but they don’t appear? Either I don’t have enough coins or it’s a bug.
e.g.
hero.summon("elemental", 0)
hero.summon("elemental", 0)
hero.summon("phoenix", 0)
hero.summon("orb", 0)
hero.summon("orb", 0)
and only sometimes comes out without the orbs.
Anyone know why?
forces = hero.findForces()
Returns a list of all active forces on the game field.
type
- the force’s type, can be"push"
,"pull
, or"burst
I think it is that you dont have enough mana/coins cause that bug has also been happening to me
happpens so oftenn :(((((((
I’ve noticed a bug where sometimes a unit can get shoved behind another unit if it hits the ball with enough speed, or if the ball gets pushed at the right instant. Has anyone else experienced this?
@Learned Is this your situation??
My units do not travel through the ball, but they do travel through each other. For example, I will have an orb pushing an elemental, they will hit the ball at the same time an enemy unit hits the ball. The elemental will be pushed back, but the orb will not be pushed back as much, placing it behind the ball, but in front of the elemental (in other words, they swap places).
Venneth added something that I thought reversed the positions if they happened. It may only be for if a unit gets spawned in front of another one though.