enderalse/source/scripts/z_conversations_aracanistsscript.psc

21 lines
784 B
Plaintext

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