Kith, an ice guy

Then Kill him with a strong weapon

@Chaboi_3000 A suggestion: Try putting obstacle barriers around the border so nothing can “escape” the level.

1 Like

Nice challenge level, still can’t beat it with my current gear but I might soon (Death to the dreaded Dragon Clan…at one point or another! FOR THE HUMANS!!! :dragon::crossed_swords: lol).
A tiny question though: My current strategy is just to call all the friends that I can command to defend me, and the rest of my friends fight the Dragon Clan (this issue actually has nothing to do with my strategy but I thought it just might be good to elaborate). When I finish the level, it says “Ran Out of Time”, which is fine since my hero is still alive and I just started the level and am still thinking of better strategies. I view the goals, which say that I have defeated 7 out of the total 11 ogres in the Clan, but I scan the map and only find two Dragon Towers.
The ogre camps are just objects, so they can’t be considered enemies…right? And yet those are the only ogre-side thangs I can locate…:confused:

1 Like

I made those Ogre Barracks have the Attackable thang

1 Like

Oh, okay :sweat_smile:

1 Like

Can you fix this please.


I defeated the level the first time and I didn’t receive any gems or XP.:sob:

1 Like

I think it doesn’t give you any gems or XP because it’s a player-made, custom level and not an official, in-game campaign level (otherwise players would get a bunch of “free gems” and easy XP from playing levels that players made for fun or something).

1 Like

Ok thank.

(Post must be at least 20 characters)

2 Likes

Sorry I didn’t fully finish this level. This level is still in development. And also I put the dragon in the level for extra challenge.

Explains a lot. It said that I would get boss star five if I beat this level. And I didn’t get it.

1 Like

As I said again it is still in development

So that mean I can get the gems and XP when you finish it?:slightly_smiling_face:

1 Like

We will sometimes put levels that players create into the game, and then it’ll reward XP and gems. :slight_smile:

If you’re interested in building levels for the game, take a look at the “Tasks” tab in the level editor. That has a list of a lot of the things that need to be considered before we release a level in the game.

You can also find more help here: https://github.com/codecombat/codecombat/wiki/Artisan-Home

4 Likes

Ok that’s cool but I am a noob at making level.

2 Likes

It’s fine, I am too :joy:

2 Likes

Really? :slightly_smiling_face:

1 Like

Yeah, absolutely :rofl:

@Hellenar can you help me with this code

def valueOverDistance(item):
    return item.value / hero.distanceTo(item)

def findBestItem(items):
    bestItem = None
    bestValue = 0
    itemsIndex = 0
    
    while itemsIndex < len(items):
        if valueOverDistance(items[itemsIndex]) > bestValue:
            bestValue = valueOverDistance(items[itemsIndex])
            bestItem = items[itemsIndex]
        
        itemsIndex += 1
    return bestItem
while True:
    coins = hero.findItems()
    coin = None
    coin = findBestItem(coins)
    if coin and hero.isReady("jump"):
        hero.jumpTo(coin)
    elif coin:
        hero.moveXY(coin.pos.x, coin.pos.y)
    hero.buildTypes = ["decoy", "arrow-tower"]
    buildType = buildTypes[len(hero.built) % len(buildTypes)]
    if hero.gold >= hero.costOf(buildType):
        hero.buildXY(buildType, hero.pos.x, hero.pos.y)
    if hero.canCast("summon-undead"):
        hero.cast("summon-undead")
    enemy = hero.findNearestEnemy()
    if hero.canCast("chain-lightning") and enemy and hero.distanceTo(enemy) < hero.canCastRange:
        if enemy:
            hero.cast("chain-lightning", enemy)
    enemy = hero.findNearestEnemy()
    if hero.canCast("fear") and enemy and hero.distanceTo(enemy) < hero.canCastRange:
        if enemy:
            hero.cast("fear", enemy)
    enemy = hero.findNearestEnemy()
    if hero.canCast("poison-cloud") and enemy and hero.distanceTo(enemy) < hero.canCastRange:
        if enemy:
            hero.cast("poison-cloud", enemy)
    if hero.canCast("raise-dead"):
        enemy = hero.findNearestEnemy()
        if enemy and hero.distanceTo(enemy) < 5:
            hero.cast("raise-dead", enemy)
    enemy = hero.findNearestEnemy()
    if hero.canCast("devour") and enemy and hero.distanceTo(enemy) < hero.canCastRange:
        if enemy:
            hero.devour(enemy)

I am getting this error some where here

hero.buildTypes = ["decoy", "arrow-tower"]
    buildType = buildTypes[len(hero.built) % len(buildTypes)]
    if hero.gold >= hero.costOf(buildType):
        hero.buildXY(buildType, hero.pos.x, hero.pos.y)

Why hero.buildTypes? Just use buildTypes.

1 Like

When I use buildTypes I still get the same error.