Focke's Chapter 1 Scripting Flashcards
(10 cards)
This is an identifier that holds, in storage, that holds some sort of data
variable
What are the three “levels” of variables?
Local, global, and public
What is done to make a variable “local?”
Preface with an underscore.
Ex: to make the variable “Dave” local, add _Dave (no quotes)
The following variable is which type?
_Dave = 1
integer
The following variable is which type?
_Dave = “Dave”
string
The following variable is which type?
_Dave = “M16A1”
object from the editor
The following variable is which type?
_Dave = [Dave, Eric]
array
The following variable is which type?
_Dave = True
bool
How does one add integers to a variable?
Assign an integer value to variable, then you can conduct mathematical operations.
Ex: _aiDude = 1
_sum = aiDude + 1
_sum = 3
The following is which variable type?
“Dave”
a string
A “string” is a set of characters in sequence surrounded by quotes