Topic for Supercharged Clash

@Venneth I think this is something that should be fixed because there are some places where the mirroring is correct and others where it isn’t

2 Likes

Yeah. The mirroring right now is really jacked up. Its throwing off alll my scores currently.

2 Likes

i beat c0sterwiz in red but l0$e in BLUE!!! :face_with_raised_eyebrow: :face_with_raised_eyebrow: :face_with_raised_eyebrow: :face_with_raised_eyebrow: :face_with_raised_eyebrow: :-1:

1 Like

does hero.color work?


image

Uhh skill issue :moyai:
Jk a lot of ppl have this issue try making code for blue and red

1 Like

does if hero.blue work? it didnt work for the old arenas

1 Like

or does if enemy.name work

in collectorHandler, collector.x is millored, but collector.x that hero.findMyCollectors returns is not millored.
item.x are millored in both of collectorHandler and hero.findMyCollectors.

currently, hero.color works.
i couldn’t read enemy.name but i have the way to identify enemies.

what does millored mean?

thanks :laughing: :grinning: :grinning: :grinning: :grinning: :grinning: :grinning: :grinning: :grinning:
helps alot

1 Like

oh miroed mirror 20 charsssssss

Is item.x mirrored?

1 Like

i was wrong, item.x that hero.findItems returns is not mirrored.

3 Likes

in collectorHandler, item.x is not millored, but hero gets millored item.x.
i think this issue happens due to collectorHandler.

test code

javascript

let consoleItem = null, consoleBoolean = true;
function collectorHandler(data){
    let collector = data.collector;
    while(true){
        if(collector.item){
            collector.bring();
        } else {
            let item = collector.findNearestItem();
            if(item){
                if(consoleItem == null){
                    consoleItem = item;
                    console.log("collectorHandler:", item.x);
                }
                collector.pick(item);
            }
        }
    }
}

hero.on("spawn-collector", collectorHandler);
hero.spawnCollector();

while(true){
    hero.summonUnit("robot-soldier","ACEFG");
    hero.cast("hasteball", 10, 50);
    if(hero.findMyCollectors().length < 2){
        hero.spawnCollector();
    }
    if(consoleBoolean && consoleItem != null){
        console.log("hero:", consoleItem.x);
        consoleBoolean = false;
    }
}

python

consoleItem, consoleBoolean = None, True
def collectorHandler(data):
    global consoleItem
    collector = data.target
    while True:
        if collector.item:
            collector.bring()
        else:
            item = collector.findNearestItem()
            if consoleItem == None:
                consoleItem = item
                print("collectorHandler:", item.x)
            if item:
                collector.pick(item)

hero.on("spawn-collector", collectorHandler)
hero.spawnCollector()

while True:
    hero.summonUnit("robot-soldier","ACEFG");
    hero.cast("hasteball", 10, 50)
    if len(hero.findMyCollectors()) < 2:
        hero.spawnCollector()
    if consoleBoolean and consoleItem is not None:
        print("hero:", consoleItem.x)
        consoleBoolean = False
3 Likes

is this java code
2222222222222222200000 chars

k_k should I rejoin AI league?

yea its fun :grinning: :grinning: :grinning: :grinning: :grinning:

Anyone else winning almost every match on the red team but losing every match on blue team? Am I missing something?

1 Like