I am making a game, and am trying to get it so any incoming data is done right..
like in muds, but i dunno how to do it

unless someone can tell me how they do it, this is what i would like to use:



I would like to split some text

example:
hey guys what is up?

Turns into these varaibles

word1="hey"
word2="guys"
word3="what"
word4="is up?"

Soo, the first word is put into WORD1
second into word2
third into, word3
and ANY WORDS after it go into word4

If i could get this,, gREAT

Lastly

if it is possible

i'd like it also to be able to do:
Code:
      hey       guys what is         up?
it turns out the same

word1="hey"
word2="guys"
word3="what"
word4="is up?"

so, the first 3 words come out the same, but the words 4 and after, keep the spaces