Difference between revisions of "Myfirstscript"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Persidon
(My First Script - part 1)
imported>Persidon
m (My First Script)
Line 1: Line 1:
welcome to the G.E.C.K basic scripting tutorial.
Welcome to The MyFirstScript Tutorial.
<ol>
<li>What Is A Script</li>
<li>Point 2<br />
More about point 2</li>
<li>Point 3</li>
#Sub-Point 1
#Sub-Point 2
<li>Point 4</li>
Point 4.5?
<li>Point 5</li>
</ol>


First off, what is a script. A script is a segment of code written by the writter to produce outcome effects. Say for example:<pre>
Here, I will try and explain the basics of Fallout 3 Scripting.
scriptname MyFirstScript
 
Begin OnActivate
 
Showmessage Mymessage
 
end
</pre>
Whats all this you say. It's quite simple actually.<br />
'''scriptname''' : this defines the scriptname. You must have a scriptname or you cant compile(save) it.<br />
'''Begin OnActivate''' : This is the most important part of script, OnActivate is one of three main block types. the others are, GameMode and MenuMode.<br />
'''ShowMessage MyMessage''' : Shows the message MyMessage, wich is hello world.<br />
'''End''' : is a must have or it wont compile.<br />
There you go, its simple isn't it.
<br />
`````

Revision as of 03:45, 11 May 2010

Welcome to The MyFirstScript Tutorial.

Here, I will try and explain the basics of Fallout 3 Scripting.