Difference between revisions of "Myfirstscript"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Persidon
(My First Script)
imported>Persidon
(Scripting For Dummies)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
welcome to the G.E.C.K basic scripting tutorial.
Welcome to The MyFirstScript Tutorial.
First off, what is a script. a script is a segment of code written by the written to produce outcome effects. Say foe example:<pre>
 
scriptname MyFirstScript
Here, I will try and explain the basics of Fallout 3 Scripting.
 
What is a Script?
 
Well, A script is a piece of code segments, written by the writer to produce effects to the game.
 
<pre>
Scriptname MyFirstScript  


Begin OnActivate
Begin OnActivate


Showmessage Mymessage
ShowMessage MyMessage
 
End
</pre> 
 
What the heck is <b>That</b>
Well its the easiest code written in the fallout 3 language
All, the above does is  Shows the messagebox MyMessage
 


end
<b>Scriptname</b> - This is a MUST HAVE, or the script wont Compile (Save)<br />
[/code]
<b>Begin OnActivate</b> -
Whats all this you say. It's quite simple actually.
◘ <b>Begin</b>: Tells the script to begin<br />
'''scriptname''' : this defines the scriptname. You must have a scriptname or you cant compile(save) it.
◘ <b>OnActivate</b>: Tells the script to start when the object this script is attached to, is activated. Well OnActivate is one of lots of block types.<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.
<b>ShowMessage</b> - This produces the Message box that has an Editor id of MyMessage <br />
'''ShowMessage MyMessage''' : Shows the message MyMessage, wich is hello world.
<b>End</b> - This ends the OnActivate Block<br /><br />
'''End''' : is a must have or it wont compile.
<b>MORE TO COME SOON</b>
There you go, its simple isn't it.

Latest revision as of 04:29, 11 May 2010

Welcome to The MyFirstScript Tutorial.

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

What is a Script?

Well, A script is a piece of code segments, written by the writer to produce effects to the game.

Scriptname MyFirstScript 

Begin OnActivate

ShowMessage MyMessage 

End

What the heck is That Well its the easiest code written in the fallout 3 language All, the above does is Shows the messagebox MyMessage


Scriptname - This is a MUST HAVE, or the script wont Compile (Save)
Begin OnActivate -

Begin: Tells the script to begin
OnActivate: Tells the script to start when the object this script is attached to, is activated. Well OnActivate is one of lots of block types.

ShowMessage - This produces the Message box that has an Editor id of MyMessage
End - This ends the OnActivate Block

MORE TO COME SOON