summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRidley <ridley8819@gmail.com>2017-02-26 00:31:18 +0100
committerGitHub <noreply@github.com>2017-02-26 00:31:18 +0100
commit9a7a165d4dbad598907d3ecd54196e8f76c4f3f5 (patch)
treed4540b804d94d3338b90b3f44097721861fb13c9 /doc
parentabb3bc63cb48c7d8bd378bbe3e1c68da0f18d613 (diff)
parentbde8199e4b83d838d560c3fa7bb66cde45d7ad90 (diff)
downloadhercules-9a7a165d4dbad598907d3ecd54196e8f76c4f3f5.tar.gz
hercules-9a7a165d4dbad598907d3ecd54196e8f76c4f3f5.tar.bz2
hercules-9a7a165d4dbad598907d3ecd54196e8f76c4f3f5.tar.xz
hercules-9a7a165d4dbad598907d3ecd54196e8f76c4f3f5.zip
Merge pull request #1588 from mekolat/chr2
add ascii manipulation buildins
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index a0e3a783d..1737f8796 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -8046,6 +8046,26 @@ Example:
---------------------------------------
+*chr(<int>)
+
+Returns a char from its ASCII value.
+
+Example:
+
+ chr(99); //returns "c"
+
+---------------------------------------
+
+*ord(<chr>)
+
+Returns the ASCII value of char <chr>.
+
+Example:
+
+ ord("c"); //returns 99
+
+---------------------------------------
+
*setchar(<string>, <char>, <index>)
Returns the original string with the char at the specified index set to