myav Posted January 30, 2020 Share Posted January 30, 2020 (edited) I use cloak spell that to check all npc in the radius around player and to make changes to them. But how to identify them? ... i use race checking.. gender checking.. voice checking.. and even combatstyle checking.. that to identify)) But... Not enough (( what to do if couple of the npc have the same race/voice/style/gender but they are different and have different names? i can't identify with "hp/level stats" check, because other mods - very often change them. Also, i can't identify with string GetName and GetDisplayName, because my game is localized (and as result - all names of the npc are localized too) and papyrus understand only english compare of the strings. Does Skyrim have any way that to check RefId through papyrus? Or any way that to compare as string localized names of the actors if they have the same length? Edited January 30, 2020 by myav Link to comment Share on other sites More sharing options...
shumkar Posted January 30, 2020 Share Posted January 30, 2020 (edited) Hi myav, Won't this mod help? https://www.nexusmods.com/skyrimspecialedition/mods/19250 It's not papyrus, though. Edited January 30, 2020 by shumkar Link to comment Share on other sites More sharing options...
JustChill Posted January 30, 2020 Share Posted January 30, 2020 Do you use SKSE? If so, you have access to these functions: https://www.creationkit.com/index.php?title=GetNumRefs_-_Cellhttps://www.creationkit.com/index.php?title=GetNthRef_-_Cell Type Code 43 stands for NPCs. :) Link to comment Share on other sites More sharing options...
myav Posted January 30, 2020 Author Share Posted January 30, 2020 (edited) shumkar, i need papyrus that to add checking in the code. changed: JustChill, yes, i use skse, but to check whole cells each some seconds are too heavy way. I need way that to check ref or compare localized names through cloak with much more smaller radius, than cell. Edited January 30, 2020 by myav Link to comment Share on other sites More sharing options...
JustChill Posted January 30, 2020 Share Posted January 30, 2020 That might be true.I used a similar function to check just creatures in Fallout New Vegas and if they are in a specific player friendship faction.I even used the mesh path (a string) to check which specific kind of creature it was and that worked fine for me. But it can be surely considered to be a heavy script. Yet in my case, I even added an option for the player to change the Script Processing Delay and even turn the script off completely.I guess such function won't be an option in your case. Unfortunately I couldn't find another function to get references in the papyrus function list. :sad: Link to comment Share on other sites More sharing options...
Recommended Posts