Jump to content

Syngravez

Resident
  • Posts

    32
  • Joined

  • Last visited

Everything posted by Syngravez

  1. Oh you're totally awesome! thank you very much, give's me more insight of how to save prims colours and such now. Yet it will help everyone else out if encountering the same problem.
  2. Would you please give me a example of looping those in a list and restoring ?, as i'm truly stuck on this. Well to be honest i haven't really worked with faces and colour saving at all so it's all new to me. P.S - I also tried your method and i wouldn't know to return the value of the list and reset the different colour on the sides.
  3. Hello Forum!, Hi guys i'm back yet again! , a came across something which anyone one of you could possibly help me on with? Anywho i was trying to help a friend out with a Typer and then"Saving" the prim's colour on all faces! , but the thing is that it has multiple faces which all the faces on that one prime are being "Saved". There are mutiple of face as this is a mesh object i'm trying script has two sides as it is a Font. The faces(In one mesh): 0, 1, 2, 3 (The middle part of the Font) 4, 5 (The sides of the Font) Anyway to which i'm stuck on, I've managed to get the colour saver to save the entire prim's colour but whenever i set the sides faces to a different colour and then add my script in it doesn't seem to save the sides but only the entire prim. The functionality of this script is to pretty much put this in anything saving all the faces of that one prim and then when changed back to normal colour as it was before. Heres my work so far: vector SavedColour; float GlowSize = 0.10; SaveEverything() { SavedColour = llGetColor(0); } SetSavedThings() { llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES); llSetLinkPrimitiveParamsFast(LINK_SET, [18,-1,SavedColour,1]); llSetLinkPrimitiveParamsFast(LINK_SET, [25,-1,GlowSize]); } BackToNorm() { llSetLinkPrimitiveParamsFast(LINK_SET, [18,-1,SavedColour,1]); llSetLinkPrimitiveParamsFast(LINK_SET, [25,-1,0]); llSetLinkAlpha(LINK_SET,0.0,ALL_SIDES); } default { state_entry() { SaveEverything(); state SetThis; // llSay(0, "state_entry can **bleep** off for the moment!"); } attach(key attached) { if(attached == llGetOwner()) { llResetScript(); //llSetLinkAlpha(LINK_SET,0.0,ALL_SIDES); }}} /////////////////////[Where the fun beings]//////////////////// state SetThis { state_entry() { llSetTimerEvent(0.0000001); } attach(key attached) { if(attached == llGetOwner()) { llResetScript(); }} timer() { if (llGetAgentInfo(llGetOwner()) & AGENT_TYPING) { SetSavedThings(); } else { BackToNorm(); } } }If anyone can help me out me with this problem i would be truly greatful. Yet it will be helpful to me and the forum if anyone else has encountered this problem before. Thanks in advanaced =]
  4. This is deffinitly helping, well making it out! Is there anyway of not having the dialog in there ? but only touch only that goes through that list and then send the llMessageLink out to the "Receiver" ? I'll set an example of what i'm using currently: Link 3 objects together and set 1 prim to the left and one to the right and the main one in the middle. Be sure to set the objects name to the prim touches. MainPrim: _Main_ LeftPrim: _LeftPage_ Right: _RightPage_ Main Script key owner;string data;string info;integer i;integer LH;integer Core;string DoStuff(string name){ integer num = llDetectedLinkNumber(0);string comp = llGetLinkName(num);if(comp == "_Main_"){llSay(0, "This is the main");llMessageLinked(LINK_SET,123,"♠ExampleSelected♠",llGetOwner());}if(comp == "_LeftPage_"){llSay(0, "This is the Left Page");llMessageLinked(LINK_SET,123,"♠LeftSelected♠",llGetOwner());}if(comp == "_RightPage_"){llSay(0, "This is the Right Page");llMessageLinked(LINK_SET,123,"♠RightSelected♠",llGetOwner());}return data;}default{state_entry(){owner = llGetOwner();Core = llRound(llFrand(10000000)) + 10;LH = llListen(Core, "",owner,"");llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);llSetTimerEvent(.01);}run_time_permissions(integer perms){llTakeControls(CONTROL_FWD,TRUE,TRUE);}attach(key attached){if(attached == llGetOwner()){llResetScript();}}changed(integer ch){if(ch & CHANGED_INVENTORY){llResetScript();}}touch_start(integer b){if(llDetectedKey(0)){integer num = llDetectedLinkNumber(0);string comp = llGetLinkName(num);info = llGetLinkName(llDetectedLinkNumber(i)) +DoStuff(info);}}timer(){if(llGetFreeMemory() < 100){llInstantMessage(llGetOwner(), "/me is running low on available memory, script is resetting in 5 seconds.");llSleep(5);llResetScript();}}} This is what i'm having trouble with i would need it to go through that list of "Material1" , "Material2", "Material3" if the left or right side is clicked/touched. But if the the left or right side is click i would need it to check if "Material1" selected then do the function from there.
  5. I sent you a private message, It's rather complex to explain on here.
  6. It's doesn't work that way to be fair , doesn't work via dialog only through llLinked_Message on random channel. Works like a charm but this is what i need most to complete it as i can add as many "Material Pages" as i need , it's a very complex hud as it is but also scripted it to be "no lag" respondable.
  7. [in Reply to Xiija] Well what i mean is i need to send a "Message link" to these for example: llMessageLinked(LINK_SET,123, "Material1", llGetOwner()); Instead of typing i would need to some how make them communicate with each other. This is a for a HUD that i've made/scripted and this would for the important part of it. [in Reply to Rolig Loon] That's the problem i can't have anyone type or be listening to this as it would be in a HUD so only i can llFrand the channel that it's on.
  8. Thank you guys! , been trying to figure this out for a while now. Is there anyway of sending a llSay ? to activate the listen instead of typing it ?
  9. Hey forum!, Was having a little go at trying to listen through a List array to get an result and stubbled upon a confusion and kinda met a dead end. So I wanted to seek advice on how to make a object listen through a list array would be grately helpful! For example: This is the list was to be listened to and give a function. list Testing =["Material1","Material2","Material3"]: So basically if I gave the object a listener and tried to listen to those titles it will only just output those titles. The reason why I'm trying to listen to these is that in trying to script up an material page setup, basically has 3 pages so 3 functions but when one of those "List titles" are selected via touch it will give out a function. So far bee at this for a couple of days now and haven't gotten pretty far and regards to my rusty lsl scripting language. If anyone can hell me.out on this one that would be great and would help others who need this type of work as well! Thanks, Syn
  10. Hello forum!, Wanted to know if there is any "Case Statements" in lsl scripting as i had an idea on changing something instead of using the If , Else If, Toogles and etc. If any one has experiece in lsl could you please point me in the right direction. Just for example: Switch (variable) case condition 1: Do something; break; case condition 2: Do something; default: Do something; Thanks in advanced!
  11. Ah thank you very much! , i knew i was thinking of thing wrong just didn't know how to work it!
  12. Hello forum! I was wondering if anyone knew how to get the current sims name and if false it will say for example: This is the correct sim or whatever. If anyone can help me on this it would be most gratful. Thanks in advanced!
  13. Thanks for the reply! Surely there is a simple way of getting the lsl script to communitcate to a php file at the host and then get it to write a document with it's UUID right ?
  14. Hello forum! As i had worked on my product server from the previous thread i posted which few people helped kindly out on i would like to know how would i be able to get my (Server)Prim to write it's object UUID key on to a webhost .txt doc and get the (Client)Prim to read it and then can retrieve the updated items. I've searched around a little bit and nothing really that helps me to script so. If anyone can help me out on this it would be very helpful! P.S Thanks in advanced!
  15. Brilliant , thanks yet again! , i wil try and figure out how to do this via different sim!
  16. Hmm , i'm not to sure how it's gonna work through that because i'm a little bit rusty with LSL at the moment. How for example would i make this work via different sim through HTTP? Like maybe get the server UUID to send to the HTTP and get it to write an .txt document with the key. Then get the client to read it from there ?
  17. I could do , but i like the method of getting the prim to get the servers key then setting it to clients desc and reads it from there!
  18. Why thank you very much Rolig! Just that i'm trying to get the other prim(client) to get the other prim(server) to get the UUID so i don't have to keep inputting a new key everytime i rez the product server! P.S: I have solved this with your help Rolig , thank you yet again! but for who wanted to know how this works. Sender: integer rcv = -32455;default{state_entry(){string GETUUID;GETUUID = (string)llGetKey();llSetObjectDesc(GETUUID); }touch_start(integer _det) {llRegionSay(rcv,"Test");}} Reciever: integer rcv = -32455;ReadIt(){string GetKeyNow; GetKeyNow = llGetObjectDesc();llSay(0, "The sender's UUID is " +GetKeyNow); }default {state_entry(){llListen(rcv,"","","");}listen(integer _src, string _name, key _id, string _msg) {if(_msg == "Test"){llSay(0, "Currently setting the servers UUID in the current prim's description!");ReadIt();llSleep(3);llSetObjectDesc(_id);llSay(0, "Done!");}}}
  19. Hello forums! I need help regarding my script , i need help to get the current prim's UUID to send to another prim object and get it to say the others UUID out in chat. So far i have this at the moment which probably has no revalence to what i am requesting but it should get what I'm getting at. Sender: integer rcv = -32455; default { state_entry() { string GETUUID ; GETUUID = (string)llGetKey(); llSetObjectDesc(GETUUID ); } touch_start(integer _det) { llRegionSay(rcv,"Test"); }} Reciever: integer rcv = -32455; default { state_entry() { llListen(rcv,"","",""); } listen(integer _src, string _name, key _id, string _msg) { if(_msg == "Test") { llSay(0, "I am listening don't worry!"); } }} If this can be done please help out , it would be much appericated! Thanks in adavanced!
  20. I would just need to set the texture or materials or whatever then join it to a another part then re-create another UV Unwrap then bake it or whatever and that should fix the problem right ?
  21. Hullo people! , i have a slight problem which i'm quite annoyed at and i can't find a way of fixing this. I've made some sunglasses in Blender 2.6x which is in parts. Now i've created Materials & UVmap texture and such on. I've imported an default MaleAvatar.obj so i could scale down the size of the glasses. to correct size to the Avatar. So what i do is select the part then go to Object> Apply > Roation & Scale , then i export the selected part as an .dae with Collada. I import the model in world and it changed it size to 1.0x so it's not the correct size as i wanted it to be. When it's imported as the size 1.0x in world it's perfect as it's in blender but obviously an different size to what i have in Blender, when i scale it down smaller it loses it's detail ? like for example it stretches outwards and does not look right at all , and it seems to get bolder so it just looks horrible. I've tried different ways of making the prim smaller whilst in the Uploading Model options i tried using the scaler to small , yet but some how that scaled it to proper size but it's doing that weird stretch thing again. Does anyone know how to fix this little problem at all? Thanks!! Syngraves P.S: If anyone needs to see Images for this problem i will add them in.
  22. The only way i can think of helping you is that maybe by 1-2m away from the door which is sensored and when it's activated it could send a RegionSay to open another door ?
  23. @Rolig Basically im just looking for a way of going through a texture list on 10 prims ,because i need to go through pages for materials and such. Im soory if im not completely manking any sense of this but its a hud with complicated things ha. @Innula Zenovka Yea i was only getting that bit to work. Its just an example. But thanks for the other workings. @Miranda Umino Ive been workin on this for a while now and i've tried to work it out but obviously didnt make good work for it. Im not lazy when it comes to scripting but when im struggling with something i kindly get help for it. But its a pointless reply if you where going to say that.
  24. Yea i could just done it simpler by via llDetectedLinkNumber(0) then llSet.. to link_set or 1 but it was to get it working. But Rolig is there anychance of knowing a way of making entire list of texture uuid and make 10 other prims load the list of textures on them by selecting an forward and back prim not a menu. Like for example 10 prims come up to chose from but it has pages to choose back and forth with ?
×
×
  • Create New...