mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Update docs, remove deprecated macro
This commit is contained in:
@@ -1098,7 +1098,7 @@
|
||||
opcode: 0x8251
|
||||
- name: get_string_pointer
|
||||
detail: int get_string_pointer(string text)
|
||||
doc: Returns a pointer to a string variable or to a text.
|
||||
doc: Returns a pointer to a string variable or to a text. DEPRECATED, just use normal strings instead.
|
||||
macro: sfall.h
|
||||
- name: string_format
|
||||
detail: string string_format(string format, any val1, any val2, ...)
|
||||
|
||||
@@ -321,7 +321,6 @@
|
||||
#define get_npc_stat_max(stat) sfall_func2("get_stat_max", stat, 1)
|
||||
#define get_npc_stat_min(stat) sfall_func2("get_stat_min", stat, 1)
|
||||
#define get_sfall_arg_at(argNum) sfall_func1("get_sfall_arg_at", argNum)
|
||||
#define get_string_pointer(text) sfall_func1("get_string_pointer", text)
|
||||
#define get_terrain_name(x, y) sfall_func2("get_terrain_name", x, y)
|
||||
#define get_text_width(text) sfall_func1("get_text_width", text)
|
||||
#define has_fake_perk_npc(npc, perk) sfall_func2("has_fake_perk_npc", npc, perk)
|
||||
|
||||
@@ -610,7 +610,7 @@
|
||||
```
|
||||
Obj arg0 - the object
|
||||
|
||||
int ret0 - a pointer to the new text received by using the get_string_pointer function
|
||||
str ret0 - new description text to use
|
||||
```
|
||||
|
||||
- name: UseSkillOn
|
||||
|
||||
@@ -694,7 +694,7 @@ Does not run if the script of the object overrides the description.
|
||||
```
|
||||
Obj arg0 - the object
|
||||
|
||||
int ret0 - a pointer to the new text received by using the get_string_pointer function
|
||||
str ret0 - new description text to use
|
||||
```
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
@@ -706,6 +706,7 @@ sfall_funcX metarule functions
|
||||
----
|
||||
#### get_string_pointer
|
||||
`int sfall_func1("get_string_pointer", string text)`
|
||||
- DEPRECATED, use normal strings
|
||||
- Returns a pointer to a string variable or to a text
|
||||
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user