4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
784 B

Scriptname Z_Conversations_AracanistsScript extends Quest
GlobalVariable Property Z_Conversations_ArcanistsPackageSwitch Auto
ReferenceAlias Property Alias_Arcanist_02 Auto
ReferenceAlias Property Alias_Arcanist_RandomVoice Auto
ObjectReference Property MainArcanistRef Auto
ObjectReference Property RandomArcanist01Ref Auto
ObjectReference Property RandomArcanist02Ref Auto
Function UpdatePackageSwitch()
If Alias_Arcanist_02.GetReference() == MainArcanistRef
ObjectReference randomArcanistRef = Alias_Arcanist_RandomVoice.GetReference()
If randomArcanistRef == RandomArcanist01Ref
Z_Conversations_ArcanistsPackageSwitch.SetValueInt(1)
ElseIf randomArcanistRef == RandomArcanist02Ref
Z_Conversations_ArcanistsPackageSwitch.SetValueInt(0)
EndIf
EndIf
EndFunction