mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Updated files for online documents
Fixed typos in hookscripts.md & sslc_readme.txt.
This commit is contained in:
@@ -1151,7 +1151,7 @@
|
||||
items:
|
||||
- name: init_hook
|
||||
detail: int init_hook()
|
||||
doc: The hook script equivalent of game_loaded; it returns 2 when the script is first loaded, 1 when the player reloads and 0 otherwise.
|
||||
doc: The hook script equivalent of `game_loaded`; it returns 1 when the script is loaded for the first time or when the player reloads the game, and 0 otherwise.
|
||||
opcode: 0x81ea
|
||||
- name: get_sfall_arg
|
||||
detail: mixed get_sfall_arg()
|
||||
@@ -1743,6 +1743,16 @@
|
||||
doc: 'Redraws inventory items list in the inventory/loot/barter screens. Argument invSide specifies which side needs to be redrawn: 0 - the player, 1 - target (container/NPC in loot/barter screens), -1 - both sides (same as without argument).'
|
||||
macro: sfall.h
|
||||
|
||||
- name: Pip-Boy
|
||||
parent: Interface
|
||||
items:
|
||||
- name: set_quest_failure_value
|
||||
detail: void sfall_func2("set_quest_failure_value", int gvarNumber, int thresholdValue)
|
||||
doc: |
|
||||
- sets the threshold value (failure_threshold) for the quest at which the quest will be considered failed (its description in the pipboy will be crossed out and colored red)
|
||||
- `gvarNumber`: the number of the global variable controlling the quest
|
||||
- `thresholdValue`: the value of the global variable at which the quest is counted as a failure
|
||||
|
||||
- name: Cursor
|
||||
parent: Interface
|
||||
items:
|
||||
@@ -1860,7 +1870,7 @@
|
||||
- True - only checks critters and ignores their cover (roof tiles, walls, scenery, etc.)
|
||||
- False - checks all objects (can't check critters under objects)
|
||||
- passing False to the includeDude argument will ignore dude_obj
|
||||
**NOTE:** the function will always return 0 if the cursor is in movement mode (hexagon cursor).
|
||||
- **NOTE:** to get an object located on a tile when the cursor is in movement mode (hexagon cursor), use the `tile_under_cursor` function
|
||||
macro: sfall.h
|
||||
|
||||
- name: get_object_data
|
||||
|
||||
Reference in New Issue
Block a user