Posted 08 May 2018 - 12:41 AM
Hey! This is my first post on the forum, and I'm not really that good at Lua either, so sorry if I miss something obvious.
[namedspoiler="really crappy explanation of what it should do]You still clicked show?
Fine, here's the explanation with my bad Lua knowledge.
So, I'm trying to seperate a string into a table.
The delimiter would be space, which means that it would seperate the words.
The last step is to reassemble all of the words in the table except the first one into a string.
Does that make any sense?
[/namedspoiler]
Ignore that ^^ it's probably not the best way
I'm trying to make a text adventure game and there will be one word commands.
However, there will be parameters after them.
So I need to seperate the first one and know what it is, but also know what all of the rest of them are together.
Just like I said at the top, if I'm missing something, tell me.
[namedspoiler="really crappy explanation of what it should do]You still clicked show?
Fine, here's the explanation with my bad Lua knowledge.
So, I'm trying to seperate a string into a table.
The delimiter would be space, which means that it would seperate the words.
The last step is to reassemble all of the words in the table except the first one into a string.
Does that make any sense?
[/namedspoiler]
Ignore that ^^ it's probably not the best way
I'm trying to make a text adventure game and there will be one word commands.
However, there will be parameters after them.
So I need to seperate the first one and know what it is, but also know what all of the rest of them are together.
Just like I said at the top, if I'm missing something, tell me.