Your quest being available on any NPC in the whole game is pretty uncommon.
Anyway, my understanding of this is - what you want requires you to to run code within the NPC itself and it is a process of elimination, not a report of what the ID is. You can do this either by scripting the NPC (which isn't available if you really want this available on every single NPC), or, you can use what we call a "token" to run code inside of the NPC.
If I were you I'd make your quest not be available on every single NPC... I've never even tried doing that and I think it would open up a bunch of complexities, in particular if you're new to the GECK and such.
Yeah im working on a beggar quest, available to all NPC to get used with the globals variables. Here what im trying to do :
- Character speech challenge for begging for some caps (working as intended)
- On success, I want to check the npc wallet with a dialogue condition to find out if he got some caps to spare (???)
- On fail do something (Working as intended)
- Remove the caps from the NPC wallet (???)
- Do more stuff such as adding a perk to the player, some variables for statistics etc.
Thats about it. My main concern is to get the active actorID for my script. Looping all npc seem a bit too intenssive but it worth a try.
thanks for your anwser!