Difference between revisions of "Default Scripts List"

2,995 bytes added ,  15:02, 11 April 2015
imported>Matthiaswagg
imported>Matthiaswagg
Line 123: Line 123:
'''defaultAddToFactionOnLoad'''
'''defaultAddToFactionOnLoad'''


This script will add the reference to the specified faction [[OnLoad - ObjectReference]].
This script will add the actor to the specified faction [[OnLoad - ObjectReference]]. I.e. adding an actor to the Stormcloaks.


'''defaultAddToLinkonLoadSCRIPT'''
'''defaultAddToLinkonLoadSCRIPT'''
This script will add the reference to the linked reference [[OnLoad - ObjectReference]].


'''defaultAliasChangeOutfit'''
'''defaultAliasChangeOutfit'''
This script will change the alias' outfit when they enter or leave the specified location. ''This only works on Reference Aliases.'' I.e. changing an alias' outfit after they leave a dressing room.


'''defaultAliasModAggression'''
'''defaultAliasModAggression'''
This script allows you to modify and reset the alias' aggression to the specified aggression. ''This only works on Reference Aliases. This script does nothing on its own - you must call the functions within it externally.'' I.e. making a boss aggressive after speaking to him.


'''defaultAliasOnDeathScript'''
'''defaultAliasOnDeathScript'''
This script will set the specified stage on the parent (owning) quest of the alias when they die. ''This only works on Reference Aliases. You cannot specify quests other than the owning quest.'' I.e. completing the quest when an NPC dies.


'''defaultAliasOnUnload'''
'''defaultAliasOnUnload'''
This script will set the specified stage on the parent (owning) quest of the alias [[OnUnload - ObjectReference]]. ''This only works on Reference Aliases. Note the possible unreliability of UnLoad on its page.'' I.e. setting a stage when you leave an NPCs home.


'''defaultAliasRespawnScript'''
'''defaultAliasRespawnScript'''
This script will attempt to respawn the alias the script is on [[OnDeath - Actor]], with an optional property to turn off auto-spawning (which you can [[http://www.creationkit.com/Variables_and_Properties#Getting_Properties_From_Any_Other_Script|modify externally]]). ''This only works on Reference Aliases. You MUST attach defaultQuestRespawnScript to the alias' quest in order for this to work.'' I.e. a boss that constantly respawns until you activate a switch.


'''defaultAllowPCDialogueScript'''
'''defaultAllowPCDialogueScript'''
This script will allow the actor to talk to the player [[OnLoad - ObjectReference]].


'''defaultAOEpushOnActivateDoOnce'''
'''defaultAOEpushOnActivateDoOnce'''
This script will cause an explosion to be placed at the reference when activated. If the reference is openable, it will also open before exploding. Then, it will go to a [[States (Papyrus)|state]] wherein activation does nothing. I.e. a trapped door that explodes and then opens.


'''defaultAutosaveScript'''
'''defaultAutosaveScript'''
This script will autosave when the trigger is entered. The trigger will be auto-saveable again [[OnReset - ObjectReference]]. ''This only works on triggerboxes.'' I.e. autosaving before entering a big boss fight.


'''defaultBiPressurePlate'''
'''defaultBiPressurePlate'''
This script governs all actions of a pressure plate - the animations, states, etc. It will activate itself when the pressure plate goes down. ''This only works on triggerboxes (placed over a pressure plate static/piece). You will have to pair this with another script to do something when activated.'' I.e. causing a pressure plate to work.


'''defaultBlockActivation'''
'''defaultBlockActivation'''
This script blocks activation of the reference [[OnLoad - ObjectReference]].


'''defaultBlockFollowerActivation'''
'''defaultBlockFollowerActivation'''
This script prevents the reference from being activated (via favor) by followers [[OnLoad - ObjectReference]]. I.e. a trap only meant for the player.


'''defaultBloodPoolScript'''
'''defaultBloodPoolScript'''
This script fills the reference with blood when activated or optionally [[OnLoad - ObjectReference]]. ''Should only work on references with the animation defined. See [[Talk:PlayAnimation - ObjectReference|Talk for PlayAnimation]].'' I.e. filling a pool with blood.


'''defaultButtonSCRIPT'''
'''defaultButtonSCRIPT'''


'''defaultCastAtLinkOnTriggerSCRIPT'''
'''defaultCastAtLinkOnTriggerSCRIPT'''
Anonymous user