This wiki is a copy of the original Fallout3 GECK wiki created and maintained by the UESP.net. See GECK:Copy Notice for more info.

Difference between revisions of "Myfirstscript"

Jump to navigation Jump to search
802 bytes added ,  04:18, 11 May 2010
My First Script
imported>Persidon
m (My First Script)
imported>Persidon
(My First Script)
Line 2: Line 2:


Here, I will try and explain the basics of Fallout 3 Scripting.
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
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
<b>Scriptname</b>: This is a MUST HAVE, or the script wont Compile (Save)
<b>Begin OnActivate</b>:  - <b>Begin</b>: Tells the script to begin
                          - <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.
<b>ShowMessage</b>: This produces the Message box that has an Editor id of MyMessage
<b>End</b>: This ends the OnActivate Block
Anonymous user

Navigation menu