Jump to content

Perg0

Resident
  • Content Count

    31
  • Joined

  • Last visited

Everything posted by Perg0

  1. Hi again Second life Fourms. It's a long while since i was on the game and i have been working on alot of scripts. Recently i re-watched the HBO chernobyl serie and got inspired to try and build a Powerplant in second life with a few friends. Tho i strongly recall that we all had 1 issue with the game. The prim count- Our main problem with Second life is that we would like a big building with alot of small rooms but it would take up 200+ prims. Dose anyone know of a program, designer and/or place you can make/buy/get buildings with a low-prim count? Thanks to everyone in advance and hope you have a wonderfull day! :3 (also sorry for bad grammar-)
  2. This is what the script looks like now- integer listen_handle; integer channel = 0; default { attach(key id) { if (id) { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); listen_handle = llListen(channel, "", NULL_KEY, ""); } } run_time_permissions( integer perm ) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llOwnerSay("Permissions has been granted automatically."); } } listen(integer channel, string name, key id, string message) { if (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "Bot sit") { llSay(0, "Roger, Roger"); llStartAnimation("sit_ground"); } else if (llToLower(message) == "Bot stand") { llSay(0, "Roger, Roger"); llStopAnimation("sit_ground"); llStartAnimation("stand"); } } } }
  3. Wow that worked (both of you) THANSK! now when i read it i can see the falut *face palm*. Guess i don't have such a good grip after all ^^' Thanks again tho! you guys are the best
  4. So it kinda works! I can now make the bot sit by using the following: (it's croped) listen(integer channel, string name, key id, string message) { if ( llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "bot sit") { llSay(0, "roger, roger."); llStopAnimation(""); llStartAnimation("sit_ground"); } if (llToLower(message) == "bot stand") { llSay(0, "roger, roger."); llStopAnimation(""); llStartAnimation("stand"); llResetAnimationOverride(""); } } } As you can see i have been having issus trying to make the bot stand again... the llstopanimation and llresteanimationoverride dose not seam to make it stand back up. Any idears on how to make her stand? (i have also tried running the animation standup and Stand_1 ect...) I will go and read up on the WIKI and post if i find a solution- Thanks for all the help again, You guys are the best! ^w^
  5. Oh thanks! I will give it a quick try and see if i can make it work- I will also try to post the finished code here with a few edits so that ppl might be able to use it later as refmaterial- (or maybe it should be in "LSL lib?")
  6. I have been looking around but could not find the "sit_ground_constrained" in my inventory- But maybe im looking the wrong place? ^^ also thanks for the help
  7. Thanks for that i will give it a try tho i'm not sure if i understand this correct- Are you saying i should create an object that i can attach to the bot which will make it sit or that i need to make an object it can sit on. incase it's an object for it to sit on, that is not what im looking for. I need a function that uses the "Sit here" function you normaly have when you right click on you avi.
  8. Hello again fourm- I have been working on my "bot" and was wondering if there is a LSL function or command to make an avatar sit on ground (Not on an object)? Here is the current code i'm working with (also thanks to Rolig Loon for making the original script this is based off from.) integer listen_handle; integer channel = 0; default { attach(key id) { if (id) { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); listen_handle = llListen(channel, "", NULL_KEY, ""); } } run_time_permissions( integer perm ) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llOwnerSay("Permissions has been granted automatically."); } } listen(integer channel, string name, key id, string message) { if ( llGetPermissions() & PERMISSION_TRIGGER_ANIMATION ) { if (llToLower(message) == "bot sit") { llSay(0, "roger that."); llSitTarget(<0,0,0>, ZERO_ROTATION); //This is the function i want to make it sit } } } } Thanks again you guys, I have gotten a real bite into this LSL stuff after a while! ~Perg0
  9. Alright thanks! ^^ I must have added payment to the account at a point by accident then-
  10. Yes that is correct! But will that not also remove the ability to "buy L$" from my main ("perg0" this one)
  11. I have been working on some really fun project in LSL lately and wanted to give the AGENT and "BOT" functions a try too! You see i have an alt account that i would like to use... Tho i do not like the fact that i can use the "BUY $L" function on that account- Is there a way i can block that account incase of my code or anything else going totaly wrong- Don't wanna end up sleeping in a box on the street during this corona stuff. ^^' Thanks for your help and sorry for the bad grammar. I hope you all have a great day. ~Perg0
  12. Thanks for the help! ^^ I have gotten a better understanding of the code now and i even tried your code- unfortunately it seams to only go one direction. None the less i now have an idear of which part of the code dose what. Thanks again! ❤️
  13. Thanks! ^^ i will have a look if i can't make the other work. I'm taking a break from scripting all day so i will have a look later ^^ Thanks again everyone :3 this is the sort of community i was missing back in the day when i started with other scripts.
  14. Well thanks! i will give "llTakeControls" a try then! ^^ I'm happy for your help.
  15. This may be considert an "idiotic question" but i'm really curious- I'm working on a script that should make you able to sit on a poseball that is linked to other objects and move all of them, like if you were walking around "normaly". Do you NEED to use llVehicle functions, or can you use make it so the object can be attached to your avi and the object will still have functional poseballs? I hope this makes sense and thanks again for the help! This LSL scripting has really gotten me hooked during the Covid 19 crisis. ~Perg0
  16. I have had a closer look on the code and now understand it better. Thanks again guy's you're the best! ❤️ ^w^
  17. WOW! Thanks so much for all the help- I didn't get any notif tho .w. so sorry for late respons- I figured it out on my own (with luck and wiki) here is the result i came up with think it's similar to @Xiija's version. Comm center: default { state_entry() { llWhisper(0, "O1 running!"); llListen(71, "", NULL_KEY, ""); } listen(integer channel, string name, key id, string message) { llWhisper(159, message); } } Radio (for 71) //https://lslwiki.digiworldz.com/lslwiki/wakka.php?wakka=llListen default { state_entry() { llListen(159,"O1","O1",""); } listen(integer channel, string name, key id, string message) { if (llToLower(message) == message) { llWhisper(0, message); } } } And then i just change the channels from 71 if it needs to be another comm Thanks again everyone it's truely amazing to be a part of this community! ^^ Hope you all have a fantastic day! ~Perg0
  18. I have already read and "passed" the Basic LSL Tutorial. Tho i still don't get it None the less i will try and re-read them and look online and maybe on youtube to see if i can find some more info. Thanks for the really quick respons! ^^
  19. Hello again dear forums! I have been working on a "comm" system for our sci-fi base, but have been unable to figur out a way to capture a normal chat message and then send it via "channel 159". I have gotten alot of help while learning code, but i'm have a hard time understanding certain part of it. Would anyone be willing/able to explain what the 4 values in "llListen" and "listen" do? I know that llListen is (Channel, the object name that it needs to listen too, something, something,) and have no clue how the () works on the "listen" function. Here is the code: default { state_entry() { llWhisper(0, "O1 running!"); llListen(0,llDetectedKey(0),llDetectedKey(0),""); } listen(integer channel, string name, key id, string message) { llWhisper(159, message); } } Thanks alot again and hope you are all doing good! ^^ ~Perg0
  20. Oh nvm- just read it and re-attached it. I't works now!
  21. Thanks! ^^ Tho it dosen't work. The animation "Butt" dosen't play (and it is in the same object "the slapper").
  22. Ah yes. I have both added "Butt" and my own UUID The problem is when a friend touches the object he runs the "Butt" animation. It's suppose to run on me insted. (it's a slapper) Thanks for the quick respons
  23. I have been working on making an animation trigger when you press an object. BUT! whenever someone presses the object the animation triggers on them... I might be stupid but i don't understand what in the code is "broken". "MY UUID" - is ofc my profile key just a placeholder for the fourm here. Thanks alot in advance! ^w^ The original script from: http://wiki.secondlife.com/wiki/LlStartAnimation default { touch_start(integer detected) { llRequestPermissions("MY UUID", PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("Butt"); llSetTimerEvent(1.0); } } timer() { llSetTimerEvent(0.0); llStopAnimation("Butt"); } } ############# Thanks for takeing the time to read and help! sorry for the bad english. ~Pergo
  24. Nvm it works now. There was just a delay for SL to confirm the new member in the groupe. Thanks again! ^w^
  25. Dosen't seam to work. It still says insufficient permission- But thanks for the idear
×
×
  • Create New...