Difference between revisions of "Bethesda Tutorial Papyrus Variables and Conditionals"

m
I am editing this page to force it to be re-created hoping to fix the Cloudflare bug.
imported>Henning
 
imported>TiriPon
m (I am editing this page to force it to be re-created hoping to fix the Cloudflare bug.)
 
(4 intermediate revisions by 3 users not shown)
Line 11: Line 11:


You will learn:
You will learn:
*How to create and use variables
*How to create and use variables.
*How to create a comment to add notes to your script for future reference
*How to create a comment to add notes to your script for future reference
*How to ask a script running in the game for the values of its variables
*How to ask a script running in the game for the values of its variables
Line 54: Line 54:
Make sure the game isn't currently running. Save the script. Make sure you hit "OK" on the reference form to close it. Then hit the save button on the tool bar to save your plugin.
Make sure the game isn't currently running. Save the script. Make sure you hit "OK" on the reference form to close it. Then hit the save button on the tool bar to save your plugin.


Start up the game and move to the activator. (Reminder: open the console with the tidle (~) key, and type:)
Start up the game and move to the activator. (Reminder: open the console with the tilde (~) key, and type:)
  COC MolagBalVoiceCell
  COC MolagBalVoiceCell


Line 97: Line 97:
Again:
Again:
*Single equals sign (=) means: Take the what's on the right and shove it into the variable on the left.
*Single equals sign (=) means: Take the what's on the right and shove it into the variable on the left.
*Double equals sign (==) means: The thing on the left is the same as the thing on the right
*Double equals sign (==) means: Is the thing on the left the same as the thing on the right


So, so your script should now look like this:
So your script should now look like this:


<source lang="papyrus">
<source lang="papyrus">
Line 131: Line 131:
|Next=Bethesda_Tutorial_Papyrus_Introduction_to_Properties
|Next=Bethesda_Tutorial_Papyrus_Introduction_to_Properties
}}
}}
{{Languages}}
Anonymous user