Jump to content

Is there a way to auto fill property arrays?


Recommended Posts

I know that naming a property the same as an Editor ID will allow auto-populating the property in CreationKit. However, I would like to do the same thing for property arrays.

 

For example, if I have a property defined like this in a script:

ReferenceAlias[] property actorSlot auto

I would like to save time by auto-populating that array with ReferenceAliases titled something like "actorSlot00", "actorSlot01" and so on.

 

Is there a naming convention that allows this?

Link to comment
Share on other sites

  • 2 weeks later...

As others have said, no, sadly, there isn't. But I notice your example uses an alias as the property. Is that merely an example, or is it your actual intention? I ask because if you're going to point to an alias anyway, would it be possible to use a reference collection alias? Those, depending on your needs, can be populated automatically (since many quests do so) using criteria on the collection alias itself. If you could possibly go that route, you could have a single reference collection alias and iterate over the contents in it.

Link to comment
Share on other sites

ReferenceCollection Aliases is undocumented(not sure why and it's clear a few folks on this forum know a great deal about them..) and so some folks probably don't know how to work with them. I think it's little more to them than just being an array of aliases. I don't know how to work them myself, so I stick to the old fashion way of dealing with multiple aliases.

Link to comment
Share on other sites

ReferenceCollection Aliases is undocumented(not sure why and it's clear a few folks on this forum know a great deal about them..) and so some folks probably don't know how to work with them. I think it's little more to them than just being an array of aliases. I don't know how to work them myself, so I stick to the old fashion way of dealing with multiple aliases.

Ref Collection Alias is easy to use. You can look at WorkshopSummonedByBell Quest as an example. Basically it's almost the same as Reference Alias, but can be applied to multiple NPC in the same time.

So ,for example, if you want to give some package, keyword, spell to multiple actors, you can add them all to the same ref collection. Ref collection script recieves events from actors in the collection (I.e. Event OnActivate(ObjectReference akSenderRef, ObjectReference akActionRef) , etc).

The only way to make it a bit easier to fill Ref alias array property is to add the first property manually and then duplicare it+ change the alias. But it's only useful if your aliases are all from the same quest.

Link to comment
Share on other sites

As others have said, no, sadly, there isn't. But I notice your example uses an alias as the property. Is that merely an example, or is it your actual intention? I ask because if you're going to point to an alias anyway, would it be possible to use a reference collection alias? Those, depending on your needs, can be populated automatically (since many quests do so) using criteria on the collection alias itself. If you could possibly go that route, you could have a single reference collection alias and iterate over the contents in it.

 

Thank you. I just gave a bad example. The items that I need auto-added are not aliases. But, that is an interesting note about aliases being auto-populated. I've used reference collection aliases before. Haven't seen the auto-populate you refer to. How does that work?

Edited by dagobaking
Link to comment
Share on other sites

 

ReferenceCollection Aliases is undocumented(not sure why and it's clear a few folks on this forum know a great deal about them..) and so some folks probably don't know how to work with them. I think it's little more to them than just being an array of aliases. I don't know how to work them myself, so I stick to the old fashion way of dealing with multiple aliases.

Ref Collection Alias is easy to use. You can look at WorkshopSummonedByBell Quest as an example. Basically it's almost the same as Reference Alias, but can be applied to multiple NPC in the same time.

So ,for example, if you want to give some package, keyword, spell to multiple actors, you can add them all to the same ref collection. Ref collection script recieves events from actors in the collection (I.e. Event OnActivate(ObjectReference akSenderRef, ObjectReference akActionRef) , etc).

The only way to make it a bit easier to fill Ref alias array property is to add the first property manually and then duplicare it+ change the alias. But it's only useful if your aliases are all from the same quest.

 

I'll be sure to keep that in mind when/if I decide to work with it. Besides I have an inch that needs to be scratched and been wanting to create that page for the wiki.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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