Difference between revisions of "Perk Fragments"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Fg109 m (added note) |
||
Line 12: | Line 12: | ||
* akActor: This is the [[Actor Script|Actor]] that has the perk on him. With the current design, NPCs won't run activate entry point perk entries (which is where these fragments reside), so this will always be the player. It is still passed in case that design choice changes. | * akActor: This is the [[Actor Script|Actor]] that has the perk on him. With the current design, NPCs won't run activate entry point perk entries (which is where these fragments reside), so this will always be the player. It is still passed in case that design choice changes. | ||
* akTargetRef: The [[ObjectReference Script|ObjectReference]] that the actor above has activated. | * akTargetRef: The [[ObjectReference Script|ObjectReference]] that the actor above has activated. | ||
== Notes == | |||
* When a perk fragment script is first created, it isn't possible to add properties to it. You must first close the Perk dialog window and then reopen it before adding properties to the script. | |||
== See Also == | == See Also == | ||
*[[Perk Script]] | *[[Perk Script]] |
Latest revision as of 10:42, 20 April 2012
Type[edit | edit source]
Perk fragment scripts extend Perk.
Run Time[edit | edit source]
Perk fragments are run either when something is activated and all conditions are met (run immediately is checked); or when something is activated, all conditions are met, and the player picks the appropriate option in the popup menu (run immediately is not checked).
Special Variables[edit | edit source]
- akActor: This is the Actor that has the perk on him. With the current design, NPCs won't run activate entry point perk entries (which is where these fragments reside), so this will always be the player. It is still passed in case that design choice changes.
- akTargetRef: The ObjectReference that the actor above has activated.
Notes[edit | edit source]
- When a perk fragment script is first created, it isn't possible to add properties to it. You must first close the Perk dialog window and then reopen it before adding properties to the script.