Some edits to documents

This commit is contained in:
NovaRain
2022-05-25 21:52:24 +08:00
parent 8bad934279
commit e8652ca17b
6 changed files with 95 additions and 68 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ When compiling global or hook scripts for sfall 3.4 or below, you _must_ include
This version of compiler was designed primarily for new sfall functions, but it can safely (and is recommended) to be used with non-sfall scripts as well, as long as you don't use any of the arrays syntax and any sfall script functions.
The original unmodified sslc source is over here: [http://www.teamx.ru/site_arc/utils/index.html](http://www.teamx.ru/site_arc/utils/index.html)
The original unmodified sslc source is over here: [https://teamx.ru/site_arc/utils/index.html](https://teamx.ru/site_arc/utils/index.html)
### Command line options
@@ -121,7 +121,7 @@ Syntax which requires sfall for compiled scripts to be interpreted is marked by
```
__NOTE:__ If your expression starts with a constant (eg. `2 + 2`), enclose it in parentheses, otherwise compiler will be confused and give you errors.
- Hexadecimal numerical constants: Simply prefix a number with `0x` to create a hexadecimal. The numbers 0 to 9 and A-F are allowed in the number. The number may not have a decimal point.
- Hexadecimal numerical constants: Simply prefix a number with `0x` to create a hexadecimal. The numbers 0 to 9 and letters A to F are allowed in the number. The number may not have a decimal point.
- new:
```
a := 0x1000;
+5 -3
View File
@@ -542,11 +542,13 @@
- name: Audio
items:
- name: eax_available
detail: int eax_available
detail: int eax_available()
opcode: 0x81a3
doc: Obsolete since sfall 2.1a. Always returns 0.
- name: set_eax_environment
detail: void set_eax_environment(int environment)
opcode: 0x81a4
doc: Obsolete since sfall 2.1a. Has no effect.
- name: play_sfall_sound
detail: int play_sfall_sound(string file, int mode)
@@ -631,7 +633,7 @@
doc: Arctangent of x. Pass 1 as y (don't ask...).
opcode: 0x81f1
- name: ceil
detail: int ceil(float)
detail: int ceil(float x)
opcode: 0x8266
doc: Round x to the nearest integer that is not less than x.
- name: ^
@@ -948,7 +950,7 @@
- name: nb_create_char
detail: int nb_create_char()
opcode: 0x81f6
doc: "`nb_*` functions are reserved for the brotherhood tactical training mod, and should be avoided."
doc: "`nb_*` functions are reserved for the brotherhood tactical training mod, and should be avoided. Not implemented, always returns 0."
- name: get_proto_data
detail: int get_proto_data(int pid, int offset)