Jump to content

.


Evan Reanimator
 Share

You are about to reply to a thread that has been inactive for 4654 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Try this one:

--Cinn

integer number;
string name;
integer choice = 0;

default
{
    state_entry()
    {
        number = llGetInventoryNumber(INVENTORY_TEXTURE);
        number -= 1;
        name = llGetInventoryName(INVENTORY_TEXTURE, choice);
        if (name != "")
        {
            llSetTexture(name, ALL_SIDES);
            choice = choice + 1;
        }
    }

    touch_start(integer total_number)
    {
        if (choice < number)
        {
            name = llGetInventoryName(INVENTORY_TEXTURE, choice);
            if (name != "")
            {
                llSetTexture(name, ALL_SIDES);
                choice = choice + 1;
            }
        }
        else
        {
            name = llGetInventoryName(INVENTORY_TEXTURE, choice);
            if (name != "")
            {
                llSetTexture(name, ALL_SIDES);
                choice = 0;
            }
        }
    }
   
    changed(integer change)
    {
        if (change & CHANGED_INVENTORY)
        {
            llResetScript();
        }
    }
}

Link to comment
Share on other sites

I do not know to be honest, but the indication is that the problem is on line 41.  I suggest you take out the last bracket and see if it will compile while waiting for someone more knowledgable to get back to you, as it might be as simple as having one too many brackets.

Link to comment
Share on other sites

There is nothing wrong with the script - I even double checked it and tested it. The "illegal character" must have slipped in while copying&pasting.

But what is more:

It is not the purpose of this forum to provide (free) scripts - it is for discussing scripting related issues. If you wanted to script your own texture changer but needed advice on how to do it, fine.

For what you want:

  • Look in the Scriptig Library forum
  • Ask in the "Wanted" forum that is part of the Commerce forums
  • Ask in one of the inworld script colletors' forums
  • and last but not least: Use Google (or Bing, or ...) - you would have a hand full on the first atempt
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4654 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...