diff options
author | Haru <haru@dotalux.com> | 2018-10-22 14:49:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-22 14:49:34 +0200 |
commit | 239b7eb61eca00ff1ba24999daaa2b001afa736d (patch) | |
tree | 4fec54a9a9d5cdb4e99f943f46320b4ab7e60947 /src/map/script.h | |
parent | 388359c86183bb779717b6324f6f19c1ee09b2c3 (diff) | |
parent | 5c59f230d982a2e0201956a6f9f853253b9f3c5f (diff) | |
download | hercules-239b7eb61eca00ff1ba24999daaa2b001afa736d.tar.gz hercules-239b7eb61eca00ff1ba24999daaa2b001afa736d.tar.bz2 hercules-239b7eb61eca00ff1ba24999daaa2b001afa736d.tar.xz hercules-239b7eb61eca00ff1ba24999daaa2b001afa736d.zip |
Merge pull request #2279 from Helianthella/prompt
deprecate buildin_prompt, bake it into buildin_select
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h index 72210b05b..549ad3284 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -64,6 +64,9 @@ struct item_data; #define SCRIPT_EQUIP_TABLE_SIZE 20 +#define MAX_MENU_OPTIONS 0xFF +#define MAX_MENU_LENGTH 0x800 + //#define SCRIPT_DEBUG_DISP //#define SCRIPT_DEBUG_DISASM //#define SCRIPT_DEBUG_HASH @@ -177,6 +180,8 @@ struct item_data; #define BUILDIN(x) bool buildin_ ## x (struct script_state* st) +#define get_buildin_name(st) ( script->get_str((int)(script_getdata((st), 0)->u.num)) ) + #define script_fetch(st, n, t) do { \ if( script_hasdata((st),(n)) ) \ (t)=script_getnum((st),(n)); \ |