This commit is contained in:
suchmememanyskill 2020-04-01 18:39:56 +02:00 committed by GitHub
parent c3a29e78fb
commit d81ee19628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,10 +37,10 @@ Function | Args | Description | Output
## Variables ## Variables
TegraScript has 3 kinds of variables, @ints, $strings, and ?marks TegraScript has 3 kinds of variables, @ints, $strings, and ?marks.
You can define @ints by writing `@variable = setInt(0);` (or any function for that matter) - You can define @ints by writing `@variable = setInt(0);` (or any function for that matter).
You can define $strings with the use of `setString();`, `setStringIndex();` and `combineStrings();` - You can define $strings with the use of `setString();`, `setStringIndex();` and `combineStrings();`.
You can define ?marks by using them as a command, so just `?variable;` will work - You can define ?marks by using them as a command, so just `?variable;` will work.
You can use these variables in place of int, string or jmp inputs respectively, so for example `@b = setInt(@a)` or `setString($a, $b)` You can use these variables in place of int, string or jmp inputs respectively, so for example `@b = setInt(@a)` or `setString($a, $b)`