@roadkill_rodney
Where are you getting these supposed ID numbers from? In all my CK2 and Stellaris modding I've never come across using ID numbers to refer to anything and I don't think CK3 is any different. I don't think the game recognizes any ID numbers because it isn't intended to. In my experience the PDX way is to refer to things exclusively with a name string.
What exactly do you mean by getting the House name from the Explorer? What house name specifically were you trying to use?
Here's a screenshot from debug mode that shows the IDs and names. I searched through this whole thread to find examples and at least some of them referenced being able to use the IDs. The wiki and a few other sources made me think you could too, but examples were hard to find.
It's the top row that I'm aiming for in this test case, but I would then know how to generalize. I'm not totally inept with programming. I'm just nearing 40 and don't do it on a daily basis anymore, so I have to revert to simple base cases and then scale upward as I learn.
Thanks for the response and sorry I wasn't more clear initially.