Editing Papyrus FAQs
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 16: | Line 16: | ||
=== To whom do I send fan/hate mail about Papyrus? === | === To whom do I send fan/hate mail about Papyrus? === | ||
[https://community.bethesda.net/people/SmkViper SmkViper] created Papyrus and actively helps scripters in the | [https://community.bethesda.net/people/SmkViper SmkViper] created Papyrus and actively helps scripters in the official Fallout 4 Creation Kit forum. | ||
== First Steps == | == First Steps == | ||
Line 167: | Line 167: | ||
<PapyrusProject xmlns="PapyrusProject.xsd" Flags="Institute_Papyrus_Flags.flg" Output="D:\Steam\steamapps\common\Fallout 4\Data\Scripts" Optimize="true" Release="true" Final="true"> | <PapyrusProject xmlns="PapyrusProject.xsd" Flags="Institute_Papyrus_Flags.flg" Output="D:\Steam\steamapps\common\Fallout 4\Data\Scripts" Optimize="true" Release="true" Final="true"> | ||
<Imports> | <Imports> | ||
<Import>D:\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base</Import> | |||
<Import>D:\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User</Import> | <Import>D:\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User</Import> | ||
</Imports> | </Imports> | ||
<Scripts> | <Scripts> | ||
<Script>AutoLoot\Fragments\Terminals\TERM_dubhAutoLootMenuAdvance_0100272C.psc</Script> | |||
... | |||
</Scripts> | </Scripts> | ||
</PapyrusProject> | </PapyrusProject> | ||
Line 196: | Line 196: | ||
== Advanced == | == Advanced == | ||
=== Are While loops safe to use for persistent or continuous effects? === | === Are While loops safe to use for persistent or continuous effects? === | ||
Line 284: | Line 280: | ||
=== Are arrays limited to 128 elements? === | === Are arrays limited to 128 elements? === | ||
According to SmkViper: | According to SmkViper: | ||
<pre> | <pre> | ||
There is still an internal 128 limit on array items. Attempting to make an array larger than that will spit out an error at runtime. | |||
make | |||
</pre> | </pre> | ||
=== | === How do I create a dynamic array? === | ||
According to SmkViper: | According to SmkViper: | ||
<pre> | <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> | </pre> | ||
=== 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. === | |||
=== Why do the FindAllReferences* functions appear to return references in the player's inventory? === | |||
=== Does the FindAllReferencesWithKeyword function accept a Formlist as a parameter? === | |||
=== Can structs store arrays, other structs, and var types? Can arrays store arrays? === | === Can structs store arrays, other structs, and var types? Can arrays store arrays? === | ||
=== Can CallFunction() be used for reflection? === | === Can CallFunction() be used for reflection? === | ||
=== How do I use custom events instead of CallFunction()? === | === How do I use custom events instead of CallFunction()? === | ||
=== I can't figure out what scripts govern the supply lines! Halp. === | |||
== | |||
=== | |||