summaryrefslogtreecommitdiff
path: root/npc/functions/string.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/string.txt')
-rw-r--r--npc/functions/string.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/string.txt b/npc/functions/string.txt
index 782179d5..efeaf476 100644
--- a/npc/functions/string.txt
+++ b/npc/functions/string.txt
@@ -2,6 +2,15 @@
// ** does not require PCRE
+// str(<int>)
+// returns whatever is passed, converted to string
+
+function script str {
+ return "" + getarg(0);
+}
+
+
+
// startswith("<string>", "<search>")
// returns true if <string> begins with <search>