From 6b20c5b6988c889df35b890d93c338f8b87fa430 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 2 Nov 2014 01:30:33 +0100 Subject: Added min() and max() script commands - Special thanks to Streusel, Xgear Signed-off-by: Haru --- doc/script_commands.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 9d2317942..4e28b5b71 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -7586,6 +7586,18 @@ Example: --------------------------------------- +*min({,...}) +*max({,...}) + +Returns the smallest (or biggest) from the set of given numbers. + +Example: + .@minimum = min(1, -6, -2, 8, 2); // .@minimum will be equal to -6 + .@maximum = max(0, 5, 10, 4); // .@maximum will be equal to 10 + .@level = min(BaseLevel, 70); // .@level will be the character's base level, capped to 70 + +--------------------------------------- + *md5("") Returns the md5 checksum of a number or string. -- cgit v1.2.3-60-g2f50