How to set a variable to region ID?

Hi! I'd just like to use different sprites for my actors based on the region.
How would I set a variable to a region ID? I'm planning on using a parallel process for a conditional branch, but I can't seem to figure it out.

I was planning on using Galv's region effects for this originally and edited the script so it affected the party members as well, but... it lagged my game big time, so I'm wondering if this is more doable.

I've tried looking up any guides on this, but I can't seem to find any aside a vague reddit post.

Appreciate any help received. :LZSproud:
Go to the 3rd event commands page and to the last command in map subsection: 'Get Location Info'.
In it, you can store into a variable the region ID and other tile data.
Ahhh, I didn't know that was a function there. Thank you so much for it!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-a-variable-to-region-id.176677/