Jump to content

Morgan Mode

Resident
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Morgan Mode

  1. I want the word "ass" in chat to trigger a twerk animation. I've named everything correctly but the animation doesn't trigger. Is my script wrong?

    Quote
    
    //start_unprocessed_text
    /*string animation = "twerk";
    default
    {
        state_entry()
        {
            llListen(0,"","","ass");
            llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);                
        }
    
        listen(integer channel, string name, key id, string message)
        {
            if (message == "ass")
            {
                llStartAnimation(animation);
            }
        }
    
        run_time_permissions(integer permissions)
        {
            if (permissions & PERMISSION_TRIGGER_ANIMATION)
            {
                return;
            }
            else
            {
                llOwnerSay("can not trigger animation, detaching");
                    llDetachFromAvatar();
            }
        }
    }*/
    //end_unprocessed_text
    //nfo_preprocessor_version 0
    //program_version Firestorm-releasex64 6.2.4.57588 - WilliamBeauclerc
    //last_compiled 07/24/2019 17:43:58
    //mono
    
    
    
    
    string animation = "twerk";
    default
    {
        state_entry()
        {
            llListen(0,"","","ass");
            llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);                
        }
    
        listen(integer channel, string name, key id, string message)
        {
            if (message == "ass")
            {
                llStartAnimation(animation);
            }
        }
    
        run_time_permissions(integer permissions)
        {
            if (permissions & PERMISSION_TRIGGER_ANIMATION)
            {
                return;
            }
            else
            {
                llOwnerSay("can not trigger animation, detaching");
                    llDetachFromAvatar();
            }
        }
    }

     

    I have purchased this script from a creator, please don't use without permission.

  2. 22 minutes ago, Rolig Loon said:

    It's almost always more trouble than it's worth to try merging scripts written by different people for different purposes.  You're asking for headaches and won't probably end up with a script that is as well-matched to your needs as one that you wrote from scratch.  This forum is also not a script-writing service.  You are welcome to post what you have done so far so that people can advise you about what to try next, but you should expect to do the work.  If you want a custom script -- really the best route -- the place to look for one is in the InWorld Employment forum.  

    Thank you Rolig, wasn't sure as I am new here! Will look into it.

×
×
  • Create New...