Pages

Friday, May 21, 2010

Hot Topics (Part 1)

Ok so I've helped several people with several questions pertaining to several things. None of which were answered on the blog so I figure I'll pick and choose and write a post about a few things I've helped with here and there. This one will be a quickie.

Shila was working on a script that reads a notecard, and she wanted to know how to reset the script whenever the notecard is edited and saved. The code for this is pretty quick and simple. All you have to do is add the "changed" event to your code.

changed(integer change){
    if ( change & CHANGED_INVENTORY){
        llResetScript();
    }
    }

0 comments:

Post a Comment