summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 2bfb6e29a..95587aa70 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -12,6 +12,15 @@ function script menuimage {
return getarg(0) + "|" + getarg(1);
}
+function script dnext {
+ if (@dnext >= GSET_LONGMENU_DENSITY) {
+ @dnext=0;
+ next;
+ } else {
+ @dnext+=1;
+ }
+}
+
function script menuaction {
return "[" + getarg(0) + "]";
}