Jump to content

evestones

Resident
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About evestones

  • Rank
    Newbie
  1. @Fionalein: animats said: "half-unsit" - the vehicle makes it across the sim crossing but, for some reason, the avatar does not. In that situation you can't unsit. @animats: Thanks for your work on all this. Your persistence and patience is much appreciated.
  2. An extended version using states to do this cleanly list gData = [];integer gDataCount;integer gDataLine;list gNoteNames;integer gNoteCount;integer gNoteIndex;/* initialize -------------------------------------------------------------*/default{ state_entry() { llSetText("Initializing... please wait", <1.0,0.0,0.0>, 1.0); gNoteCount = llGetInventoryNumber(INVENTORY_NOTECARD); llWhisper(0, (string)gNoteCount); integer i; for (i = 0; i < gNoteCount; i++) gNoteNames += [llGetInventoryName(INVENTORY_NOTECARD, i)]; gNoteIn
  3. Rhiannon Arkin wrote: prefetching A clean way to do this when all the notecard data can fit into the script's memory list gData = []; integer gLine = 0; /* ---------------------------------------------------- use default state to load notecard data into memory then on data loaded go to state main */ default { state_entry() { llSetText("Loading data... please wait", <1.0,0.0,0.0>, 1.0); llGetNotecardLine("ANotecard", gLine); } dataserver(key id, string data) { if (data != EOF)
  4. Cloud Aycliffe wrote: do something like: list MyList = ["abc", "def", "ghi", "jkl", "lmn", "opq"];integer i;integer length;default{ state_entry() { i = 0; length = llGetListLength(MyList); } touch_end(integer n) { llSay(0, llList2String(MyList, i)); i = (i++) % length; }}
×
×
  • Create New...