Breeze Wrote:lolwutAnd AssaultCube is just a first-person shooter.
It's just a binary-to-decimal converter.
Gibstick Wrote:what about Cubescript?It is optimal to use concat for grouping strings into a single alias if you later intend to display the contents of that alias in an echo.
The command "echo", itself, does not actually require its next argument(s) to be grouped. All of its proceeding arguments, until the close of a bracket like ] or ), or until a semicolon on the same bracket level of the echo command, is used. I believe a hard return also implies the end of an echo command.
examples:
[SELECT ALL] Code:
echo All these separate arguments are being treated as a list of strings to be echoed.
alias add2wordlist [alias wordlist (concat $wordlist $arg1)]
alias wordlist [A collection of some useful words]
echo echo is a useful command; but this part will be ignored.
echo [semicolons are also useful; to echo them, brackets or quotes must be used.]
echo $wordlist "would be nice to have" [on a rainy day]; echo [YA RLY]
echo (concat [This] [will] [also] [produce] [the] [same] [result.])
Note that "concat" can also take an indiscriminate number of arguments without needing explicit punctuation.
Gibstick Wrote:the exponent script doesn't work with negative numbers.:O
:/
it can't calculate negative exponents. The base can be negative and it calculates the product just fine. Still... I'll look into having negative exponents.