Add setrnd command (#1846)

* Add setrnd command

* Make rand private

* Add console-like argument behaviour

* Remove unused using declarations

* Add german and english translations

* Improve translation, Add notice to config README, Add check wheather arguments are provided

* Add some comments

* Remove typo

* Add %player% constant to setrnd

* Remove test variable and add comments

* Remove typo

* Reverse changes

* Remove translations
This commit is contained in:
Daenges 2021-12-15 11:51:16 +01:00 committed by GitHub
parent 333358c73b
commit 381b8ea7d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 149 additions and 0 deletions

View file

@ -120,6 +120,8 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
- `log <text>`: display some text in the console (useful for scripts)
- `list`: list players logged in to the server (uses tab list info sent by server)
- `set varname=value`: set a value which can be used as `%varname%` in further commands
- `setrnd variable string1 "\"string2\" string3"`: set a `%variable%` to one of the provided values
- `setrnd variable -7to10`: set a `%variable%` to a number from -7 to 9
- `wait <time>`: wait X ticks (10 ticks = ~1 second. Only for scripts)
- `move`: used for moving when terrain and movements feature is enabled
- `look`: used for looking at direction when terrain and movements is enabled