From The Mana World
< User:Gumi
Revision as of 21:15, 21 August 2014 by Gumi (talk | contribs) (~~~~)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:
(CALL script_split_str character string variable maximum)

consider this code:
(CALL script_split_str " " target "arg" 2)

In the above example, the string "target" is splitted at every whitespace character (" ") and stored into @arg0$, @arg1$ and @arg2$ (maximum being 2)