Difference between revisions of "Papyrus FAQs"

255 bytes added ,  13:30, 11 May 2016
imported>Digitalparanoid
imported>Digitalparanoid
Line 287: Line 287:


=== How do I create a dynamic array? ===
=== How do I create a dynamic array? ===
According to SmkViper:
<pre>
Arrays are now dynamic. To create an empty array, pass 0 as the size. You are
now allowed to pass in a variable or calculation for an array size, and you can
call add and remove on the array to add and remove items.
</pre>
=== How do I create key-value pairs? ===
=== How do I create key-value pairs? ===
=== 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. ===