enderalse/scripts/source/_00e_mq11c_pickuparroworquiver.psc

34 lines
1000 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11c_PickUpArrowOrQuiver extends ObjectReference
{Updates the stage once the player has picked up both the quiver and the bow}
Event OnInit()
self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
if (akActionRef == PlayerREF) && (MQ11c.GetStage() == 160) && bDone == False
bDone = True
self.Activate(PlayerREF, true)
if (Self.GetBaseObject() == _00E_MQ11c_SphereQuiver)
PlayerREF.AddItem(_00E_MQ11c_SphereArrow, 50)
ITMArrowsUp.Play(PlayerREF)
Self.MoveTo(_00E_NPCDumpMarker)
EndIf
if (PlayerREF.GetItemCount(_00E_MQ11c_SphereArrow) >= 1) && (PlayerREF.GetItemCount(_00E_MQ11c_SphereBow) >= 1)
MQ11c.SetStage(165)
EndIf
EndIf
EndEvent
Bool bDone
Activator Property _00E_MQ11c_SphereQuiver Auto
Ammo Property _00E_MQ11c_SphereArrow Auto
Weapon Property _00E_MQ11c_SphereBow Auto
Sound Property ITMArrowsUp Auto
Actor Property PlayerREF Auto
Quest Property MQ11c Auto
ObjectReference Property _00E_NPCDumpMarker Auto