Difference between revisions of "Papyrus FAQs"

Jump to navigation Jump to search
276 bytes added ,  12:30, 11 May 2016
imported>Digitalparanoid
imported>Digitalparanoid
Line 297: Line 297:


=== How do I create key-value pairs? ===
=== How do I create key-value pairs? ===
According to SmkViper:
<pre>
You can basically fake a map using structs and the new FindStruct function. Just
make one struct variable your key, and the other the value, and then run Find on
the key. (Unlike maps, duplicates are permitted since it's just an array.)
</pre>
=== When I call Activate() on a stack of items dropped by the player, only one item in the stack is returned. ===
=== When I call Activate() on a stack of items dropped by the player, only one item in the stack is returned. ===
=== Why do the FindAllReferences* functions appear to return references in the player's inventory? ===
=== Why do the FindAllReferences* functions appear to return references in the player's inventory? ===

Navigation menu