Questions tagged [linden-scripting-language]

Linden Scripting Language, or LSL, is the programming language used in the game Second Life.

Linden Scripting Language, or LSL, is the programming language used in the game Second Life.

68 questions
1
vote
4 answers

Bitwise comparison in PHP

I confess I don't really know what I'm doing! I'm pulling some data from SecondLife and parsing it in PHP. The data is an integer from llGetRegionFlags which, in my case, returns 1048592 Now I need to do a bitwise comparison in PHP to figure out…
Tak
  • 11,428
  • 5
  • 29
  • 48
1
vote
2 answers

Compliation Error of a C++ second life library

I am trying to compile a slight part of second life library. Specifically, it is the llcommon part. I compiled it in Windows System with VS9. I failed and the compiler said it cannot recognize '_Ios_Openmode' as a member of 'std' The corresponding…
xiao 啸
  • 6,350
  • 9
  • 40
  • 51
1
vote
1 answer

Question about furniture making and scripts in Second Life?

Okay, so I just recently started messing with furniture making. I know a little bit about making stuff and scripting but I wouldn’t call myself a pro just yet. Anyway, I’m using the Mizzy's Furniture Script (whole sale version) to add the animations…
Peach
1
vote
2 answers

How can I change a portion of a string in the Linden Scripting Language (LSL)?

I have a string: string cover = "withaname" I would like to change the withaname to withnoname. I would then like to change withnoname to withanamegoose. What is the best way to accomplish this in LSL?
Wandolf
1
vote
3 answers

Problem updating MySQL DB using LSL

I have the following problem. I'm updating my mysql database using LSL. There is a corresponding table in the database and there is update.php with appropriate settings (have tested it with html form and php). Problem is that the record is added…
niuchu
  • 75
  • 10
0
votes
4 answers

How to create a playable pool cue for second life

Well as the title says i want to make a pool cue that will actually hit the balls on my table. I have made the billiard table and the balls. The problem is i cannot think of how to attach the cue to my arm so that it can hit the balls. I know that…
Pantheo
  • 129
  • 1
  • 8
  • 15
0
votes
0 answers

Second Life viewer compilation - Alchemy

Hello I'm trying to compile the secondlife Third party viewer Alchemy, but the community seems to be a bit dead on discord, And there is literally no concise updated documentation about the compilation of the program. I tried building it my own but…
bonii
  • 71
  • 1
  • 9
0
votes
0 answers

How do I create a 2 way sliding door in second life?

I'm trying to create double doors that slide opposite ways but I want to only use a single object. Basically I'm using this script; But I'm wondering if its possible so it separates in the middle and retracts rather than it retracting from one end?…
0
votes
2 answers

LSL - Adding a random time element to database queries to prevent flooding

I am working on an LSL (Linden Scripting Language) Script to be included in Radios and TVs to be distributed in-world to users within our specific community. The Radios & TVs will 'tune' the users land audio or media to a selected station via a…
0
votes
1 answer

Create a LSL script for give an object to the inventory

i need a script that when someone touch the object will receive the items that are inside the object, but the items inside have no copy,no modify,transfer permissions, i couldn t find nothing....please help
0
votes
1 answer

Linden Scripting Language Weird Syntax Error

Can anyone enlight me what is the syntax error in this script? It says (54,8) Syntax error which is the last bracket. How on the earth last bracket is syntax error? vector startPosition; float groundLevel; default { state_entry() { …
GLHF
  • 3,835
  • 10
  • 38
  • 83
0
votes
1 answer

How to animate other avatar in Linden Scripting Language?

I want to -ask for permissions and- animate another avatar with an object I'm wearing. Is this possible? I think the vampire script does that (it asks for my permission to animate my avatar). I can animate myself with such a script: default { …
Jack Pot
  • 21
  • 2
0
votes
1 answer

Finding groups in a single-dimensional grid array

If I have a randomly generated array with 60 items (represented as 6x10) of 6 types (represented as integers 0-5), how can I search for groups of the same type within the array? (Vertically/horizontally connected groups of at least 3.) I'm working…
F8bit
  • 3
  • 2
0
votes
1 answer

Parse.com Rest API - Manipulating Arrays

Due to limitations of an embedded scripting language that I am using (Linden Scripting Language, LSL for short), I must rely on the REST api for Parse.com, and unfortunately the REST api documentation is unclear or incomplete on some subjects. This…
0
votes
2 answers

Trying to create a Dice HUD on Second Life that pulls information for different rolls from a notecard

So I'm working on something that's going to be a rather large undertaking. I've figured out how to do a "bare-bones" kind of dice hud that just rolls a basic 2-20. However now I need to go to the next step. I want to make a roleplaying system dice…