Difference between revisions of "Bethesda Tutorial Basic Quest Scripting"
Bethesda Tutorial Basic Quest Scripting (edit)
Revision as of 04:15, 20 February 2012
, 04:15, 20 February 2012More svelte template usage: no "Template:" needed.
imported>Catwheezle m (Applying the three new templates: InDepth, ProTip and WarningBox.) |
imported>Catwheezle m (More svelte template usage: no "Template:" needed.) |
||
Line 19: | Line 19: | ||
The scripting language used by the Creation Kit is called Papyrus (after the material on which scrolls are printed). Papyrus scripts are normal text files that get turned into a bytecode that the game executes at runtime. | The scripting language used by the Creation Kit is called Papyrus (after the material on which scrolls are printed). Papyrus scripts are normal text files that get turned into a bytecode that the game executes at runtime. | ||
{{ | {{NewFeature|The new system is similar to the old TESScript, but requires a slightly different way of thinking. You can no longer directly manipulate objects in the world; it's now threaded so your script might be interrupted mid-run; it's more of a stickler for things like parentheses. In short, it's much more similar to "real" programming languages like [http://lua.org Lua] or [http://python.org Python]. If you're familiar with TESScript, you'll want to look at our [[Differences_from_Previous_Scripting|transition guide]].}} | ||
The first thing we're going to do is add a script to the thief so that when it's killed, the quest updates appropriately. | The first thing we're going to do is add a script to the thief so that when it's killed, the quest updates appropriately. | ||
Line 119: | Line 119: | ||
Players can't use the console, though, so we'll learn how to give them better feedback about the quest in the next chapter. | Players can't use the console, though, so we'll learn how to give them better feedback about the quest in the next chapter. | ||
{{ | {{ProTip|The scripts for Skyrim are just text files that live in your data directory before they get compiled into bytecode. This means that if you've got a favorite text editor, you can use it to work on scripts. We've included setups for both [[Sublime Text Setup|Sublime Text]] and [[Notepad++ Setup|Notepad++]] that provide syntax highlighting, some basic autocompletion, and compilation shortcuts. If you're going to get heavily into scripting, these tools can make your life a lot easier.}} | ||
{{ | {{Tutorial_Bottom_Bar | ||
|Prev=Bethesda_Tutorial_Creating_an_Item | |Prev=Bethesda_Tutorial_Creating_an_Item | ||
|Next=Bethesda_Tutorial_Quest_Objectives | |Next=Bethesda_Tutorial_Quest_Objectives | ||
}} | }} |