Jump to content

Modding: how to fetch NPC from current city with specific attributes into alias


zaira

Recommended Posts

Posted

I want to fetch one NPC into an alias who is in a specific faction and resides in the current town or city.

 

According to the papyrus documentation this should work:

Let's assume I am in "Winking Skeever" and the NPC with the searched faction "JobFactionBlacksmith" is in "Solitude" (this is the parent location of Winking Skeever)

 

  • Alias 1 "Player"
  • Location Alias 2 "Town" = PlayerAlias, Keyword LocTypeHabitation
  • Alias 3 "NPC" = GetInCurrentLocAlias(Town), HasKeyword(ActorTypeNPC), IsInFaction(JobFactionBlacksmith), allow reserved

 

"Town" is correctly filled wherever I start the quest (child or parent location), but "NPC" is only filled if I am in the same location than the NPC, not if I am in a child location (Winking Skeever).

 

According to the documentation : "GetInCurrentLocAlias returns TRUE if the reference's current Location is (or has a parent location of) the supplied alias. If run on a location, returns TRUE if the parent of the location is (or has a parent location of) the supplied alias." the reference has to be filled even if I am in a child location.

 

I don't get the point what I am doing wrong

 

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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