Jump to content

Papyrus question: How can I get a list of elements that would be of an unknown length?


Recommended Posts

I have a created actors, right now theres like 10, but it will grow over time. So how can i get a list of these actors? Ultimately, I want to put the list into an array and eventually into a UI Extensions List Menu.

 

Would Keywords fit the bill? If I add a unique Keyword to my actors, is there a way to gather the IDs of entities/actors thru Keywords?

 

Using a Formlist might work. Creating the Formlist as part of the mod, scanning (somehow?) for the actor I want, then doing Formlist.Addform for each one. This could get stupid tho if the list gets long enough.

 

Is there another mod that does something like this? If so I don't have a problem looking at other source for examples.

Link to comment
14 minutes ago, markdf said:

JContainers and PapyrusUtil can both do dynamic data structures. Other than that, I think you're stuck with formlists.

I've used both, and they'd be great for the resulting list. What I'm trying to do is populate the list to begin with.

 

If I've got 14 different actors, how can I find them with papyrus?

 

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use