Don't click here unless you want to be banned.

LSL Wiki : HazVega

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ia360925.us.archive.org
I like the idea of AI in SL but at the moment i am making other things and not really thinking about AI.

Current Projects (pending and not necceserily started)


1. Memo system with loads of features
2. Maze Navigator There're quite a few rules for creating maze followers, one of which is the right-hand rule. It states that if you always follow the right hand wall of the maze, you will eventually find your way out. This in mind, one could create an extremely simple maze navigator by simply having it always try to go to the right with llApplyImpulse. -Dolus

Scripts I have wrote

Very basic I know...

UUID identifier
integer isKey(string str) //Identifies whether a certain string is a UUID or not. TRUE if it is
{    
 return ( (llStringLength(str) == 36) && //UUIDs are always 36 characters 
        (llGetSubString(str, 8, 8) == "-") && //9th character is always a dash
        (llGetSubString(str, 13, 13) == "-") && //14th character is always a dash
        (llGetSubString(str, 18, 18) == "-") && //19th character is always a dash
        (llGetSubString(str, 23, 23) == "-") ); //24th character is always a dash
}

last name database with sandbox save
//Copyright Haz Vega. IM in world (offline IMs go to email) for permission to use.
//Yes I know you can just copy and paste into SL but be nice and ask first.
//You know you'll feel better for it.
survive()
{
    integer i;
    if(llGetWallclock()>=(60*60*3-30) && llGetWallclock()<=(60*60*3+30))
    {
        string DB = "[";
        for(i=0; i<llGetListLength(lastNameDB); ++i)
        {
            DB+=llList2String(lastNameDB, i);
            DB+=", ";
        }
        DB+="]";
        llEmail("madharry22003@yahoo.co.uk", "last name database recovery", DB);
    }
    
    if(llGetWallclock()>=(60*60*15-30) && llGetWallclock()<=(60*60*15+30))
    {
        string DB = "[";
        for(i=0; i<llGetListLength(lastNameDB); ++i)
        {
            DB+=llList2String(lastNameDB, i);
            DB+=", ";
        }
        DB+="]";
        llEmail("madharry22003@yahoo.co.uk", "last name database recovery", DB);
    }
}

toDatabase()
{
    list name = llParseString2List(llDetectedName(0), [" "], [""]);
    list lastName = llDeleteSubList(name, 0, 0);
    llOwnerSay((string)lastName);
    
    if(llListFindList(lastNameDB, lastName) == -1)
    {
        lastNameDB += lastName;
        lastNameDB = llListSort(lastNameDB, 1, TRUE);
    }
    survive();
}

list lastNameDB;

default
{
    state_entry()
    {
        llSensorRepeat("", NULL_KEY, AGENT, 100, PI, 10);
    }
    
    sensor(integer num)
    {
        toDatabase();
    }
}
These scripts are unlikely to be updated so IM me in world to look at newer versions (if any)

Rants

I am on the TG and i look on the wiki every time before i go into SL for a reminder or inspiration. And quite a lot of the time there will be a forum post of behavioral patterns or certain scripts. So I think "great". I click the link and I can't access the forum because it is A BLOODY MAIN GRID FORUM. This is getting annoying so I would appreciate it if there was some sort of page that shows certain forum posts! Rant over. -Such as this? forumreferences - TiPBaKeR - No, that is the same link, if you are on the TG it comes up saying you aren't allowed to view it. actually pasting the relevant info/script on a certain wiki page would be enough.

Links



Backlinks


Wanted Pages



wanted pages
UsHu (771)


Get rid of the WantedPages!!!
credit to DolusNaumova for the JavaScript Expand/Collapse



Search for: 
There is one comment on this page. [Display comments/form]