# Are you able to see what an enemy is saying?

**URL:** <https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040>\
**Category:** Level Help\
**Created:** [May 22, 2022, 3:57pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040 "2022-05-22T15:57:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [May 22, 2022, 3:58pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/1 "2022-05-22T15:58:00Z")

</div>

I need it for a level… is there any way to see what it’s saying? Like `enemy.message` or something… (btw, `enemy.message` doesn’t work, I already tried owo)

---

<div class="post-metadata">

**Author:** ![phoenixRider2022](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/phoenixrider2022/32/29463_2.png) [@phoenixRider2022](https://discourse.codecombat.com/u/phoenixRider2022)\
**Post date:** [May 22, 2022, 4:08pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/2 "2022-05-22T16:08:50Z")

</div>

Well I don’t think there is a way to tell what an enemy is saying

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [May 22, 2022, 4:09pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/3 "2022-05-22T16:09:10Z")

</div>

Update: doesn’t seem like there is, I used this:

```javascript
const message = 'Collect gold';
const e = hero.findNearestEnemy();
const messageExists = Object.keys(e).filter(key => (function () {
    try { return e[key] } catch (error) { return false; }
})()).map(prop => e[prop]).indexOf(message) !== -1;

```

to filter all accessible properties and tried to find the message (which btw is incorrect here since I don’t want you to know the level)

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [May 22, 2022, 4:09pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/4 "2022-05-22T16:09:19Z")

</div>

Yeah, I don’t think so either

---

<div class="post-metadata">

**Author:** ![Alexbrand](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Alexbrand](https://discourse.codecombat.com/u/Alexbrand)\
**Post date:** [May 22, 2022, 9:38pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/5 "2022-05-22T21:38:44Z")

</div>

I’m not sure and I’m not the expert, but maybe something like that could be done. But by very pro coder.  
I’ll try to find close topic a little bit later.

---

<div class="post-metadata">

**Author:** ![Alexbrand](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Alexbrand](https://discourse.codecombat.com/u/Alexbrand)\
**Post date:** [May 22, 2022, 10:05pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/6 "2022-05-22T22:05:01Z")

</div>

Maybe this would help or give hints or ideas…

> [@Зачем просто, если можно сложно: Sarven Sentry help](https://discourse.codecombat.com/t/sarven-sentry-help/20134):
>
> Why should you make it easy when you can make it difficult? See [video](https://player.vimeo.com/video/388253380?autoplay=1) and code ( not fully working, do not delete): points = [{"id": "Fidsdale", "x": 20, "y": 31, "fl": 0}, # put into points array all archer ids and # x, y points where the hero must build things] speakers = [] things = [] def onHear(event): message = event.message speakers.append(event.speaker) replacements = [',', '!', '!','.', '–'] # '–' very obscure char f…

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [May 22, 2022, 11:10pm UTC](https://discourse.codecombat.com/t/are-you-able-to-see-what-an-enemy-is-saying/33040/7 "2022-05-22T23:10:03Z")

</div>

Ooooh, good idea, to use the pet… hmm
