[dismiss]
This wiki is a copy of the original Skyrim CK wiki created and maintained by the UESP.net. See CreationKit:Copy Notice for more info.
Difference between revisions of "Bethesda Tutorial Papyrus Events and Properties"
Jump to navigation
Jump to search
m
Bethesda Tutorial Papyrus Events and Properties (edit)
Revision as of 09:16, 24 February 2012
, 09:16, 24 February 2012Reformatted the table here to be consistent with the rest of the page
imported>Electrosheep m (typo) |
imported>Electrosheep m (Reformatted the table here to be consistent with the rest of the page) |
||
Line 181: | Line 181: | ||
</source> | </source> | ||
{{InDepth| | |||
* '''objectReference''' - This is the data type of our new property. | |||
* '''myTrigger''' - As before, this is a name we've chosen for our new property. | |||
* '''if''' - This is the beginning of an '''"if statement'''. If the statement beneath the if is true, then the script will run. Otherwise, Papyrus skips ahead and resumes processing commands after the corresponding '''"endIf"''' below. | |||
* '''(akActionRef <nowiki>==</nowiki> myTrigger)''' - This is our test condition. The "<nowiki>==</nowiki>" is a logical operator which translates to "is equal to". In this case, it's telling the '''"if"''' statement to continue only if ''akActionRef'' and ''myTrigger'' are filled with the same reference. | |||
* '''endIf''' - This is necessary to close any '''"if"''' statement. It's possible to have multiple if statements within each other for more complicated operations, so it becomes important to keep track of your logic using these. When an '''"if"''' statement is beneath another '''"if"''' statement, it is said to be nested.}} | |||