Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDialog w/ Pagination AND +24 length names

Arritalon Paine
Registered User
Join date: 3 Mar 2007
Posts: 4
08-16-2008 23:20
I am working on a suitable library script that will let me

1. Have 50+ note cards in it
2. Doesn't have a fit if the names are too long
3. Allows me to make the buttons numbered and write out the full titles in the Dialog area
4. will move from page to page and list the current button selections with the full titles in the dialog area which only allows me 512 characters


the Problems I am running into

1- I cannot get it to go from page to page AND show the new Dialog list with the full titles in it

OR

It opens numerous dialog windows which may or may not correspond to the list on the dialog menu

Or it whines about the length of the titles

any ideas?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
08-17-2008 00:10
instead of [llKey2Name(id)] for the buttons, do this:
[llGetSubString(llKey2Name(id), 0, 23)]

That way, you're only displaying the first 24 characters of a given name. You can then test the name stated against the real name, and check if the first 24 match.

The odds of having 2 people with identical names for the first 24 characters, is pretty damned unlikely.

I'd either use a strided list, or use 2 identically ordered lists (if the lists tended to get biggish). With 2 lists, if the name fragment on the button pressed is found at position 10 in the names list, then you use the key in position 10, in the keys list.

if (message = ">>";) blah;
else if (message = "<<";) blah;
else doSomething(llList2Key(listKeys, llListFindList(listNames, [message]));
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura