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

Byline removed
imported>JOG
m (My First Script moved to Scripting Tutorial: My First Script)
imported>QQuix
(Byline removed)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Tools|req0=[[The Elder Scrolls Construction Set|Construction Set]]}}
'''This is a short tutorial which will give you a quick walkthrough for making your first script. It will detail step-by-step the script making process and should take a total of about 5-10 minutes.'''
'''This is a short tutorial which will give you a quick walkthrough for making your first script. It will detail step-by-step the script making process and should take a total of about 5-10 minutes.'''


Line 19: Line 21:
#:- "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 27: Line 29:
# Now go into the game and you should be set! Drop a lockpick on the ground and pick it back up and a message should say "Hello World!". And with that, welcome to scripting!
# Now go into the game and you should be set! Drop a lockpick on the ground and pick it back up and a message should say "Hello World!". And with that, welcome to scripting!


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




Line 34: Line 34:


[[Category:Tutorials]]
[[Category:Tutorials]]
[[Category:Scripting]]
[[Category:Scripting Tutorials]]
Anonymous user