summaryrefslogtreecommitdiff
path: root/npc/functions/RNGesus.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-06 16:05:22 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-06 16:05:22 -0300
commit1eb354820d2473b9d54af5dbf42d6027591f84fd (patch)
treeae9b76e4c3f3f72aecc61ed6c8674b5f0ced5e37 /npc/functions/RNGesus.txt
parent070bf3df848f31eb555f91d00f7e4f4596bc0954 (diff)
downloadserverdata-1eb354820d2473b9d54af5dbf42d6027591f84fd.tar.gz
serverdata-1eb354820d2473b9d54af5dbf42d6027591f84fd.tar.bz2
serverdata-1eb354820d2473b9d54af5dbf42d6027591f84fd.tar.xz
serverdata-1eb354820d2473b9d54af5dbf42d6027591f84fd.zip
Move RNGesus to utils file. They're better there. Maybe even on main.
Diffstat (limited to 'npc/functions/RNGesus.txt')
-rw-r--r--npc/functions/RNGesus.txt23
1 files changed, 0 insertions, 23 deletions
diff --git a/npc/functions/RNGesus.txt b/npc/functions/RNGesus.txt
deleted file mode 100644
index f71c2f28a..000000000
--- a/npc/functions/RNGesus.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-// Evol functions.
-// Authors:
-// gumi
-// Description:
-// Randomization helper functions.
-
-
-
-// any(<arg>{, ...<arg>})
-// returns one argument randomly
-
-function script any {
- return getarg(rand(getargcount()));
-}
-
-
-
-// any_of(<array>)
-// returns any member of the array
-
-function script any_of {
- return getelementofarray(getarg(0), getarrayindex(getarg(0)) + rand(getarraysize(getarg(0)) - getarrayindex(getarg(0))));
-}