Way to get an NPC’s RefID in game

the-elder-scrolls-v-skyrim

When using the console to affect NPC characters you always need their RefID. I always get this on one of the two Skyrim wikis because the following help command returns only their BaseID:

help <npc name> 4

Is there a way to get their RefID through the in game help search?

Best Answer

You can either get their RefID by clicking on them with the console open to target them, which should display their RefID at the top of the screen (source: UESPWiki), or by looking at an exhaustive list like this one (also UESPWiki).

I haven't heard of any other ways but will update my answer if I find anything.