Jump to content

Search the Community

Showing results for tags 'for loop'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Missed Connections
    • Second Life Education
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests, Events & Challenges
    • Challenges
    • Leap Into Love Snapshot Contest
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • LSL Library
    • Experience Tools Forum
    • Sansar for Second Life Residents
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Regions for Sale: Full Private Island
    • Region for Rent: Full Private Island
    • Regions for Sale: Homesteads
    • Region Rentals: Homestead
    • Parcels for Sale: Mainland
    • Parcels for Rent: Mainland
    • Wanted: Full Private Island
    • Wanted: Homesteads
    • Wanted: Mainland
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Adult Content Forum
    • Highlight Upcoming Events
    • General Discussion
    • General Announcements
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land
  • Community News

Categories

  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. OK so i'm probably overlooking something really simple in the logic, but I can't see it for myself right now. I just want the llOwnerSay("so and so is in the region") to only display once if that avi has been detected already and added to the "seen" list (unless they are removed and come back later). I'm sure it's something simple I'm overlooking, but any help would be nice! If there's a better way to do this, please suggest it also! timer(){ //Recheck the region REGION_KEYS = llGetAgentList(AGENT_LIST_REGION, []); NUM_KEYS = llGetListLength(REGION_KEYS); key thisAvKey; string this_agent_name; integer i; for (i = 0; i < NUM_KEYS; ++i) { thisAvKey = llList2Key(REGION_KEYS,i); this_agent_name = llKey2Name(thisAvKey); //See if targets are in your region integer listIndex = llListFindList(TARGET_LIST, [this_agent_name]); //llOwnerSay((string)listIndex); if (listIndex != -1) { //Update notifation list SEEN_NOTI += [this_agent_name]; SEEN_NOTI = ListUnique(SEEN_NOTI); //llOwnerSay(llDumpList2String(SEEN_NOTI, ",")); if (llListFindList(SEEN_NOTI, [this_agent_name]) != -1){ //Only give notifation if it's not been said already! llOwnerSay(llGetDisplayName(thisAvKey) + " is in your region of " + llGetRegionName() + "!"); } //Remove from SEEN list if they leave the region if (llGetAgentSize(thisAvKey) == ZERO_VECTOR){ llOwnerSay("removed " + this_agent_name + "from the list!"); SEEN_NOTI = ListItemDelete(SEEN_NOTI, this_agent_name); } //llOwnerSay(llDumpList2String(SEEN_NOTI, ",")); } } }
×
×
  • Create New...