MV Check Element Rate on map

Hey guys!
I'd like to have a conditional branch that checks if the player's Element Rate is above/beneath a certain value, including all modification through states, equipment and so on. Also, I don't want to check this in battle, but in a normal event on a map.

Is there a script or something to make this possible?
assuming by the player you mean actor 1, $gameActors.actor(1).elementRate(elementId)
keep in mind that the value is a rate
1 = 100%, .5 = 50%, etc.
Perfect, that's it!
Thank you 🙂
assuming by the player you mean actor 1
Or, if you're doing stuff that depends on which actor is at the front of the party, that would be
Code:
$gameParty.leader().elementRate()

Original thread: https://forums.rpgmakerweb.com/threads/check-element-rate-on-map.173257/