Evan Reanimator Posted July 1, 2011 Share Posted July 1, 2011 Thanks. Link to comment Share on other sites More sharing options...
Cinnamon Lohner Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
Evan Reanimator Posted July 1, 2011 Author Share Posted July 1, 2011 Would I put the name of the texture or the asset UUID between the quotation marks? (name != "") Also what any clue what "illegal character <> 65279" means?? Thanks! Link to comment Share on other sites More sharing options...
Evan Reanimator Posted July 1, 2011 Author Share Posted July 1, 2011 This is a screen shot of what happens, http://uploadpic.org/v.php?img=iQe2vt12VF Link to comment Share on other sites More sharing options...
Anaiya Arnold Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
Evan Reanimator Posted July 1, 2011 Author Share Posted July 1, 2011 Its annoying because I straight copy pasted it Link to comment Share on other sites More sharing options...
Evan Reanimator Posted July 1, 2011 Author Share Posted July 1, 2011 Any other scripts I could try? Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
Dora Gustafson Posted July 1, 2011 Share Posted July 1, 2011 You started a thread a few days ago: Change Colour when touched You could use all the tips you had since changing color and changing texture scripts are similar Link to comment Share on other sites More sharing options...
Recommended Posts
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