Burning Ices Updates Thread

Are you sure?
@Red-backspider
Try this code.
it summons and commands necromancers.

hero.summon('necromancer')
hero.summon('necromancer')
hero.summon('necromancer')
def command():
    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "necromancer":
            if friend.canCast("summon-undead"):
                hero.command(friend, "cast","summon-undead")
while True:
    command()

1 Like

thank you! i will try it

1 Like

it works! (2 charcs)

1 Like

Update:
Added CONTROL BUSTERS!!!
This monstrous machine can clear out control points with ease.
Boasting 300 damage, and 140 health, it is a force to be reckoned with.
A single shot towards an enemy control point can kill all it’s guards, clearing it.
However, don’t accidently bust your own control points, as it has friendly fire!
It’s powerful flaming balls of death, have a splash range of 15 meters!
Value!

Balance Update:
Alchemist Spell Duration 50-10 seconds.
Alchemist Freezing Attacks
Alchemist can heal 300 health every 3 seconds.
Knight:
Cleave Damage 25 - 30
Control Buster:
Attack Cooldown 3-5
Enjoy!
:partying_face:
Cya on the ladder!

Balance Update:
Fixed many bugs with control busters:
All alchemist spell cooldowns reduced from 10-5
Which means an alchemist can cast a spell every 5 seconds.
She can cast multiple different spells in those 5 seconds.
Knight Bash DMG 50 - 40
Alchemist DMG 40-60
Also, you might want to use spells in alchemist commandiing code, as they can buff allies greatly.

Alchemist rework:
All benevolent spell duration decreased to15 seconds.
Damage decrease from 60 to 40 a second.

NEW UNIT!
Enchantress:100 gold, 50 attack dmg, 120 health:
Spells = [‘summon-yeti’, 'summon-robobomb, ‘dispel’, ‘magnetic-field’]
Enjoy!!
You can use canCast on her.
if enchantress.canCast(“spell”):
#do something

Added invisibility for enchantresss.
Deadly with robobombs…

NEW UNIT!
BUILDER, WELCOME TO THE ARENA!
A builder has a unique utility.
It can build fortresses, castles, archer towers, and soldier huts.
It can also build ROBOBOMBS!!!
These are not the same robobombs as those summoned by enchantresses.
They do less damage, but have a wider blast radius, and don’t have friendly fire!
Fortresses and castles cost 200.
Archer towers and soldier huts cost 100.
A robobomb costs 80.

hero.command(builder, ‘summon’, ‘robobomb’)
hero.command(builder, ‘summon’, ‘castle’)
Enjoy!
:partying_face:

NEW BUILDING!
Shaman shanty!
Summons a single shaman every 10 seconds!
The shaman can be commanded.
Soldier hut soldiers summoned 1-2
Archer tower archers summoned 1-2
Munchkin hovel!
summons 4 munchkins, and 2 throwers!
Use them to outswarm enemies!
However, munchkins are weak and easily defeated.
NEW SPELL FOR ALCHEMIST!
Earthskin!
Permanently increase the target’s health by 1.1!
5 seconds cooldown.

BALANCE UPDATE!
KNIGHT ADDED POWER UP!
INCREASE ATTACK DAMAGE BY 30!!!
hero.command(knight, ‘powerUp’)
KNIGHT ADDED WARCRY!!!
INCREASE SPEED AND ATTACK SPEED BY 1.4 IN 10 METERS!!!
hero.command(knight, ‘warcry’)
Cooldown is 5 seconds.
Enjoy!!!
:partying_face: :partying_face: :partying_face: :partying_face: :partying_face: :partying_face: :partying_face: :partying_face:
Burning Ices | Multiplayer Arenas | CodeCombat

TIEBREAKER UPDATE!!!
WHEN THE CLOCK REACHES 150 SECONDS, DEADLY NUCLEAR BOMBS WILL BEGIN TO SPAWN ACROSS THE MAP.
THE EXPLOSION IS 6000 DAMAGE, AND CAN KILL A HERO WITHOUT BUFFS!!!
THEY ONLY HAVE 1 HITPOINT, SO THEY WILL EXPLODE EVEN WITH THE SLIGHTEST NUDGE!!!
BEWARE!!!
Enjoy!!!
:partying_face:

Welcome to the arena, dark alchemist!
NEW UNIT!
Dark Alchemist!
Same stats, with the regular alchemist, but 1 difference.
The alchemist’s spells are usually benelovent, and for allies.
The dark alcehmist’s spells are nasty!
Spells = [‘chain-lightning’, ‘disintigrate’, fear’, ‘invisibility’, ‘summon-undead’]
You can use canCast, and it has 1 good spell intended for allies.
Invisibility.
you can use
darkalchemist.findFriends()
and darkalchemist.canCast(‘spell’)
Cya on the ladder!
:partying_face:

COLOR UPDATE!!!
YOU CAN NOW PLAY AS BLUE!
The colors now look much better.

2 NEW UNIT!S!!!
ZAP TOWER!
Introducing the Zap Tower!!!
It is a large tower, that has 800 health, and 40 damage. However, each zap with it’s beam lowers any target’s speed by 0.5!
Can be a major nuisance to a control point push!
Only 150 gold!
BOMB TOWER!
INTRODUCING THE BOMB TOWER!
Large tower that has low firerate, high damage, very short range, and medium health.
Houses a man with bombs, who throws them at anyone who is stupid enough to get too close!
130 gold!
Excellent swarm control!
Enjoy!!!
:partying_face:

Better Builders!
Changelog:
Heroes can no longer build control-busters, castles, fortresses, archer towers, and soldier huts.
If you want a castle, you must summon a builder, and command it to summon a castle for 150 gold.
hero.command(builder, ‘summon’, ‘castle’)
Builders can also build robobombs!
Robobomb stats:
500 dmg, 15 blast radius, no friendly fire, 180 health. 80 gold to build with builder.
Enjoy!
:partying_face:

I want my hero to build builders, zap towers, and rangers and my builders to build castles, fortresses, and robobombs, but why won’t my code work?
Code:

def buildArmy():
    # Your hero can summon and command allied troops.
    
    buildOrder = ["builder","castle", "zap-tower", "fortress","ranger", "robobomb"]  # "archer", "artillery", "arrow-tower"
    i = 0
    
    build = i % 2
    builder1 = hero.findNearest(hero.findByType("builder"))
    builder = None
    if build == 0:
        builder = hero
    if build == 1:
        builder = builder1
    type = buildOrder[len(hero.built) % len(buildOrder)]
    if hero.gold >= builder.costOf(type):
        if builder == hero:
            hero.summon(type)
        if builder == builder1:
            hero.command(builder1, "summon", type)
        
    i = i + 1
def commandArmy():
    enemies = hero.findEnemies()
    points = hero.getControlPoints()
    friends = hero.findFriends()
    
    for i, friend in enumerate(friends):
        if friend.health <= 0 or friend.type == "arrow-tower" or friend.type == "castle" or friend.type == "fortress" or friend.type == "zap-tower" or friend.type == "builder":
            continue
        # Command your army to capture control points.
        # Make sure to choose your control points wisely!
        
        point = points[i % len(points)]
        if hero.time < 90:
            hero.command(friend, "defend", point.pos)
        else:
            hero.command(friend, "attack", friend.findNearest(enemies))
    
def controlHero():
    enemies = hero.findEnemies()
    nearestEnemy = hero.findNearest(enemies)
    shouldAttack = hero.time > 90
    # Use your hero's abilities to turn the tide.
    # if shouldAttack: ...
    
    
while True:
    buildArmy()
    commandArmy()
    controlHero()

What is going wrong?

On builder.costOf(type),it says argument error.