summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-10-10 16:23:19 -0400
committergumi <git@gumi.ca>2018-10-11 18:14:18 -0400
commite3df7d8ebda36542c477beba281dfc3f9c737af4 (patch)
treebc34170e800098ccee6246c0cd870644e239c160 /src/map/script.h
parentbaeb7a1742b0fd7ac5d3a4cecd90f74d461895fe (diff)
downloadhercules-e3df7d8ebda36542c477beba281dfc3f9c737af4.tar.gz
hercules-e3df7d8ebda36542c477beba281dfc3f9c737af4.tar.bz2
hercules-e3df7d8ebda36542c477beba281dfc3f9c737af4.tar.xz
hercules-e3df7d8ebda36542c477beba281dfc3f9c737af4.zip
bake buildin_prompt into buildin_select and clarify the difference between the two
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 9c72b793c..f05eb802c 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -177,6 +177,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)); \