Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname SampleScript extends ReferenceAlias
- ; Comments
- ; https://www.reddit.com/r/FalloutMods/comments/4iqpvs/fo4_help_basic_script/
- ; Reference
- ; http://www.creationkit.com/fallout4/index.php?title=ReferenceAlias_Script
- ; http://www.creationkit.com/fallout4/index.php?title=Debug_Script
- ; http://www.creationkit.com/fallout4/index.php?title=Actor_Script
- Form Property ItemEquipped Auto
- Form Property ItemAdded Auto
- Event OnItemEquipped(Form akBaseObject, ObjectReference akReference)
- Actor player = Game.GetPlayer()
- If (self.GetActorReference() == player) ; player only
- If (akBaseObject == ItemEquipped)
- Debug.MessageBox("You just equipped the " + ItemEquipped + " item and will receive the " + ItemAdded + " item.")
- player.AddItem(ItemAdded, 1)
- EndIf
- EndIf
- EndEvent
Add Comment
Please, Sign In to add comment