Delzaron Posted February 23, 2017 Posted February 23, 2017 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
vpoteryaev Posted February 23, 2017 Posted February 23, 2017 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 nativeAlias[] function RemoveAlias(Alias[] ArrayValues, Alias ToRemove) global native...etc Kind Regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.