Editing Bethsoft Tutorial Basic Quest

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 82: Line 82:
*'''scn''' - This is shorthand for [[Scriptname]].  Just as we have to give any new base ID a unique name, this is the unique ID of this script - in this case '''"VT74stage10triggerSCRIPT'''"
*'''scn''' - This is shorthand for [[Scriptname]].  Just as we have to give any new base ID a unique name, this is the unique ID of this script - in this case '''"VT74stage10triggerSCRIPT'''"
*'''begin [[onTriggerEnter]] player''' - this begins an "[[onTriggerEnter]]" block.  [[:Category:Blocktypes|Blocktypes]] give scripters a number of ways to capture game events.  In this case, we're going to capture when the player steps into a trigger we'll be creating soon.  The optional ''"player"'' parameter let's us specify that we only care when the player enters this trigger.
*'''begin [[onTriggerEnter]] player''' - this begins an "[[onTriggerEnter]]" block.  [[:Category:Blocktypes|Blocktypes]] give scripters a number of ways to capture game events.  In this case, we're going to capture when the player steps into a trigger we'll be creating soon.  The optional ''"player"'' parameter let's us specify that we only care when the player enters this trigger.
*'''if [[GetStage]] VT74 < 10''' - This is an '''"if statement"''', a common element in programming logic.  Here we're checking to see if the current stage of our Quest (VT74) is less than 10.  We know that the first time the player enters this trigger, this statement ''"getStage VT74<10"'' will be true, because stage 10 hasn't been set.  Once we set VT74's stage to 10 or higher, the statement ''"getStage VT74<10"'' will be false, meaning any script between this "if" and the next "endif" will be skipped over.
*'''if [[GetStage]] VT74 < 10''' - This is an '''"if statement"''', a common element in programming logic.  Here we're checking to see if the current stage of our Quest (VT74) is less than or equal to 10.  We know that the first time the player enters this trigger, this statement ''"getStage VT74<10"'' will be true, because stage 10 hasn't been set.  Once we set VT74's stage to 10 or higher, the statement ''"getStage VT74<10"'' will be false, meaning any script between this "if" and the next "endif" will be skipped over.
*'''[[setStage]] VT74 10''' - This script command sets the stage of VT74 to 10.  We know that this will give the player the quest objective we've already created, and means that any time the player hits this trigger in the future, the previous "if" statement will be false, preventing this line of script from running again.
*'''[[setStage]] VT74 10''' - This script command sets the stage of VT74 to 10.  We know that this will give the player the quest objective we've already created, and means that any time the player hits this trigger in the future, the previous "if" statement will be false, preventing this line of script from running again.
*'''endif''' - This closes the preceding '''"if"''' statement, and tells the script where to resume if the if check was false.
*'''endif''' - This closes the preceding '''"if"''' statement, and tells the script where to resume if the if check was false.

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: