September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/Variables/DM/variables-1.dm
Normal file
12
Task/Variables/DM/variables-1.dm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Both of the following declarations can be seen as a tree,
|
||||
// var -> <varname>
|
||||
var/x
|
||||
var y
|
||||
|
||||
// They can also be defined like this.
|
||||
// This is once again a tree structure, but this time the "var" only appears once, and the x and y are children.
|
||||
var
|
||||
x
|
||||
y
|
||||
// And like this, still a tree structure.
|
||||
var/x, y
|
||||
12
Task/Variables/DM/variables-2.dm
Normal file
12
Task/Variables/DM/variables-2.dm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Here, "/obj" is the type, a /obj being a simple game object.
|
||||
var/obj/x
|
||||
// It can also be defined like this, because of the tree structure:
|
||||
var
|
||||
obj
|
||||
x
|
||||
// Or this
|
||||
var/obj
|
||||
x
|
||||
|
||||
// ...
|
||||
// You get the idea
|
||||
4
Task/Variables/DM/variables-3.dm
Normal file
4
Task/Variables/DM/variables-3.dm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var/x = 0
|
||||
x = 10
|
||||
var/y
|
||||
y = "hi!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue