Difference between revisions of "Default Scripts List"
Jump to navigation
Jump to search
→List of Default Scripts
imported>Matthiaswagg |
imported>Matthiaswagg |
||
Line 15: | Line 15: | ||
'''defaultActivateActivateLinkedRefOnce''' | '''defaultActivateActivateLinkedRefOnce''' | ||
This script will cause the activator to activate its linked reference when activated, and then go to an empty state where the script will do nothing upon activation. I.e. an activator triggering a one-time trap. | This script will cause the activator to activate its linked reference when activated, and then go to an empty [[States (Papyrus)|state]] where the script will do nothing upon activation. I.e. an activator triggering a one-time trap. | ||
'''defaultActivateDelayedToggleLinkedRef''' | '''defaultActivateDelayedToggleLinkedRef''' | ||
Line 35: | Line 35: | ||
'''defaultActivateLinkedRefOnceOnDeath''' | '''defaultActivateLinkedRefOnceOnDeath''' | ||
This script will activate the linked reference of the actor when they die, then go to an empty state wherein nothing will happen upon death. I.e. turning off swinging axes a door when a boss dies. | This script will activate the linked reference of the actor when they die, then go to an empty [[States (Papyrus)|state]] wherein nothing will happen upon death. I.e. turning off swinging axes a door when a boss dies. | ||
'''defaultActivateOnLoad''' | '''defaultActivateOnLoad''' | ||
Line 43: | Line 43: | ||
'''defaultActivateOpenLinkedRef''' | '''defaultActivateOpenLinkedRef''' | ||
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. | This script will open its linked reference when activated, and then go to an empty [[States (Papyrus)|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''' | ||
Line 78: | Line 78: | ||
'''defaultAddItemArmorScript''' | '''defaultAddItemArmorScript''' | ||
This script will add the piece of armor to the reference the script is placed on in a [[OnReset - ObjectReference|reset-safe]] way. I.e. adding armor to a mannequin. | |||
'''defaultAddItemKeyScript''' | '''defaultAddItemKeyScript''' | ||
This script will add the key to the reference the script is placed on in a [[OnReset - ObjectReference|reset-safe]] way. I.e. adding a key to an NPC. | |||
'''defaultAddItemNoteToLinkOnLoad''' | '''defaultAddItemNoteToLinkOnLoad''' | ||
This script will add the reference the script is on to its linked reference. I.e. placing a note at an items linked reference. | |||
'''defaultAddItemPotionScript''' | '''defaultAddItemPotionScript''' | ||
This script will add the potion to the reference the script is placed on in a [[OnReset - ObjectReference|reset-safe]] way. | |||
'''defaultAddItemScript''' | '''defaultAddItemScript''' | ||
This script is the framework for all other defaultAddItem scripts. It's not directly useable on its own. | |||
'''defaultAddItemWeaponScript''' | '''defaultAddItemWeaponScript''' | ||
This script will add the weapon to the reference the script is placed on in a [[OnReset - ObjectReference|reset-safe]] way. I.e. equipping a gladiator with a sword. | |||
'''defaultAddMapMarkerOnCloseBookNotAlias''' | '''defaultAddMapMarkerOnCloseBookNotAlias''' | ||
This script will add the map marker(s) specified to the map once the book the script is on has been closed, optionally with fast travel enabled. ''This will only work on books, and NOT aliases.'' I.e. discovering a location via book. | |||
'''defaultAddMiscItemSCRIPT''' | '''defaultAddMiscItemSCRIPT''' | ||
This script will add the misc object to the reference the script is placed on in a [[OnReset - ObjectReference|reset-safe]] way. | |||
'''defaultAddMusicOnActivate''' | '''defaultAddMusicOnActivate''' | ||
This script will play the specified music when the player activates the reference, and then go to a [[States (Papyrus)|state]] wherein activation does nothing. I.e. playing music when you activate a pedestal. | |||
'''defaultAddMusicSCRIPT''' | '''defaultAddMusicSCRIPT''' | ||
This script will play the specified music when the player enters the triggerbox, and then go to a [[States (Papyrus)|state]] wherein activation does nothing. ''Works on triggerboxes only.'' I.e. playing music when you enter a battle scene through gate. | |||
'''defaultAddSpell''' | '''defaultAddSpell''' | ||
''Does not appear to be functional. Script contains nothing.'' | |||
'''defaultAddToFactionOnLoad''' | '''defaultAddToFactionOnLoad''' | ||
This script will add the reference to the specified faction [[OnLoad - ObjectReference]]. | |||
'''defaultAddToLinkonLoadSCRIPT''' | '''defaultAddToLinkonLoadSCRIPT''' |