Jump to content

Syngravez

Resident
  • Posts

    32
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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!
×
×
  • Create New...