Jump to content

Derin Swenson

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. awesome! I knew it was something simple that I wasn't seeing. Thank you!
  2. listen(integer chan, string name, key id, string mes) { llOwnerSay("Debug: Channel - " + (string)chan + ", id - " + llKey2Name(id) + ", message - " + mes + "."); if(id == owner) { if(llToLower(llGetSubString(mes,0,llStringLength("titler ") - 1 )) == "titler ") { integer num = (integer)llGetSubString(mes, llStringLength( "titler " ), -1); llOwnerSay((string)num); llListenRemove(listenhandle); listenhandle = llListen(-num, "", owner, ""); if(num == 1) llTextBox(owner, "Set line " + (string)num + " for titler.", -num); else if(num == 2) llTextBox(owner, "Set line " + (string)num + " for titler.", -num); else if(num == 3) llTextBox(owner, "Set line " + (string)num + " for titler.", -num); else if(num == 4) llTextBox(owner, "Set line " + (string)num + " for titler.", -num); } } if(id == owner) { llOwnerSay("Debug: Channel recieved " + (string)chan); if(chan == -1) line1 = mes; else if(chan == -2) line2 = mes; else if(chan == -3) line3 = mes; else if(chan == -4) line4 = mes; llListenRemove(listenhandle); titlerreset(); } } I have this command, (general chat listener set in state entry event) that will open up a textbox, and then send the input into one of four lines depending on the command. I.E. "titler 1" changes line 1, "titler 2" changes line 2, all the way up to line 4. It takes the command and gets the last character and uses that as a negative channel for the textbox dialog. When I input what I want the new line to say, then click submit, my listen event doesn't trigger. I left my debug owner says in there. The top one just under the listen event header doesn't fire off when submit is clicked in the textbox. I've checked to make sure the listen is created in the listen handler, and it does. owner is set to llGetOwner() in the stateentry and titlerresetI() just resets the SetText. Am I doing something wrong? I used the Textbox2Hovertext as the basis of this script.
×
×
  • Create New...