# Is there a way to make this work

**URL:** <https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098>\
**Category:** Help\
**Tags:** extension\
**Created:** [June 4, 2025, 4:55pm UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098 "2025-06-04T16:55:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Platypus2341](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Platypus2341](https://forum.makecode.com/u/Platypus2341)\
**Post date:** [June 4, 2025, 4:55pm UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098/1 "2025-06-04T16:55:08Z")

</div>

I’m trying to make a quick heal option using the browser events extension and the mini menu extension the problem is I also have a menu when pressing menu or control and it has a backpack where you can also get the heals.

I added the better arrays extension to fix the main issue of it still being in the backpack of the menu, but the extensions don’t seem to work together it just takes the first thing from the mini menu or all the things if you have it like this.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/0/00c122a28611fc1f288dfc6d4d39dfc71609b7a9.png)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [June 5, 2025, 2:31am UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098/2 "2025-06-05T02:31:06Z")

</div>

Can you share your code? This would make debugging much easier. Also keep in mind that this “remove occurences” block removes _all_ occurrences of that thing, so it makes sense that it’s removing all of them. It might be removing all "menu item"s without checking if they are exactly the same things (it probably doesn’t check the text and the image to see if they are different)

---

<div class="post-metadata">

**Author:** ![Platypus2341](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Platypus2341](https://forum.makecode.com/u/Platypus2341)\
**Post date:** [June 5, 2025, 12:17pm UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098/3 "2025-06-05T12:17:17Z")

</div>

sure

> **[No name](https://arcade.makecode.com/S14882-87364-34900-41355)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

btw the layout is a mess

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [June 5, 2025, 6:33pm UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098/4 "2025-06-05T18:33:43Z")

</div>

Ok, the way you are doing this is quite messy. I would just have the set of variables with the number of life packs you have, and then construct the menu based on that whenever it’s displayed. That way you don’t need to remove life from the counter _and_ the menu every time you change the number of health packs you have. So something like this:

 ![Screenshot 2025-06-05 at 12.13.35 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/7/47a56397a7e324833fe433a0911754908cec7128.png)

---

<div class="post-metadata">

**Author:** ![Platypus2341](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Platypus2341](https://forum.makecode.com/u/Platypus2341)\
**Post date:** [June 5, 2025, 11:16pm UTC](https://forum.makecode.com/t/is-there-a-way-to-make-this-work/37098/5 "2025-06-05T23:16:53Z")

</div>

Thank you WoofWoof  
That worked the way I wanted, and I think I understand what you did so I can replicate it if I need because in my opinion when you’re coding you should try to understand what you’re coding.
