Difference between revisions of "Default Scripts List"

1,293 bytes added ,  22:23, 10 April 2015
imported>Matthiaswagg
imported>Matthiaswagg
Line 7: Line 7:


== List of Default Scripts ==
== List of Default Scripts ==
''If a script is not specified as for triggerboxes, reference aliases, etc. it will NOT work for them.''
'''default2StateActivator'''
'''default2StateActivator'''


Line 37: Line 39:
'''defaultActivateOnLoad'''
'''defaultActivateOnLoad'''


This script will activate the linked reference of the reference when their 3D is loaded. ''Read the [[OnLoad - ObjectReference]] page for more info.''  
This script will activate the linked reference of the reference when their 3D is loaded. ''Read the [[OnLoad - ObjectReference]] page for more info. This script is not recommended for use, as OnLoad is somewhat unreliable.''  


'''defaultActivateOpenLinkedRef'''
'''defaultActivateOpenLinkedRef'''


This script will open its linked reference when activated
This script will open its linked reference when activated, and then go to an empty state wherein activation will do nothing. ''Only works when the linked reference is openable.'' I.e. releasing many animals from cages after pressing a button.


'''defaultActivateSelf'''
'''defaultActivateSelf'''
This script will activate itself when entered, with many optional parameters for what can enter and what to do after. ''Only works on triggerboxes.'' I.e. activating self when trigger is entered, thus causing OnActivate to spawn a hostile NPC at the triggerer's location.


'''defaultActivateToggleLinkedRef'''
'''defaultActivateToggleLinkedRef'''
This script will toggle the enable state of its linked reference. I.e. enabling a fire when you activate a shrine, then disabling it if the fire is enabled.


'''defaultActivateToggleLinkedRefOnce'''
'''defaultActivateToggleLinkedRefOnce'''
This script will toggle the enable state of its linked reference, and then go to a state wherein activation does nothing (unless the variable reset is true, in which case it can be [[OnReset - ObjectReference|reset]]). I.e. activating a somewhat broken light switch.


'''defaultActorEnableDisableLinkedRef'''
'''defaultActorEnableDisableLinkedRef'''
This script will enable or disable, variably, the linked reference the first time it is entered by a specified actor. ''This script only works on triggerboxes.'' I.e. enabling invisible walls when the player enters the trigger.


'''defaultActSelfOnEnterOnLeave'''
'''defaultActSelfOnEnterOnLeave'''
Anonymous user