Jump to content

[LE] If here is any way to check RefID of the NPC via papyrus?


myav

Recommended Posts

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 by myav
Link to comment
Share on other sites

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 by myav
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...