pickup-helper/Source/Scripts/PRKF_ETAxTakePerk_02000805.psc

99 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2022-02-13 02:15:13 +00:00
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
2022-05-20 11:25:32 +00:00
;NEXT FRAGMENT INDEX 37
2022-02-13 02:15:13 +00:00
Scriptname PRKF_ETAxTakePerk_02000805 Extends Perk Hidden
2022-05-20 11:25:32 +00:00
;BEGIN FRAGMENT Fragment_36
Function Fragment_36(ObjectReference akTargetRef, Actor akActor)
2022-02-13 02:15:13 +00:00
;BEGIN CODE
2022-05-20 11:25:32 +00:00
PlayerScript.TakeByKeyword(VendorItemGem)
2022-02-13 02:15:13 +00:00
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_15
Function Fragment_15(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE
; Ingredients
; This fails on dropped items, looking for a proper way to detect them
Form rBase = akTargetRef.GetBaseObject()
if rBase
PlayerScript.TakeByFormOrList(rBase)
;PlayerScript.PickFloraByTypeIdAndIngredient(38, rBase) ; tree
;PlayerScript.PickFloraByTypeIdAndIngredient(39, rBase) ; flora
else
PlayerScript.TakeByFormType(30)
endif
;END CODE
EndFunction
;END FRAGMENT
2022-05-20 11:25:32 +00:00
;BEGIN FRAGMENT Fragment_33
Function Fragment_33(ObjectReference akTargetRef, Actor akActor)
2022-02-13 02:15:13 +00:00
;BEGIN CODE
2022-05-20 11:25:32 +00:00
PlayerScript.TakeByKeyword(VendorItemAnimalHide, true)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_18
Function Fragment_18(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE
; Flora
if ! akTargetRef.IsActivationBlocked()
PlayerScript.PickFloraByType(akTargetRef.GetBaseObject())
endif
2022-02-13 02:15:13 +00:00
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_3
Function Fragment_3(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE
PlayerScript.TakeByFormOrList(ETAxGoldList)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_12
Function Fragment_12(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE
PlayerScript.TakeByKeyword(VendorItemOreIngot, true)
;END CODE
EndFunction
;END FRAGMENT
2022-05-20 11:25:32 +00:00
;BEGIN FRAGMENT Fragment_6
Function Fragment_6(ObjectReference akTargetRef, Actor akActor)
2022-02-13 02:15:13 +00:00
;BEGIN CODE
2022-05-20 11:25:32 +00:00
; Arrows and projectiles
PlayerScript.TakeByFormOrList(ETAxArrowList)
2022-02-13 02:15:13 +00:00
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_31
Function Fragment_31(ObjectReference akTargetRef, Actor akActor)
;BEGIN CODE
PlayerScript.TakeByFormOrList(Lockpick)
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
ETAxPlayerAliasScript Property PlayerScript Auto
Actor Property PlayerRef Auto
FormList Property ETAxGoldList Auto
FormList Property ETAxArrowList Auto
Keyword Property VendorItemOreIngot Auto
MiscObject Property Lockpick Auto
Keyword Property VendorItemAnimalHide Auto
2022-05-20 11:25:32 +00:00
Keyword Property VendorItemGem Auto