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.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 80548731..59beff05 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -59,6 +59,11 @@ function script addremovemapmask {
return;
}
+// returns a randomly picked argument from the given ones
+function script any {
+ return getarg(rand(getargcount()));
+}
+
// remove spaces at the start and end of string and return result
function script strip {
.@s$ = getarg(0);