#[SOLVED] How to split values?

1 messages · Page 1 of 1 (latest)

placid dew
#

so, i think of a method, that could help me to organize the process of making a ton of IDs in every model i need. So i need to store every ID somewhere, and for now im using Attributes, so every item got Attribute called ID which contains the current ID of this item, but i dont really need to use the specific item with the same ID of it, i can just store all IDs of current model in 1 'string' of values, and thats the problem: how do i separate them? Ik the lua got some 'separator' functions or smth like that.
So basically what im saying is: you got Value instance, and its value is set to (for ex.): 1245512, 125213, 1262152, 12621412, or smth like that, and my question is: how do i separate them thru the script so i could get every id separately? There's like a string.split(), but i want to see, if there's a better solution for that!

scenic finch
#

I don't think stuff could get much simpler than string.split()

placid dew
#

tysm!