Jump to content

Random NPC for Quest alias with keyword


Recommended Posts

I want to select a random NPC actor as a quest alias in a repeatable quest. A different alias each time the quest runs. Not sure if this is a good way to accomplish this but I've assigned each NPC actor a common keyword. Now in the quest alias tab I want to have the quest pick one of the NPC's with that keyword. I have "unique actor" checked & 'none" as actor, then under 'match conditions' set HasKeyword to "MyKeyword" == 1.

 

Will this select a random actor with that keyword? or have I got it wrong?

 

Alternatively, should I write a script that makes a formlist of forms that have the keyword, then assign self=random_formlist_element to the quest alias ?

Edited by pcaviator
Link to comment
Share on other sites

Nope, is actually very simple.

 

Make a "Change location" SM Event node quest add the condition to start as you enter in the location where you have your npcs

 

Create an alias and make sure these checkboxes are marked: Reserve reference, Allow reuse in quest.

 

Then choose find matching reference > In loaded Area (make sure the quest starts only in the right area)

 

Then add the conditions

 

-Has Keyword (your keyword)

 

Then you can specify further your selection of npcs with specific info about them like "GetisRace" for example etc.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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