Jump to content

Alias filling problem


Delzaron

Recommended Posts

Posted

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

Posted

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

Archived

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

  • Recently Browsing   0 members

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