Jump to content

Galatheus

Resident
  • Content Count

    25
  • Joined

  • Last visited

Everything posted by Galatheus

  1. Well, I have a furniture with an option to change the texture. The script uses a listen function as it has a remote script and a receive script. The problem is when I rez multiple copies of the same furniture, and I try to change the texture of one of them it changes all the copies as well because they all have the same channel in the script. I only want the object i touched to change and not all of them. Receive script looks like this: default { state_entry() { llListen(123, "", NULL_KEY, ""); } listen( integer channel, string name, key id, string message ) { if (llGetOwnerKey(id) != llGetOwner()) { return; } if (message == "tex1") { llSetTexture("UUID",1); } if (message == "tex1") { llSetTexture("UUID",2); } if (message == "tex1") { llSetTexture("UUID",3); } if (message == "tex1") { llSetTexture("UUID",4); } if (message == "tex2") { llSetTexture("UUID",1); } if (message == "tex2") { llSetTexture("UUID",2); } if (message == "tex2") { llSetTexture("UUID",3); } if (message == "tex2") { llSetTexture("UUID",4); } } } Button script looks like this integer menu_handler; integer menu_channel; integer channel_control = 123; menu(key user,string title,list buttons) { menu_channel = (integer)(llFrand(99999.0) * -1); menu_handler = llListen(menu_channel,"","",""); llDialog(user,title,buttons,menu_channel); llSetTimerEvent(5.0); } default { state_entry() { llSetTouchText("Remote!"); } touch_start(integer t) { menu(llDetectedKey(0),"Choose your label",["Brown","White"]); } timer() { llSetTimerEvent(0.0); llListenRemove(menu_handler); } listen(integer channel,string name,key id,string message) { if (channel == menu_channel) { if(message == "Brown") { llWhisper(channel_control,"tex1"); } if(message == "White") { llWhisper(channel_control,"tex2"); } // llSleep(0.50); // llSetColor(<1,1,1>, ALL_SIDES); } } }
  2. Thanks for all the response, I guess all I can do now is to tell users to turn off their AO first. Not the result I'm looking for. But that said, I saw some functions in the LSL Portal such as llSetAnimationOverride. Can I somehow use this instead to override whatever animation is currently playing on an avatar?
  3. Thank you for your answers, it helped a lot. I am now figuring out little by little certain codes and how to properly use them. Also thanks to the LSL Portal, with all you guys' help I'm able to make the script work. I still have a long way to go to completely understand LSL codes but yeah thank you!
  4. Hi again script experts. I have an animation with a priority that seems below (on upload) most AOs on sl. Problem is, this is the only animation I found that I need for this project. I'm stuck. When I activate the animation with the script it doesn't play over my AO and I have tried it with different ones. Is there a way to set this anim's priority to 4 with scripting?
  5. thank you for the response. I'm really new to scripting. I started a week ago. So please cut me some slack if my questions are gonna be basic. For long term of course I want to learn to script on my own from scratch. And for this particular script I can't seem to lead myself to the right direction. Which tutorials to watch for this specific topic, and what not. So if you guys know the best tutorials I would appreciate their links. Now, I get syntax errors whenever I try to solve this. Of course I know this isn't the full script. I just don't know how to set the timer, run time and state entry events to make this touch event function work. As for the short term solution, I don't exactly know what to write to make the strCurrentAnimation a global string and what purpose. Is it to set what animations are gonna be used? default { state_entry() { llOwnerSay( "Your HUD is ready" ); llOwnerSay( "Visit.." ); } touch_start(integer detected) { llTriggerSound(llGetInventoryName(INVENTORY_SOUND,0), 1); llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("2"); llSetTimerEvent(5.0); } } timer() { llSetTimerEvent(0.0); llStopAnimation("2"); } } this is what I have so far.
  6. I can't quite figure out how to do this simple script, where I put multiple animations in a prim/button and the script will play them randomly when the button is touched. Anyone?
  7. I finally figured it out guys. Thanks for all your help and the sample scripts provided. Bless you all
  8. I'm new with LSL scripting so I usually rely on existing scripts on MP. I need just a simple one, I click a button on a hud, it triggers particles inside a remote object, that's it. No idea how this can be done. A working script would be appreciated so I can study the codes too.
  9. You'd think there is, but why can't I find a script on MP that animates our avi on touch of a button. I want to make a hud that triggers the animation inside another object, that's it no menu, just a HUD button that triggers the animation inside a wearable object, anyone?
  10. Looking for a product photographer for sporty clothing style ad, much like Nike or the likes. To everyone interested, respond with your flickr/portfolio/website or contact iiianii in-world
  11. In detail, I'm trying to make my bar counter serve out a drink to anyone sitting on the stool. And also the animation has attachment props for the bartender so I want the props to disappear after the drink is served. Any idea about this?
  12. So I baked a shadow texture (the one you put under your objects), it looks good so far I don't even need to edit the transparency in-world, everything is perfect except for one issue. The edges are showing bc, I guess the plane that I use to bake it on the software is too small even though it's pretty much double the size of the actual object. I edit it on PS but it ends up looking horrible. Any tips from the Pros?
  13. oh you mean use the AO map in the material or turn on Ambient occlusion in the settings?
  14. Thanks for the response I do like AO it's just that they don't blend with my bakes sometimes, and with that I skip it but the problem is because I used AO in my previous stuff and then I look at them both, they look like they're not made by one person 😕
  15. Sometimes I feel like they look worse sometimes they look better. Idk what to do, should I still add a layer of ambient occlusion on top of my baked texture or not? What are you suggestions?
  16. oh.. oh.. oh thank youuuu didn't think about that thats a great tip!
  17. oh yeah, that's it that did the job lol thank you so much now the problem with the new UV map is that the texture on 512x512 is so bad
  18. I need help with this, I've never seen this problem before. I tried everything, changing file sizes, fixed UV mapping, modifying the mesh itself and LOD nothing worked. I zoom out and this happens (left) any advice? I'm stuck and desperate for answers ;D
  19. I'm new to avastar and I use blender. I messed up the weight on one part of my model and now I'm stuck, long story short I ended up removing all the weight on that bone. My question is pretty obvious, how do I copy the original weight of that bone back to my model, but only that bone while keeping the rest of the weights untouched. I'm desperate for answers, I don't wanna have to redo the whole process. Please help me.
  20. Yes. Transparent prims that I made in-world so I don't know why it's doing that all of a sudden.
  21. So, I have two things I'm trying to link together a mesh (9LI) and the physics(8LI). When I linked them together, the combined land impact went up to 162. What am I doing wrong? Is this a glitch?
×
×
  • Create New...