Difference between revisions of "A beginner's guide, lesson 6 - Quest Dialogue"

Jump to navigation Jump to search
→‎Scripting: Editing English
imported>Pyrocow2
imported>Pyrocow2
(→‎Scripting: Editing English)
Line 495: Line 495:
==Scripting==
==Scripting==


Scripting is a set of instructions to the game telling it to do certain tasks which cannot normally be done by the usual game play interaction. It has much in common with programming languages but is not a true language in its self. We do need to use a formal structure called syntax to ensure that the game can understand what we want it to do.  
A script is a set of instructions for the game to run during gameplay. It has much in common with programming languages, but is not a true language per se. We do need to use a formal structure called syntax to ensure that the game can understand what we want it to do.  


Let's add a bit of script then
Let's add a bit of script then.


We need to give each script a name, and like all naming that we have covered so far it has the same basic rules. The name must be a single alpha-numeric, which is unique.  
We need to give each script a name, and like all naming conventions that we have covered so far, it has the same basic rules. The name must unique, alpha-numeric, and free of whitespace (spaces, tabs, etc.).  
There is a convention that you should add a prefix to help identify your scripts.  
You should also continue to use your quest prefix (e.g. BGM) while naming your scripts.  


Let's name the script BGM001QuestScript
Let's name the script ''BGM001QuestScript''.


(Note: This should be done on the BASE version if you have loaded Both Tutorial Mods at the same time.)
(Note: This should be done on the BASE version if you have loaded Both Tutorial Mods at the same time.)
Line 508: Line 508:
We write this in the editor like this:
We write this in the editor like this:


  Scriptname BGM001QuestScript
Scriptname BGM001QuestScript


We could also use a shorthand version:
We could also use a shorthand version:


  Scn BGM001QuestScript
Scn BGM001QuestScript


Many functions and command have shorthand versions. In this tutorial I will always use the full version.
Many functions and command have shorthand versions. In this tutorial I will always use the full version.
Anonymous user

Navigation menu