diff --git a/artifacts/scripting/headers/sfall.h b/artifacts/scripting/headers/sfall.h index 8b1895b4..7d989427 100644 --- a/artifacts/scripting/headers/sfall.h +++ b/artifacts/scripting/headers/sfall.h @@ -174,6 +174,10 @@ #define OUTLINE_DARK_YELLOW (0x20) #define OUTLINE_PURPLE (0x40) +#define CURSOR_MOVEMENT (0) +#define CURSOR_COMMAND (1) +#define CURSOR_TARGETING (2) + #define mstr_combat(x) (message_str_game(GAME_MSG_COMBAT, x)) #define mstr_ai(x) (message_str_game(GAME_MSG_AI, x)) #define mstr_scrname(x) (message_str_game(GAME_MSG_SCRNAME, x)) diff --git a/artifacts/scripting/sfall function notes.txt b/artifacts/scripting/sfall function notes.txt index 67e1322d..081f577a 100644 --- a/artifacts/scripting/sfall function notes.txt +++ b/artifacts/scripting/sfall function notes.txt @@ -418,6 +418,13 @@ Some utility/math functions are available: - should be called before going to worldmap - vanilla art index is 0x1B1 +> int sfall_func0("get_cursor_mode") +- returns the current cursor mode (0 - movement cursor, 1 - command cursor, 2 - targeting cursor) +- mode 4 to 10 are Skilldex skills (yellow targeting cursor) + +> void sfall_func1("set_cursor_mode", int mode) +- sets the current cursor mode + ------------------------ ------ MORE INFO ------- ------------------------