Script Fragments. Game: TES V: SkyrimI am writing this page to instruct how script fragments work, and to give direct instructions how to set them up.
Script fragments are small bits of code which are localized (they only affect the specific quest or object they've been placed into, unless called to act more globally). They make very specific changes in the game, usually when a bit of dialog is spoken, or a quest stage gets set, and so on.
There will be a bunch of script fragments on this page when it is done. I will include links to Bethesda's official Creation Kit site for each of these, as well. Click on the Spoiler tags for the "plain English" directions which go along with the official text.
-----------------------------------
Let's start with
AddItem.
If adding an object to the player, type Game.GetPlayer().AddItem(ObjectName, X) and in that case a property is not needed for the player.
---------------------------------------
ENABLE -------- (click spoiler tag below for my explanations).
------------------------------------------------------------------
EVALUATE PACKAGE-------------------------------------------------------
Making a Door set a Stage -- (Not a script fragment)
--------------------------------------------------------
Game.ShowLimitedRaceMenu() (This allows us to change a character's looks, without changing his/her skills, stats, etc.)
----------------------------------------
MoveTo------------------------------------------------
OPENInventoryQuest MessagesSetEssentialSetPlayerTeamMateStartCombatThis post has been edited by Renee: Apr 24 2024, 06:18 PM