Difference between revisions of "Default Scripts List"

3,750 bytes added ,  17:04, 11 April 2015
no edit summary
imported>Matthiaswagg
imported>Matthiaswagg
Line 179: Line 179:
'''defaultButtonSCRIPT'''
'''defaultButtonSCRIPT'''


This script manages the animations of the button, and then activates itself (the button). ''In order to actually do something, you'll need a separate script with an OnActivate event to receive that activation.'' I.e. a button.


'''defaultCastAtLinkOnTriggerSCRIPT'''


'''defaultCastAtLinkOnTriggerSCRIPT'''
This script will cast the specified spell from the trigger's linked ref at the triggering actor. ''This only works for triggerboxes!'' I.e. a trap that casts spells at you from a stone when you enter the area.


'''defaultCastFromLinkOnActivateSCRIPT'''
'''defaultCastFromLinkOnActivateSCRIPT'''
This script will cast the specified spell from the reference's linked ref at the triggering actor. I.e. when a chest is opened firing a spell at you.


'''defaultCastFromLinkOnTriggerSCRIPT'''
'''defaultCastFromLinkOnTriggerSCRIPT'''
Same as defaultCastAtLinkOnTriggerSCRIPT but with commented out debug.traces. ''Only works on triggerboxes.''


'''defaultCastOnTriggerSCRIPT'''
'''defaultCastOnTriggerSCRIPT'''
Same as defaultCastAtLinkOnTriggerScript. ''Only works on triggerboxes.''


'''defaultCityEndGateSceneScript'''
'''defaultCityEndGateSceneScript'''
This script will set the specified stage on the specified quest if the previously specified stage has NOT been completed when the reference's cell is loaded. I.e. setting the end stage when the player enters the reference's cell, the city.


'''defaultClearLocationOnActivate'''
'''defaultClearLocationOnActivate'''
This script will [[SetCleared - Location|clear]] the current location of the reference when activated.


'''defaultClearLocationOnDeath'''
'''defaultClearLocationOnDeath'''
This script will [[SetCleared - Location|clear]] the current location of the reference when the reference dies. I.e. clearing a location when the boss dies.


'''defaultClearLocationOnDeathRefAlias'''
'''defaultClearLocationOnDeathRefAlias'''
This script will [[SetCleared - Location|clear]] the current location of the alias when the alias dies. ''Only works on Reference Aliases.'' I.e. clearing a location when an NPC dies.


'''defaultCounter'''
'''defaultCounter'''
This script is a simple counter, to be placed on a reference. Then increment with another script (such as defaultCounterIncrementOnDeath). When the target value is reached (or, optionally, exceeded), the counter activates itself and can optionally set a quest stage and/or perform a specified action (activate, toggle enable state, enable, or disable) on a specified linked reference. I.e. activating a pull chain to open a door after you've pressed all the buttons in a puzzle (each with the defaultCounterIncrementOnActivate script).


'''defaultCounterIncrementOnActivate'''
'''defaultCounterIncrementOnActivate'''
This script will increment the script on the reference's linked reference when activated. Optionally, you can make the script increment when activated then decrement the next time. ''There is no option to decrement every time activated.'' I.e. incremented the count with buttons.


'''defaultCounterIncrementOnDeath'''
'''defaultCounterIncrementOnDeath'''
This script will increment the script on the actor's linked reference when the actor dies. ''There is no option to decrement.'' I.e. incrementing the count on an object when you kill each actor, then setting the stage when enough have been killed.


'''defaultDeleteSelfOnReset'''
'''defaultDeleteSelfOnReset'''
This script will disable and then delete the reference when the reference's [[OnCellAttach - ObjectReference|cell is attached]]. ''Note from the script comments: DOESN'T DO WHAT IT'S NAME IMPLIES.  IT'S HAD CHANGES MADE TO IT SPECIFICALLY FOR FIXING A NIRNROOT GLOW ISSUE.''


'''defaultDisableExitEnableEnter'''
'''defaultDisableExitEnableEnter'''
This script will disable the triggerbox's linked references when the player exits the triggerbox, then enables them when the player enters the triggerbox. ''This script will only work on triggerboxes. Only 5 linked references can be recognized.'' I.e. enabling a path forward when the player gets close enough.


'''defaultDisableHavokOnLoad'''
'''defaultDisableHavokOnLoad'''
This script will disable the havok of the item [[OnLoad - ObjectReference]], so it can't be knocked over or moved (like a static). ''If you don't want an object to move, you should add this script AND disable havok on the item directly. Doing just the latter doesn't always work properly.'' I.e. making an object like a static.


'''defaultDisableLinkedRefOnLoad'''
'''defaultDisableLinkedRefOnLoad'''
This script will disable the reference's linked reference [[OnLoad - ObjectReference]]. ''The reference must be activated first, however, to allow for the disabling.'' I.e. useful for enable-state swapping on cell loads.


'''defaultDisableLinkRefOnDestruction'''
'''defaultDisableLinkRefOnDestruction'''
This script will disable the reference's linked reference when the reference is


'''defaultDisableOnCellAttachOtherCond'''
'''defaultDisableOnCellAttachOtherCond'''
Anonymous user