# Timber Guard(python)

**URL:** <https://discourse.codecombat.com/t/timber-guard-python/24094>\
**Category:** Level Help\
**Created:** [September 14, 2020, 1:24am UTC](https://discourse.codecombat.com/t/timber-guard-python/24094 "2020-09-14T01:24:29Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jake\_Doggy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jake_doggy/32/13887_2.png) [@Jake\_Doggy](https://discourse.codecombat.com/u/Jake_Doggy)\
**Post date:** [September 15, 2020, 12:33am UTC](https://discourse.codecombat.com/t/timber-guard-python/24094/21 "2020-09-15T00:33:41Z")

</div>

back, can you show me your code?

---

<div class="post-metadata">

**Author:** ![Grzmot](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/grzmot/32/13514_2.png) [@Grzmot](https://discourse.codecombat.com/u/Grzmot)\
**Post date:** [September 15, 2020, 12:43am UTC](https://discourse.codecombat.com/t/timber-guard-python/24094/22 "2020-09-15T00:43:25Z")

</div>

@CocoCharlie If you want to command your friends to move somewhere, it should look like this:

```python
hero.command(friend, move, {"x": Your X position here, "y": Your Y position here})

```

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [September 15, 2020, 2:20pm UTC](https://discourse.codecombat.com/t/timber-guard-python/24094/23 "2020-09-15T14:20:21Z")

</div>

Like this:

```python
if enemy:
                
                hero.command(friend, "attack", enemy)
            else:
                hero.command(friend, "move", {'x': X coordinates, 'y':Y coordinates})

```

Lydia

---

<div class="post-metadata">

**Author:** ![CocoCharlie](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cococharlie/32/19081_2.png) [@CocoCharlie](https://discourse.codecombat.com/u/CocoCharlie)\
**Post date:** [September 16, 2020, 2:13am UTC](https://discourse.codecombat.com/t/timber-guard-python/24094/24 "2020-09-16T02:13:34Z")

</div>

Hi, i have a TON of school work to do, so i still can’t get back to you. ☹ ☹

[Previous page](https://discourse.codecombat.com/t/timber-guard-python/24094.md?page=1)
