[dismiss]
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
My First Scripts - Part 1
imported>Persidon (My first script) |
imported>Persidon (My First Scripts - 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. | ||
First off, what is a script. | 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 9: | Line 9: | ||
end | end | ||
</pre> | </pre> | ||
Whats all this you say. It's quite simple actually. | 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. | '''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. | '''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 /><br /> | ||
'''End''' : is a must have or it wont compile. | '''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|[WIP] Vault 18]] 02:59, 3 May 2010 (UTC) | <br />[[User:Persidon|[WIP] Vault 18]] 02:59, 3 May 2010 (UTC) |