Difference between revisions of "Myfirstscript"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Persidon
(My First Scripts - Part 1)
imported>Persidon
(My First Script - part 1)
Line 1: Line 1:
welcome to the G.E.C.K basic scripting tutorial.
welcome to the G.E.C.K basic scripting 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>
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>
scriptname MyFirstScript
scriptname MyFirstScript
Line 12: Line 24:
'''scriptname''' : this defines the scriptname. You must have a scriptname or you cant compile(save) it.<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 />
'''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 /><br />
'''ShowMessage MyMessage''' : Shows the message MyMessage, wich is hello world.<br />
'''End''' : is a must have or it wont compile.<br />
'''End''' : is a must have or it wont compile.<br />
There you go, its simple isn't it.
There you go, its simple isn't it.
<br />[[User:Persidon|&#91;WIP&#93; Vault 18]] 02:59, 3 May 2010 (UTC)
<br />
`````

Revision as of 01:15, 3 May 2010

welcome to the G.E.C.K basic scripting tutorial.

  1. What Is A Script
  2. Point 2
    More about point 2
  3. Point 3
    1. Sub-Point 1
    2. Sub-Point 2
  4. Point 4
  5. Point 4.5?
  6. Point 5

First off, what is a script. A script is a segment of code written by the writter to produce outcome effects. Say for example:

scriptname MyFirstScript

Begin OnActivate

Showmessage Mymessage

end

Whats all this you say. It's quite simple actually.
scriptname : this defines the scriptname. You must have a scriptname or you cant compile(save) it.
Begin OnActivate : This is the most important part of script, OnActivate is one of three main block types. the others are, GameMode and MenuMode.
ShowMessage MyMessage : Shows the message MyMessage, wich is hello world.
End : is a must have or it wont compile.
There you go, its simple isn't it.
`````