MV (Solved) SumRndmDde Hud Maker: Get Map ID for a HUD condition

Hello there. I'm someone who has been using RPG Maker for many years, starting with XP. Currently I'm working on a project that involves the player traveling between different planets, and I wanted it to have an active HUD on the side of the screen showing the player various statistics.
I am using SumRndmDde's "HUD Maker", a plugin as a part of his "Super Tools Engine" series. It's really helpful and great plugin, and it's a lot of fun designing the HUD, however I am a little stuck on something.

1650820243148.png
1650820260618.png


(The HUD is currently an early WIP).
I'd like for there to be a way that the HUD can tell the player which location they're in at all times. The best way I can think of this, is to have text elements that have a condition to know which Map ID the player is currently on, and then show the element. I'm not too bad at using script calls (which is what the Condition item on the right requires), but sadly I can't figure out what script call to use to find the value of whatever map the player is currently on.

The only script call I know of how to implement is how to check if a certain switch is on or off, as seen in SumRndmDde's own video ($gameSwitches.value([number]). Implementing a feature where a switch is turned on or off based on where the player is would get really complex and space consuming, considering the fact that several entire planets are involved in this game, some of which can even have their own sub-regions.

Any help and advice would be greatly appreciated, thank you!

P.S. Is there also a means of checking if the player has a specific weapon or armor equipped in a script call, too? I'd like another HUD element showing what tool they have equipped.



SOLVED:

I ended up figuring it out myself with the help of a script call cheat sheet. If I want a text element to say, display "Earth", and the Earth map is has a MapID of 4, I'll put:
$gameVariables.value(x) == 4
x = the variable I used to store the MapID.
Every single map, I'll have a parallel process store the MapID in a variable, and just read that variable for the script call.
you can also use "$gameMap.displayName();" to get the mapID
location name instantly, without setting a variable.
set this one as value, and you are good to go.

using a switch can be used to toggle it on/off.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-sumrndmdde-hud-maker-get-map-id-for-a-hud-condition.147044/