MV Getting Id of the highlighted weapon in Item Scene

I'm using Yanfly's independent items and eval text plugins to try and get the id of a weapon in order to show how much it costs in its description like this:

\evalText<<$dataWeapons[2].price>>

Now, this works and returns Weapon 2's price, but what I want to do is change that 2 to reference the item I'm highlighting. I've tried to reference its id through all the means I know and I'm at a loss. I'm in need of a javascript guru 😤.

Thank you in advance 😍
You probably don't want the ID, you want the actual item since independent items store all of their attributes in an item object.

Try with your eval SceneManager._scene.item().price
Thank you so much @ATT_Turan! It works like a charm. I danced around so many similar evals but couldn't reach the magic one. Thanks again 😍
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/getting-id-of-the-highlighted-weapon-in-item-scene.172450/