Jump to content

Alias filling problem


Delzaron

Recommended Posts

Hi

 

I got an interesting an ew problem...

 

Usually, alias filling like alais.forcerefto(actor) works, but not this time...

 

This is the script (it's a dialogue script)

 

CK says simpleslave1 is not a function, or I recorded his variable as a referenceAlias.

 

SuiteSlave1.ForceRefTo(akspeaker)
akspeaker.addtofaction(aTIDIbnSlavePlayerPropertyFaction)
akspeaker.addtofaction(aTIDIbnPlayerNobleSuiteFaction)
akspeaker.setfactionrank(aTIDIbnPlayerNobleSuiteFaction, 0)
(aTIDdialogueNobleSuite as aTID4DialogueNobleSuiteScript).SuiteSlave(1)
(aTIDdialogueNobleSuite as aTID4DialogueNobleSuiteScript).EvaluateRecruitSlave(1)
(aTIDdialogueNobleSuite as aTID4DialogueNobleSuiteScript).EvaluateSuiteMember(1)

 

 

 

Edit : problem solved !

 

So, I reformulate my question : how I can create an alias list? For example, if I want to be followed by several slaves, I just can fill an alias, but maybe I can place several aliases in one, no ?

 

Thanks in advance

Link to comment

Lists? In Papyrus concept maybe you mean Array?

In that case answer is "Yes"

ReferenceAlias[] Slaves

Even SKSE supports dynamic arrays with utility.CreateAliasArray()

PapyrusUtil gives even more:

Alias[] function PushAlias(Alias[] ArrayValues, Alias push) global native
Alias[] function RemoveAlias(Alias[] ArrayValues, Alias ToRemove) global native
...etc

 

Kind Regards

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