I have a notecard which contains the scene names and coordinate locations of all objects per scene. An example would be this:
17:46] : | scene | Bedroom
[17:46] : | object | Lamp | <-1.20872, -0.33155, -3.33858>/<-0.00000, 0.00000, -0.00000>
[17:46] : | object | Night_Table | <-0.72021, -0.32541, -3.32856>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bed | <-0.73903, 2.22778, -1.11857>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Dresser | <-0.85421, -3.56949, -0.58953>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bedroom_Room1 | <0.05109, -0.06909, -0.11857>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | PictureFrame1 | <-3.40343, 2.21217, -4.06382>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bedroom_room1 | <-3.40343, -4.03227, -0.57366>/<0.00000, -90.00000, 90.00000>
[17:46] : | object | Lamp | <-1.20872, -0.33155, -3.33858>/<-0.00000, 0.00000, -0.00000>
[17:46] : | object | Night_Table | <-0.72021, -0.32541, -3.32856>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bed | <-0.73903, 2.22778, -1.11857>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Dresser | <-0.85421, -3.56949, -0.58953>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bedroom_Room1 | <0.05109, -0.06909, -0.11857>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | PictureFrame1 | <-3.40343, 2.21217, -4.06382>/<0.00000, -90.00000, 0.00000>
[17:46] : | object | Bedroom_room1 | <-3.40343, -4.03227, -0.57366>/<0.00000, -90.00000, 90.00000>
This is just one bloc,, but there are multiple instances of this each with objects and scenes. I can rez objects just fine, but I want to add something more to this script.
My question is this: how would I go about reading in ONLY the scene name (not manually) from the notecard, and then assigning a numerical digit (integer) to the indivitual names so that when I click on the start object, it will randomly pick a start room based on the integer input.
Now, another script will tell if an integer value has been assigned for scene rezzing and then to prevent another click instance on the start object, it will lock it. Somehow, I am not sure, but when the object is locked, clicking it again will kill all the objects in a scene.
Is this even possible in SL? I am fairly new with coding and any help would be appreciated. Thanks in advance!

; // get notecard number of lines