Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discussion: Single Neat Elavator

Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
09-04-2007 15:42
From: wholesale Bing
yep thats works well ,thank you ,now all i need to do is have a click to use sign in my lift and anyone can figure it out :-) great !!!!
Does it need to show anything on the riding and moving elevator? :eek:

From: Justin Slade
I was wondering if you could give me a auto return to the first floor for a short range elevator.
This elevator returns to the place where you set every time, so that you need to set it on the every floor. :confused:
_____________________
:) Seagel Neville :)
Justin Slade
Registered User
Join date: 6 Feb 2007
Posts: 132
09-04-2007 15:51
From: Seagel Neville
Does it need to show anything on the riding and moving elevator? :eek:

This script is okay the way it is as afr as show, thanks

This elevator returns to the place where you set every time, so that you need to set it on the every floor. :confused:

So I would move it to the second floor and reset it there? Yes I'm confused and about that angle or slope as it goes up

Thanks a lot
Justin
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
09-04-2007 16:01
From: Justin Slade
So I would move it to the second floor and reset it there? Yes I'm confused and about that angle or slope as it goes up

Thanks a lot
Justin
hmm.... This goes up/down vertically. Do you like it to move also forward and backward along the angle and slope? Is it the same issue on #21 of this thread?
_____________________
:) Seagel Neville :)
Justin Slade
Registered User
Join date: 6 Feb 2007
Posts: 132
09-04-2007 16:35
From: Seagel Neville
hmm.... This goes up/down vertically. Do you like it to move also forward and backward along the angle and slope? Is it the same issue on #21 of this thread?



Yes basically..I'm working on it right now. I'll let you know if I have any problems. Thanks, I thought I read this whole thread.

again many thanks
Justin
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
09-15-2007 13:33
works ok..but
what if I whant to put more than 12 buttons, how I can make a "next" and "back"button for the second list o floors?
because I get this error "llDialog: button list too long, must be 12 or fewer entries"
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
09-16-2007 08:08
You have to prepare 2 or more lists to call dialog boxes.
For example,

list heightList 1= [100, 200, 300];
list heightList 2= [400, 500, 600];
list menuList1 = ["2F", "3F", "4F"];
list menuList2 = ["5F", "6F", "7F"];

Then, call those two dialog boxes by llDialog.

llDialog(av, "To what floor do you go?", menuList2, CHANNEL);
llDialog(av, "To what floor do you go?", menuList1, CHANNEL);

And you have to change under listen event to get the height like this.
CODE
listen(integer channel, string name, key id, string message)
{
if(llListFindList(heightList1, [message] != -1)
{
height = llList2Float(heightList, llListFindList(menuList1, [message]));
}
else
{
height = llList2Float(heightList, llListFindList(menuList2, [message]));
}
llListenRemove(HANDLE);
FloorSelection = TRUE;
}

I hope you understand what this means.
And you'll find that one dialog box will be left when a user press the button.
you cannnot help but have the user press "ignore" to remove it.
_____________________
:) Seagel Neville :)
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
09-16-2007 20:27
I put this code:

list heightList = [9.0,20.20,30.00,39.00,49.20,59.00,68.50,78.00,87.00,97.00,107.00];// altura para cada piso
list menuList = ["1-P","2-P","3-P","4-P","5-P","6-P","7-P","8-P","9-P","10-P","11-P","Siguiente"]; // opciones q se mostraran en el menu al tocar el ascensor
list heightList2 = [117.00,137.00,158.00,165.00];
list menuList2 = ["12-P","13-P","14-P","Azotea"];

//// some code

touch_start(integer change)
{
key av = llDetectedKey(0);
AVsize = llGetAgentSize(av);
llSitTarget(<0, 0, (AVsize.z / 2)>, ZERO_ROTATION);
integer CHANNEL = llRound(llFrand(1000000) - 10000000);
HANDLE = llListen(CHANNEL, "", "", "";);
llDialog(av, "A que piso desea ir?", menuList, CHANNEL);

}
listen(integer channel, string name, key id, string message)
{
{height = llList2Float(heightList , llListFindList(menuList + menuList2 , [message])!= -1) ;}//
if (message == "Siguiente";)//next
llDialog(id, "A que piso desea ir?", menuList2, CHANNEL);
{height = llList2Float( heightList , llListFindList(menuList + menuList2 , [message])) ;} //

llListenRemove(HANDLE); // Is this a manner?
FloorSelection = TRUE;
}
}

----
but some times the elevator take the 12F or 14F and some times not :S
1 2 3