Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
m
imported>JustinOther
imported>JustinOther
Line 800: Line 800:


=== Script a container that only accepts certain types of items ===
=== Script a container that only accepts certain types of items ===
'''How to use this script''': Change the ITEM properties to whatever you want and the container will only accepts those items. If you want a container that only accepts an item that isnt a MiscObject just change the property type to the correct type. If you require your container to accept more than just three item types add another property for the item followed by another If (akBaseItem !=  ITEM4). Dont forget your Endif!
'''How to use this script''': Fill the FormList, AcceptedItemFLST, with only the item(s) you want the container to accept.
<Source lang="Papyrus">
<Source lang="Papyrus">
ScriptName ExampleContainerScript extends ObjectReference
ScriptName ExampleContainerScript extends ObjectReference
Anonymous user

Navigation menu