Desert Dispute released!

try putting the x and y in quotes. I think i had a bug similar to this and all i did was just put them in quotes. i’m not sure if that’ll change anything though

yea, it didnt, i use javascript not python, in python it would change, heres the full function

function command() {
    var friends = hero.findFriends();
    for (var i = 0; i < friends.length; i++) {
        var friend = friends[i];
        var enemy = friend.findNearestEnemy();
        var enemy2 = hero.findNearestEnemy();
        if (friend.type == "grunnick" && enemy && friend.isReady("throw")) {
            hero.command(friend, "throw", enemy);
        } else if (friend.isReady("heal") && friend.type == "grunnick") {
            hero.command(friend, "cast", "heal", friend);
        } else if (enemy) {
            hero.command(friend, "attack", enemy);
        } else if (enemy2 && friend.type != "grunnick") {
            hero.command(friend, "move", enemy2.pos);
        } else if (friend.type == "grunnick") {
            hero.command(friend, "move", {
                "x": 27,
                "y": 51
            });
        }
    }
}

i dont get an error, its just my grunnicks do nothing

oh nvm i played around with iit and got it working

im gonna have to go, coming back in an hour ,you guys prob would be gone by then

aight, i have to go to bed anyway gn

I won’t lol, I’m gonna be working on this for a while still

Don’t use var, var is outdated and works strangely as well as bugs as bit, use let instead

ok im back, it took less time

fun, I’m like 50% done with my code only :skull:

whats your strat?

this is like the only quote in the whole arena
image

You’ll see, aint no way I’m telling you before I finish so you can immediately counter me lol I need top 1 for a bit

no you dont
and now piano zombie counters me

1 Like

yez I do, my code has 300 lines :skull:

Lol I’m still not finished with my code after like 4 hours :skull: ig I’ll finish it later

I keep getting infinite loop error from how many things my code is doing :skull: oh well, I’ll finish once I get the motivation to deal with codecombat errors that actual js would not have lol

1 Like

Seems like someone has taken “inspiration” from Nalfar’s strategy
Screenshot 2024-01-17 7.20.14 AM
Seriously this is ridiculous :skull:
Screenshot 2024-01-17 7.20.09 AM
I think we know what troop(s) are going in next balance changes.

rocketeer and grunnicks no doubt

guys, do any of you guys know how to make only one grunnick go to the point? right now with my code every grunnick goes to the same point

That’s one of important points, I think.
You should make it by yourself. btw, I made it with filtering the control points.

1 Like