sweet thank that worked how about this
integer owner;
default
{
state_entry()
{
llListen(1979, "", NULL_KEY, "");
}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "select an option:",["option 1","option 2"],1979);
}
listen(integer channel, string name, key id, string message)
{
if(channel == 1979){
if(message == "option 1"){
string oldName = llGetObjectName();
llSetObjectName("");
owner = llGetDisplayName(llGetOwner());
llSay(0," " + owner + "you chose the first option on the dialog.");
llSetObjectName(oldName);
llSetLinkAlpha(3,0,ALL_SIDES);
llSetLinkAlpha(2,0,ALL_SIDES);
; }else if(message == "option 2"){
llSay(0," you chose the second option on the dialog.");
llSetLinkAlpha(3,1,ALL_SIDES);
llSetLinkAlpha(2,1,ALL_SIDES);
; }
}
}}
trying to get it to say my name in chat and not the box name
the editor I'm using asks this
Cannot implicitly convert type 'string' to 'integer'. An explicit conversion exists (are you missing a cast?)
were would I learn about casts?