Jump to content

ItHadToComeToThis

Resident
  • Posts

    956
  • Joined

  • Last visited

Everything posted by ItHadToComeToThis

  1. Okay firstly I played around with your method. And this is VERY rough around the edges and needs to be VASTLY improved. I will try to improve this a little more when I wake up and im not so tired, though if you can offer any thoughts I would gladly listen. @Quistess Alpha I am going to play around with your method tomorrow when I wake up and compare the two. I should point out the double tap section is from another script I wrote a long time ago, I haven't merged the ideas yet, just pasted it in to show the full set of controls I have so far. This is what I have so far from @Wulfie Reanimator idea. integer type; integer timeNow; float timeHold; integer holdBool=0; integer timeCheck(){ if((llGetUnixTime()-timeNow)>1){ timeNow=llGetUnixTime(); type=0; return 1; } return 0; } default{ state_entry(){ llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION|PERMISSION_TAKE_CONTROLS); timeNow=llGetUnixTime(); } run_time_permissions(integer x){ if(x&PERMISSION_TAKE_CONTROLS){ llTakeControls(CONTROL_FWD|CONTROL_BACK|CONTROL_RIGHT|CONTROL_LEFT|CONTROL_ROT_RIGHT|CONTROL_ROT_LEFT|CONTROL_UP|CONTROL_DOWN|CONTROL_LBUTTON|CONTROL_ML_LBUTTON,TRUE,TRUE); } } control(key id, integer level, integer edge){ integer start=level&edge; //Press integer end=~level&edge; //Unpress integer held=level&~edge; //Held //integer untouched=~(level|edge); //==========Control Set 1 - While holding C or PAGE DOWN========== if(held&CONTROL_DOWN){ //Holding the keys down if(held&CONTROL_FWD||held&CONTROL_BACK||held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||held&(CONTROL_LEFT|CONTROL_ROT_LEFT)||held&CONTROL_UP){ if(!holdBool){ timeHold=llGetTime(); holdBool=1; } if(llGetTime()-timeHold>=0.25){ if(held&CONTROL_FWD){ llOwnerSay("PG_DOWN Hold Action 1"); }else if(held&CONTROL_BACK){ llOwnerSay("PG_DOWN Hold Action 2"); }else if(held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("PG_DOWN Hold Action 3"); }else if(held&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("PG_DOWN Hold Action 4"); }else if(held&CONTROL_UP){ llOwnerSay("HPG_DOWN old Action 5"); } } } //Or tapping (pressing) the keys if(end&CONTROL_FWD||end&CONTROL_BACK||end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||end&(CONTROL_LEFT|CONTROL_ROT_LEFT)||end&CONTROL_UP){ if(llGetTime()-timeHold<0.25){ if(end&CONTROL_FWD){ llOwnerSay("PG_DOWN Press Action 1"); }else if(end&CONTROL_BACK){ llOwnerSay("PG_DOWN Press Action 2"); }else if(end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("PG_DOWN Press Action 3"); }else if(end&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("PG_DOWN Press Action 4"); }else if(end&CONTROL_UP){ llOwnerSay("PG_DOWN Press Action 5"); } } holdBool=0; } }else{ //==========Control Set 2 - While holding left mouse button========== if(held&CONTROL_LBUTTON){ //Holding the keys down if(held&CONTROL_FWD||held&CONTROL_BACK||held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||held&(CONTROL_LEFT|CONTROL_ROT_LEFT)||held&CONTROL_UP){ if(!holdBool){ timeHold=llGetTime(); holdBool=1; } if(llGetTime()-timeHold>=0.25){ if(held&CONTROL_FWD){ llOwnerSay("LEFT_MOUSE Hold Action 1"); }else if(held&CONTROL_BACK){ llOwnerSay("LEFT_MOUSE Hold Action 2"); }else if(held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("LEFT_MOUSE Hold Action 3"); }else if(held&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("LEFT_MOUSE Hold Action 4"); }else if(held&CONTROL_UP){ llOwnerSay("LEFT_MOUSE Hold Action 5"); } } } //Or tapping (pressing) the keys if(end&CONTROL_FWD||end&CONTROL_BACK||end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||end&(CONTROL_LEFT|CONTROL_ROT_LEFT)||end&CONTROL_UP){ if(llGetTime()-timeHold<0.25){ if(end&CONTROL_FWD){ llOwnerSay("LEFT_MOUSE Press Action 1"); }else if(end&CONTROL_BACK){ llOwnerSay("LEFT_MOUSE Press Action 2"); }else if(end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("LEFT_MOUSE Press Action 3"); }else if(end&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("LEFT_MOUSE Press Action 4"); }else if(end&CONTROL_UP){ llOwnerSay("LEFT_MOUSE Press Action 5"); } } holdBool=0; } }else{ //==========Control Set 3 - While holding E or PAGE UP========== if(held&CONTROL_UP){ //Holding the keys down if(held&CONTROL_FWD||held&CONTROL_BACK||held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||held&(CONTROL_LEFT|CONTROL_ROT_LEFT)||held&CONTROL_UP){ if(!holdBool){ timeHold=llGetTime(); holdBool=1; } if(llGetTime()-timeHold>=0.25){ if(held&CONTROL_FWD){ llOwnerSay("PAGE UP Hold Action 1"); }else if(held&CONTROL_BACK){ llOwnerSay("PAGE UP Hold Action 2"); }else if(held&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("PAGE UP Hold Action 3"); }else if(held&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("PAGE UP Hold Action 4"); }else if(held&CONTROL_UP){ llOwnerSay("PAGE UP Hold Action 5"); } } } //Or tapping (pressing) the keys if(end&CONTROL_FWD||end&CONTROL_BACK||end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)||end&(CONTROL_LEFT|CONTROL_ROT_LEFT)||end&CONTROL_UP){ if(llGetTime()-timeHold<0.25){ if(end&CONTROL_FWD){ llOwnerSay("PAGE UP Press Action 1"); }else if(end&CONTROL_BACK){ llOwnerSay("PAGE UP Press Action 2"); }else if(end&(CONTROL_RIGHT|CONTROL_ROT_RIGHT)){ llOwnerSay("PAGE UP Press Action 3"); }else if(end&(CONTROL_LEFT|CONTROL_ROT_LEFT)){ llOwnerSay("PAGE UP Press Action 4"); }else if(end&CONTROL_UP){ llOwnerSay("PAGE UP Press Action 5"); } } holdBool=0; } } } } //==========Control Set 4 - Double Tap========== if(timeCheck()|start){ type+=start; //Fwd if((start&CONTROL_FWD)&&type==2){ llOwnerSay("Double Tap 1"); } //Back if((start&CONTROL_BACK)&&type==4){ llOwnerSay("Double Tap 2"); } //Left if((start&(CONTROL_LEFT|CONTROL_ROT_LEFT))&&type==512){ llOwnerSay("Double Tap 3"); } //Right if((start&(CONTROL_RIGHT|CONTROL_ROT_RIGHT))&&type==1024){ llOwnerSay("Double Tap 4"); } //E or PAGE UP if((start&CONTROL_UP)&&type==32){ llOwnerSay("Double Tap 5"); } //C or PAGE DOWN if((start&CONTROL_DOWN)&&type==64){ llOwnerSay("Double Tap 6"); } } //Reset holdBool if(end&CONTROL_DOWN||end&CONTROL_LBUTTON||end&CONTROL_UP){ holdBool=0; } } }
  2. I really should be more informed on bitwise but here we are. When it comes to controls, we can press, hold and release. Is there a way to do a different action depending on whether you press, hold or release, on the same key? I don't mean in order, I mean if I chose to hold the key rather than press it, it would do a different action than if I was to just press it. I have tried such things and many bitwise variations of if((~press&FORWARD)&(hold&FORWARD), playing around with the & | && ~ ! etc etc but I can't seem to figure out what the right way to write it is. I am trying to see just how many actions I can get out of the limited controls LL allows us to take in a script. If I can do the following..... Hold PAGE DOWN and press WASDEC for six actions and Hold PAGE DOWN and hold WASDEC for six different actions That would be neat. To further this, would it be possible to add to this, hold PAGE DOWN and release WASDEC for six further actions that aren't pressing or holding, or am I asking for too much here? I don't particularly want to use timers if I can help it.
  3. Granted but the height starts at 14 meters I wish I had hybrid of a cat and a penguin as a pet, a Catguin if you will.
  4. Granted but you have a withdrawal limit of 1 dollar a day I wish I was immortal
  5. I know we have forum etiquette but im resurrecting this game as I feel we are missing a lighthearted forum game. As a reminder and for those who have never played before. One person makes a wish, the next corrupts it and then makes a wish of their own. Rinse, wash, repeat. So, on that note... I wish my mind was infinite in size so I could absorb all of the knowledge past, present and future, in the universe.
  6. @Rider Linden Would it be possible to create a way to only accept damage from certain creators? Iv been wondering about the possibility of creating a closed combat system using linden damage and so far there isn't a way to do it. But it would be neat given that someone could use linden damage on their own sim to create a closed system that uses only weapons for that system. It might be a lot faster than sending, receiving and processing damage messages hud to hud? It would also be neat if you could retrieve your health data via a script, should someone want to create a on HUD health display bar.
  7. Sadly I can't find it....so I asked chat GPT to re create it "In the beginning, Phillip Rosendale created the virtual realm of Second Life. This digital realm was initially void and without form, much like an empty canvas, awaiting the creative touch of its residents. The Spirit of Phillip Rosendale hovered over the metaverse, ready to bring life to this digital canvas. And then Phillip Rosendale said, "Let there be interactivity and immersive experiences." With the power of scripting, objects in Second Life came to life, responding to the commands and desires of its residents. Doors opened, vehicles moved, and virtual pets played, all thanks to the magic of LSL scripting. Phillip Rosendale saw that this interactivity was good. Phillip Rosendale declared the land of Second Life to be a canvas for the builders and creators. They used the tools at their disposal to shape and mold the world, just as artists use brushes to paint on a canvas. With the power of prims, sculpties, and mesh, they brought forth beautiful and intricate structures. And Phillip Rosendale said, "Let there be textures to adorn the creations." The texturing tools in Second Life allowed residents to apply intricate designs and realistic textures to their creations. Buildings and objects became not just functional but visually stunning, from the lush greenery of a forest to the gleaming steel of a skyscraper."
  8. There was a post somewhere on some forum that made me laugh. It started with.. "In the beginning, there was Phill"
  9. If they can't How can they Not knocking the idea, just wondering about the logic
  10. I like to think they skip around the regions, arm in arm, painting each others muscles and bro scaping each others beards before settling in to a three course meal of steak....but then....im probably wrong.
  11. To add onto this, if you search up "College of Scripting" in world. You will find a parcel with several levels of tutorial boards that take you through nearly every aspect of scripting and the parcel also allows rez so you can learn on site.
  12. I have had a small amount of luck with getting some things accepted. https://jira.secondlife.com/browse/BUG-229045 https://jira.secondlife.com/browse/BUG-234447 Granted one of those had already been submitted by a different user, which I didn't realise, but I consider my submission a win as the more people requesting the better. But then, accepted doesn't mean actioned, such in the case of this one that I submitted on my main account in 2019. https://jira.secondlife.com/browse/BUG-226178 And the refusal of what I still think is a great idea or at least a variation of, that works better than how I described it could work. https://jira.secondlife.com/browse/BUG-202707
  13. LL will never release true global experiences, even though they promised
  14. The reason I chose RLV over Experience is that experiences requires land, RLV doesn't. I can't more easily prompt people to activate RLV for effect than I can limit my product to only being used on one parcel. I really do wish that LL had gone forward with their notion of global experiences, I know that we are getting KPV storage globally at some point soon™ , but there needs to be more. I was altering those two settings but it wasn't changing the way I wanted it to. Never mind, I will keep trying.
  15. LL will never get round to allowing us to speed up or slow down animations, via a script, even though they promised.
  16. Hello, So, after much messing around I have decided to come to you fine folks for help. In the attached image, I have managed to get an environment I am happy with in personal lightning, but I am struggling to replicate it using RLV functions. According to my experiments in personal lightning, all I should need to do at this point is alter the suns glow focus, however, altering that value does pretty much nothing in the script. Anyone got any experience with this and can maybe help? default{ state_entry(){ llOwnerSay("@setenv_ambientr:1.0=force"); llOwnerSay("@setenv_hazehorizon:0.5=force"); llOwnerSay("@setenv_hazedensity:0.2=force"); llOwnerSay("@setenv_cloudcoverage:0.36=force"); llOwnerSay("@setenv_cloudscale:0.79=force"); llOwnerSay("@setenv_scenegamma:0.1=force"); llOwnerSay("@setenv_sunscale:1.0=force"); llOwnerSay("@setenv_sunglowfocus:0.75=force"); llOwnerSay("@setenv_sunglowsize:0.75=force"); llOwnerSay("@setenv_sunazim:50=force"); llOwnerSay("@setenv_sunelev:PI=force"); llOwnerSay("@setenv_sunmooncolor:1.0;0.0;0.0=force"); } }
  17. Nupe, us goths will take Stoker also. Case in point: Bram Stoker
  18. Thanks! Every time I have tried to get camera params to work its never worked properly for me. I appreciate you showing me this.
  19. Will this update include being able to damage for a negative value to heal team mates for example? Unless that already exists and I missed the update?
  20. So, I just can not seem to get camera params and positions to work correctly in LSL, idk why, so raising this to the forums. I was thinking about side on fighting games like Tekken, Soul Calibre etc and I wanted to try and re create the side view camera. How do I get my camera to face me perfectly from the left side, mid body height, at a distance of 10m away, positioned in the central point between myself and another avatar? Basically so the two avatars are central on the screen, from the left side?
  21. Some more normal ones would be good. Themed names are fun but some of the results have been questionable at best.
  22. The last thing in the world I would call the Abrahamic mythology is "Niche". There's plenty of church groups and religious groups in SL, maybe try searching for and speaking to some of those?
  23. Must be to do with that privacy policy change we all protested about months ago (Linden Gate), the one that ended up with a "camera" in every sim.
  24. How is everyone feeling now LL has moved to a advertisement based financial model, sims are free but we have to deal with 30 second ads every time we want to tp somewhere, thoughts?
×
×
  • Create New...