Jump to content

Cosmeja

Resident
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Cosmeja

  1. Oh I got it without needing to change the receiver script. I dont know if you ment this solution by saying The Script now looks like this and can be alterd in the way (numbers of links or/and faces I need. ------------------------------------------------------------------------------------------------------------------------------------------------------- i integer channel = 1000049; // Channel for comms (Must be same as reciever). string texture = "4f2abcfc-5df9-43b8-4fc1-ee30e8c96c01"; // UUID of Texture to apply string normal = "072f449b-8098-1cc8-42f0-acc72c45ae70"; // UUID of NORMAL Texture to apply string spec = "3eee90c2-497c-c4d8-a071-be01d402aa62"; // UUID of Specualr Texture to apply integer link1 = 1; // Link number to apply the texture to (LINK_SET for all links). integer link2 = 2; // Face number to apply the texture to (ALL_SIDES for all faces). integer face1 = 1; // Link number to apply the texture to (LINK_SET for all links). integer face2 = 2; // Face number to apply the texture to (ALL_SIDES for all faces). integer glossiness = 100; // Value of glosiness integer environment = 0; // Value of environmental reflection string SR = "*"; // Seperator to use in the list, must be the same // as the seperator to be used within the reviever // script. //////////////////////////////////////////////////////////////////// default { touch_start(integer total_number) // When object is touched. { // Say each texture property with the seperator inbetween so the reciever can parse it. //llRegionSay(channel,texture+SR+(string)link+SR+(string)face+SR+"SPECULAR"+SR+"NORMAL"); llSay(channel,texture+SR+(string)link1+SR+(string)face1+SR+normal+SR+spec+SR+(string)glossiness+SR+(string)environment); llSay(channel,texture+SR+(string)link2+SR+(string)face2+SR+normal+SR+spec+SR+(string)glossiness+SR+(string)environment); } } --------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. That is what I am doing right now. Having a number of the SEND script in a button, each adressing the specific Link or Face. I end up having up to four or more scripts in a button. I thought by adressing multiple Links and/or faces within ONE script, it reduces not only the number of scripts in a button, but also the amount of work adding the texture UUID to each script. I gues I will just go along the road of having multiple Scripts in my Buttons, since I have no clue of scripting beside knowing where to put my UUIDs or change Link/Face number etc Thank you guys for your replys
  3. Hello, since some years I use a simple Texturechanger script for the HUDs of my Creations. It looks like this: --------------------------------------------------------------------------------------------------------------------------- integer channel = 9000049; // Channel for comms (Must be same as reciever). string texture = "4f2abcfc-5df9-43b8-4fc1-ee30e8c96c01"; // UUID of Texture to apply string normal = "072f449b-8098-1cc8-42f0-acc72c45ae70"; // UUID of NORMAL Texture to apply string spec = "3eee90c2-497c-c4d8-a071-be01d402aa62"; // UUID of Specualr Texture to apply integer link = LINK_SET; // Link number to apply the texture to (LINK_SET for all links). integer face = ALL_SIDES; // Face number to apply the texture to (ALL_SIDES for all faces). integer glossiness = 100; // Value of glosiness integer environment = 0; // Value of environmental reflection string SR = "*"; // Seperator to use in the list, must be the same // as the seperator to be used within the reviever // script. //////////////////////////////////////////////////////////////////// default { touch_start(integer total_number) // When object is touched. { // Say each texture property with the seperator inbetween so the reciever can parse it. //llRegionSay(channel,texture+SR+(string)link+SR+(string)face+SR+"SPECULAR"+SR+"NORMAL"); llSay(channel,texture+SR+(string)link+SR+(string)face+SR+normal+SR+spec+SR+(string)glossiness+SR+(string)environment); } } -------------------------------------------------------------------------------------------------------------------------------------------- Now, I know I place the Number of a link or face here: integer link = 1; integer face = 2; which allowes me to adress ONE specific Link or Face. But I would like to adress more then just one face or link, like: integer link = 1 and 2 and 3; Is there a way to do it within this script?
×
×
  • Create New...