Chellynne Bailey Posted September 8, 2014 Share Posted September 8, 2014 -rubs forehead- Trying to figure out why this: list layer_list = ["top", "bra"]; list nipple_list = ["nipple", "nipple2", "nipple3"]; list add_on_list = ["barbells"]; list link_list = layer_list + nipple_list + add_on_list; is throwing a syntax error? This is supposed to work >.> http://wiki.secondlife.com/wiki/LlListInsertList anyone see something I don't? T.T Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 8, 2014 Share Posted September 8, 2014 It looks fine to me. That's basic concatenation. You don't need llListInsertList to do it. So exactly what is the error message? (Or are you using the in-world script editor, which only tells you that there's an error someplace?) (Three nipples? :smileysurprised: ) Link to comment Share on other sites More sharing options...
Chellynne Bailey Posted September 8, 2014 Author Share Posted September 8, 2014 Well I linked that entry cause it shows how to do concatenation with lists.... Yeah it compiles fine on my out of world editor, but inworld it gets to the first + and yells Syntax error. This however seams to work. list link_list = [layer_list, nipple_list, add_on_list]; still confused why the first version didn't work though. ((chuckles, not all at once!)) Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 8, 2014 Share Posted September 8, 2014 That's interesting. I would have expected your "correct" version to fail with a message that says, "Lists cannot be contained within lists". LSL has a new mystery every day. Link to comment Share on other sites More sharing options...
Chellynne Bailey Posted September 8, 2014 Author Share Posted September 8, 2014 yeah I'm confused... but if it works, i works I guess. -chuckles- Link to comment Share on other sites More sharing options...
Dora Gustafson Posted September 9, 2014 Share Posted September 9, 2014 This will not work if you do it globally, e.i. outside a state Global variables cannot be defined by a computed value only by constants :smileysurprised::smileyvery-happy: Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now