Frozen Fortress/Equinox tips, tricks, and chat

I think you mean this right?

mana = hero.mana
def attackUPgrades():
#Start off with on ice tower.
hero.build(“ice”, “b”)
if hero.time > 0 and hero.time < 40:
enemy = hero.findNearestEnemy()
if enemy and enemy.distanceTo(hero) < 15:
hero.ability(“shockwave”)
hero.build(“ice”, “h”)
hero.ability(“haste”, hero)
hero.ability(“rage”, hero)
def farmup():
hero.build(“farm”, “a”)
hero.build(“farm”, “d”)
hero.build(“farm”, “c”)
hero.build(“farm”, “e”)
hero.build(“farm”, “f”)
hero.build(“farm”, “g”)
for i in range(15):
attackUPgrades()
farmup()
tower = hero.getTowerAt(“a”)
if tower.level <= 15:
hero.sell(“a”)
hero.build(“cannon”, “a”)
tower = tower = hero.getTowerAt(“b”)
if tower.level <= 15:
hero.sell(“b”)
hero.build(“archer”, “b”)
tower = hero.getTowerAt(“c”)
if tower.level <= 15:
hero.sell(“c”)
hero.build(“cannon”, “c”)
tower = hero.getTowerAt(“g”)
if tower.level <= 15:
hero.sell(“g”)
hero.build(“ice”, “g”)
Very important note for coding help from the CoCo Discourse

When formatting code, please click the gear, then click </> (Preformatted code)

1 Like

yes i mean that how to upgrade it

1 Like

</>
mana = hero.mana
def attackUPgrades():
#Start off with on ice tower.
hero.build(“ice”, “b”)
if hero.time > 0 and hero.time < 40:
enemy = hero.findNearestEnemy()
if enemy and enemy.distanceTo(hero) < 15:
hero.ability(“shockwave”)
hero.build(“ice”, “h”)
hero.ability(“haste”, hero)
hero.ability(“rage”, hero)
def farmup():
hero.build(“farm”, “a”)
hero.build(“farm”, “d”)
hero.build(“farm”, “c”)
hero.build(“farm”, “e”)
hero.build(“farm”, “f”)
hero.build(“farm”, “g”)
for i in range(15):
attackUPgrades()
farmup()

tower = hero.getTowerAt(“a”)
if tower.level <= 15:
hero.sell(“a”)
hero.build(“cannon”, “a”)
tower = hero.getTowerAt(“b”)
if tower.level <= 15:
hero.sell(“b”)
hero.build(“archer”, “b”)
tower = hero.getTowerAt(“c”)
if tower.level <= 15:
hero.sell(“c”)
hero.build(“cannon”, “c”)
tower = hero.getTowerAt(“g”)
if tower.level <= 15:
hero.sell(“g”)
hero.build(“ice”, “g”)
while True:
hero.build(“cannon”, “a”)
hero.build(“archer”, “b”)
hero.build(“cannon”, “c”)
hero.build(“ice”, “g”)

1 Like

Sorry can’t help with that part. But for anyone else out there who can help, the code is here

1 Like

Thanks! (20 chars happy)

1 Like

jacob tomas can you help me with my code

This is the strategy I use to upgrade:

while True:
    #put your code here
    #after a certain time break like this:
    if hero.time > 90:
        break
#sell whatever you want
hero.sell("a")
while True:
    #continue with your upgrades, and put a new tower in the place you sold.
1 Like

Some tips:
Rage and haste can be very useful, but they are not needed if you just started Frozen Fortress.

Keep an eye on your ranking, tactics change.
Once I was #14, and overnight someone found out a better tactic, everyone started doing it and I dropped to #750 overnight. :woozy_face:

Look at the top players, their strategy can be very helpful.

1 Like

Same I was once 2nd place on the first few hours of rage and haste being released. 3 days later everyone found the best way to use rage and haste and I dropped to #100.

1 Like

During a match with @k_k_javascript, I am red, he/she is blue. A goblin appears at 54 sec that seemed to come from the door and drais 10 of my health. This does not appear for my opponent though. Is this a bug? :thinking:

1 Like

Can you send a video of it?

1 Like
1 Like

Its a bug, because I don’t see anything at 54. It might be because of the color you are on, because in the link you sent you are blue.

I am red here.

1 Like

I had a bug like this when frozen fortress started, the enemies from the opponent’s side went over the wall and took my health. You might want to consider reporting the bug on the Frozen fortress bugs and feedback topic.

1 Like

Im new to code combat but i’m first in my school. How do I use rage?

1 Like

besides that, its saying that my game is already being ranked but i’ve gotten a new high score of 258000 and my ranking in the leaderboard hasn’t changed. What does that mean.

1 Like

Did you change your code before ranking?

This is how to use rage:

enemies = hero.findOpponentEnemies()

if len(enemies) > 0:
    hero.ability("rage",enemies[0])

working on new version right now, I’ll be done within an hour

1 Like