From The Mana World
(~~~~)
 
m (Gumi moved page User:Meko/splitter to User:Gumi/splitter: Automatically moved page while renaming the user "Meko" to "Gumi")
 
(2 intermediate revisions by the same user not shown)
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 character 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>)

Latest revision as of 19:42, 15 June 2020