Difference between revisions of "Scripting Tutorial: My First Script"

Jump to navigation Jump to search
a couple error corrections + clarification
imported>Derben
imported>JHunz
(a couple error corrections + clarification)
Line 16: Line 16:
#:''end''<br><br>
#:''end''<br><br>
#:Info about the script itself:
#:Info about the script itself:
#:- The first line is just the name of your script, and the last line of course ends the script.
#:- The first line is the name of your script.  Make sure it is unique.
#:- "Begin OnAdd" means that this script will fire each time you pick up this item.
#:- "Begin OnAdd" means that this script will fire each time you pick up this item. The end command ends the section of script related to "OnAdd".  You can have a separate begin/end block for every blocktype - see [[Begin]]
#:- And lastly, the message line controls what will be displayed, with the "10" as how long the message will stay on screen. Check here for more info about the message command: [[Message]]
#:- And lastly, the message line controls what will be displayed, with the "10" as how long the message will stay on screen. Check here for more info about the message command: [[Message]]
# Save the script and then close the Script Editor.
# Save the script and then close the Script Editor.
Anonymous user

Navigation menu