# Kelvintaph Glacier defiler strategy problem

**URL:** <https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243>\
**Category:** Level Help\
**Created:** [January 10, 2017, 1:01pm UTC](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243 "2017-01-10T13:01:54Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![goutham123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/goutham123/32/21341_2.png) [@goutham123](https://discourse.codecombat.com/u/goutham123)\
**Post date:** [March 22, 2021, 8:20pm UTC](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243/42 "2021-03-22T20:20:42Z")

</div>

@jka2706 THANK YOU SO MUCH!!! I AM SO GRATEFUL… IT WORKED!! The paladin is shielding, he is healing, and everything is going to plan. Could you please help me in how to move my allies onto the X.

with Thanks,  
goutham123

---

<div class="post-metadata">

**Author:** ![jka2706](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jka2706/32/13636_2.png) [@jka2706](https://discourse.codecombat.com/u/jka2706)\
**Post date:** [March 23, 2021, 8:34am UTC](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243/43 "2021-03-23T08:34:32Z")

</div>

I found this level really confusing, as it wasn’t really clear what I needed to do to solve it. I wrote some basic functions for what I wanted each ally to do, and then called different functions for different blocks of time. So I ended up with:

- A function for the paladin shielding and healing herself.
- A function to loop through the friends, and if they’re an archer to attack enemies (except yetis), then move to one of the x’s.
- A function to loop through the friends, and if they’re an soldier to attack enemies (except yetis), then move to a different x.
- A function for my friends to run away and hide.
- Then I started by getting the hero to move to 34, 21 (this seems to sort the Robot walkers).
- A while true loop that calls the function for the paladins for a few seconds, then breaks.
- A while true loop that calls the functions for the paladins, archers and soldiers. This runs until the Necromancer swaps with the yeti.
- A while true loop that calls the function for the friends to run away and hide.
- More code to get the hero to move around killing all the rest of the ogres.

There might be better ways of doing things - you’ll have to play with the code and timings to work it out 😀.

---

<div class="post-metadata">

**Author:** ![goutham123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/goutham123/32/21341_2.png) [@goutham123](https://discourse.codecombat.com/u/goutham123)\
**Post date:** [April 6, 2021, 7:08pm UTC](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243/44 "2021-04-06T19:08:42Z")

</div>

Never mind I got, BUT THANK YOU MUCH @jka2706

---

<div class="post-metadata">

**Author:** ![itik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/itik/32/28431_2.png) [@itik](https://discourse.codecombat.com/u/itik)\
**Post date:** [June 7, 2022, 7:20am UTC](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243/48 "2022-06-07T07:20:12Z")

</div>

(post deleted by author)

[Previous page](https://discourse.codecombat.com/t/kelvintaph-glacier-defiler-strategy-problem/10243.md?page=2)
