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

Jump to navigation Jump to search
m
no edit summary
imported>JOG
(Moved to Category "Scripting Tutorials")
imported>Elster
m
Line 19: Line 19:
#:- "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]]
#:- "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 and the subject's(In this case, the lockpick's) property window, your script will not appear until this is done.
# Go back to the item properties and "HelloWorld" should appear as an option in the dropdown menu for Scripts. (You may have to close the item properties window and re-open it for the HelloWorld script to appear in the dropdown menu.)
# Go back to the item properties and "HelloWorld" should appear as an option in the dropdown menu for Scripts. (You may have to close the item properties window and re-open it for the HelloWorld script to appear in the dropdown menu.)
# Hit ok to save and close the window.
# Hit ok to save and close the window.
Line 28: Line 28:




-Page by Tyrrael, and some helpful people: TitusFrost, mmmpld, Tellin, Talith, Kyne, mojo892
-Page by Tyrrael, and some helpful people: TitusFrost, Mmmpld, Tellin, Talith, Kyne, Mojo892, Elster




Anonymous user

Navigation menu