#################################
string text1;
string text2;
string text3;
key owner;
key creator;
key QueryID;
integer NotecardLine;
string CONFIG_CARD = "Values";
integer listen_id;
integer channel;
key ukey;
list temp;
string name;
init()
{
owner = llGetOwner();
creator = llGetCreator();
channel=llCeil(llFrand(1000000));
listen_id=llListen(channel,"",ukey,"" );
}
menu()
{
llDialog(ukey,"Choose a Value",["Value1","Value2", "Value3"],channel);
}
setVal()
{
llWhisper(0,"Notecardline=" +(string)NotecardLine);
QueryID= llGetNotecardLine(CONFIG_CARD, NotecardLine);
llWhisper(0,(string)owner + " " + (string)creator + " " +text1 +text2 +text3);
menu();
}
default
{
state_entry()
{
init();
}
touch_start (integer total_number)
{
ukey = llDetectedKey(0);
menu();
}
dataserver( key queryid, string data )
{
if (queryid = QueryID)
{
temp = llParseString2List(data, [","], []);
name = llStringTrim(llToLower(llList2String(temp, 0)), STRING_TRIM);
text1= llStringTrim(llToLower(llList2String(temp, 1)), STRING_TRIM);
text2= llStringTrim(llToLower(llList2String(temp, 2)), STRING_TRIM);
text3= llStringTrim(llToLower(llList2String(temp, 3)), STRING_TRIM);
}
}
listen(integer ch, string name, key id, string msg)
{
if (msg=="Value1"

{
NotecardLine = 0;
setVal();
}
if (msg=="Value2"

{
NotecardLine = 1;
setVal();
}
if (msg=="Value3"

{
NotecardLine = 2;
setVal();
}
}
}
#####################################
Notecard sample, rename it "Values":
ahahah,11111111111111111111111,1111111111111111111,111111111111111111111
eheheh,22222222222222222222222222,2222222222222222222222,222222222222222222222222
uhuhuh,33333333333333333333333333,3333333333333333333333,333333333333333333333333