Jump to content

[LE] How can I fill a quest alias with the closest reference on a formlist


Recommended Posts

So I have a survey tool misc object that when ' Equipped ' fires a quest which needs to fill a quest target alias from a formlist of specific references. As I understand it all the items on said list have to be persistent references? So I made one of these items persistent via xEdit (the only list item in a specific cell) and it still doesn't seem to fill the references, and when I manually set the quest start stage it indicates that every object (presumably in the cell) isn't on the list

 

I have the alias set as Find Matching Reference -> In Loaded Area -> Closest and I have the condition set as IsInList and have the proper formlist of references indicated and the condition runs on Subject which I would assume is the reference being filled here. I have no check boxes set above

 

Not quite sure what I am missing here.

Link to comment
Share on other sites

If the closest function in quest alias works the same way as the closest function in papyrus (which is very likely to be the case), then the formlist has to contain "Base Objects", and it finds a nearby reference of that base object. In that case you can't fill the formlist with "Object References".

 

But if you do have the reference just add the reference directly as an alias?

 

http://www.creationkit.com/IsInList

Edited by gezegond
Link to comment
Share on other sites

I had a similar issue recently (http://forums.nexusmods.com/index.php?/topic/3868750-need-help-with-quest-aliases/)

 

I'm not sure that you need your FormList reference to be persistant, but I found that using 'In Loaded Area' and 'Closest' seems to in fact scan a much larger area than we'd think. In my case I was trying to fill my alias with a chair - but even from an intererior cell with only one chair, aliases did fill but never with the 'closest chair'.

 

I had to create a dummy quest which stops and restarts the 1st quest "OnLocationChange()" [and "OnPlayerLoadGame() in case you're testing after loading] - and then my alias filled properly. OnLocationChange() is of course not appropriate because it includes a very large number of cells but that's still an easy way to check if your aliases fill now.

 

Also like Gezegond says, I was under the impression that your FormList needs to list Forms, not References.

Link to comment
Share on other sites

well as a general rule, no, formlists can hold any form type and objectreferences can certainly be used on them (I use them that way for a number of other functions just fine) but maybe in this specific case it doesn't work, so I'll try adding a base from and see what happens. Thanks.

Link to comment
Share on other sites

Just as a simple info:

 

An ObjectBase is not in the Skyrim world so it has no "distance".

Only ObjectReferences have a distance (and references to BaseObjects in a container gets the distance from the container.)

Link to comment
Share on other sites

  • 3 years later...
  • 1 year later...

If I have a list of Furnitures (for example CommonBed01, which the object inherits activators which then inherits form) how exactly do you force the quest to restart and fill the aliases? I can't seem to fill aliases by checking if a furniture is in a formlist and I will try to start the quest that fills the aliases when I am standing right next to a bed that I know is on the list. I am using match conditions for closest and loaded area. And the condition function I am using is IsInList.

Edited by Cheyron
Link to comment
Share on other sites

  • Recently Browsing   0 members

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