From The Mana World
(Blanked the page)
Line 1: Line 1:
=Argument Splitter=
The argument splitter (script_split_str) can be used to split a string passed to a spell into multiple arguments.


==Basic usage==
the usage is:<br>
<code>(CALL script_split_str delimiter string variable maximum)</code>
<br><br>
consider this code:<br>
<code>(CALL script_split_str " " target "arg" 2)</code>
In the above example, the string "target" is splitted at every whitespace character (<b>" "</b>) and stored into <b>@arg0$</b>, <b>@arg1$</b> and <b>@arg2$</b> (maximum being <b>2</b>)

Revision as of 20:09, 5 August 2016