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.
1 Like
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)
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:
2 Likes
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.
1 Like