Jump to content

Xiija

Resident
  • Posts

    912
  • Joined

  • Last visited

Everything posted by Xiija

  1. could yuo use something like this? llSetTimerEvent(5); timer() llSetScriptState("somescript",FALSE); // set the text to "" llSetScriptState("somescript",TRUE);
  2. mebbe they cant both have a touch?..dunno try this.. http://wiki.secondlife.com/wiki/LlMessageLinked
  3. good idea, ty was jus weird cause it happens only when the power button is clicked when minimized the only thing in the power event is change texture(not on the mesh face) & hover text (not on mesh)tho.... weird
  4. HI :) so... i made a test AO-Dance HUD with 8 face mesh controls. i use rotation to hide the hud when minimized. the mesh buttons show fine until i added a prim background to it. now, with the prim behind the mesh buttons, when i click the power (or mesh buttons) when the HUD is minimized, the 8 face mesh only partially shows. if i right click the HUD ( or click the power or mesh buttons), it magically appears. I've tried resizing the mesh fatter, making sure it isn't touching any other prims, making the whole thing convex, setting the mesh link alpha to 0 and back to 1, in power, minimize, and timer....arg mebbe it's just a mesh thing? ... anyone ever use 8 face mesh with a prim behind it? this only happened when i added a background prim behind the mesh buttons, withou that, it works fine?
  5. It could be done easily.....just map out what you want to happen, then script it? ************ the new person enters the sim, ( OBJ uses llGetAgentList on a timer and compares to a list) the OBJ gives them a Dialog window, and starts a boot timer. the dialog window would say something like.... ____________________________________ ** Closing this window will auto-boot you in 2 minutes ** "Please click "accept" to get the rules notecard, and read it , if you agree to the rules, use the sim password on the notecard, Auto-boot timer is now running ...thank you" ______________________________________ the OBJ then listens for the password from the new persosn, and boots them if no password is given in 2 mins. ( llListen event needed) if Accept is clicked - use llGiveInventory to give NC if pasword is given, turn off boot timer and add person to accepted list. something like that?
  6. you are close try this... you may need to mess with the SLPPF settings for the light.. you need to leave the timer on all the time... the light settings are <1.0, 1.0, 1.0>, 1.0, 20.0, 1.0 <1.0, 1.0, 1.0> is the color WHITE, 1.0, 20.0, 1.0 is ... intensity, radius, and falloff integer status;default{ state_entry() { llSetTimerEvent(1); // timer fires every second } timer() { status = llGetAgentInfo( llGetOwner() ); if( status & AGENT_FLYING) // if you are flying { llSetLinkAlpha(LINK_THIS, 1.0, ALL_SIDES); // set alpha to 1.0 ( visible) llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_POINT_LIGHT ,TRUE, <1.0, 1.0, 1.0>, 1.0, 20.0, 1.0]); // TRUE = light ON } else // if you are NOT flying { llSetLinkAlpha(LINK_THIS, 0.0, ALL_SIDES); // set alpha to invis 0.0 llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_POINT_LIGHT ,FALSE, <1.0, 1.0, 1.0>, 1.0, 20.0, 1.0]); // FALSE = light OFF } }}
  7. check here ... http://wiki.secondlife.com/wiki/LlGetAgentInfo in your script you would do something in a timer event like... timer() { status = llGetAgentInfo( llGetOwner() ); if( status & AGENT_FLYING) { // do stuff to change the alpha & turn on the light } else if( status & !AGENT_FLYING) { // do stuff to turn off lyte & make invis } } the invis stuff can use ... http://wiki.secondlife.com/wiki/LlSetLinkAlpha and the light can use... http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParamsFast#llSetLinkPrimitiveParamsFast yell if ya get stuck
  8. this is from some rotation guru..Dora mebbe?.. rotation Rot;default{ state_entry() { Rot = llEuler2Rot(<30.0, 0.0, 0.0>*DEG_TO_RAD); } touch_start(integer total_number) { llSetRot(Rot*llGetLocalRot()); Rot=ZERO_ROTATION/Rot; //invert the rotation }} a few rotation links... Dora's - http://wiki.secondlife.com/wiki/User:Dora_Gustafson/llAxes2Rot_right_and_wrong Grandma Bates - http://www.sluniverse.com/php/vb/tutorials/62235-basic-introduction-rotations.html
  9. 1. your script does that 2.& 3. check this... http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParamsFast#llSetLinkPrimitiveParamsFast
  10. Xiija

    Moving script

    you can try a few functions in your script... http://wiki.secondlife.com/wiki/LlMoveToTarget http://wiki.secondlife.com/wiki/LlSetKeyframedMotion http://wiki.secondlife.com/wiki/LlSetPos http://wiki.secondlife.com/wiki/LlSetLinkPrimitiveParamsFast#llSetLinkPrimitiveParamsFast all of those can move a prim
  11. here is just a basic script to switch between animations integer tog; integer anims; integer num; string animation; default { state_entry() { anims = llGetInventoryNumber(INVENTORY_ANIMATION); } attach(key id) { if (id) { llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION); } else tog = 0; } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { tog = 1; animation = llGetInventoryName(INVENTORY_ANIMATION,0); // makes the first anim in inventory the default llStartAnimation( animation ); } } touch_start(integer total_number) { if(tog) { if(animation != "") { llStopAnimation(animation); } num = ++num % anims; animation = llGetInventoryName(INVENTORY_ANIMATION,num); llStartAnimation(animation); } } changed(integer change) { if (change & CHANGED_INVENTORY) { llResetScript(); } } }
  12. Sporting events are a good place to meet folks, and there are many choices in SL. SLRDA Roller Derby has a fun skate every friday, and bouts almost every Sunday. Other options might be GOHA hockey, or any of the wrestling events. Racers Island has tracks you can race cars on, or race against others. just type "Sports" into your SL search
  13. You can change colors on the mesh if you have "UV unwrapped" it to different faces i think check google or youtube for "UV Unwrap" for your mesh program. im pretty sure you can make anything breedable..i've seen breedable pot plants in SL
  14. the second example on this page? http://wiki.secondlife.com/wiki/LlGiveInventoryList
  15. @ LepreKhaun..... truetrue...i was trying to be all scripty at getting a unique channel and not posting the list part @ Rolig ....that is way easier, but i have no clue how it works (integer)"0xF" by itself is giving me 15 .. adding that to the first 7 digits in my key does not give the same answer as whatever happens in that snippet ...?
  16. a quickie script to make a channel based on someone's avatar key ( good for multi touch listeners?) make sure & use a timer to clean them up! string CHkey; string tmp;integer check;string convert;integer chan;integer len ;integer listener; key ID; Key2Channel( key input){ CHkey = (string)input; len = llStringLength(CHkey); integer n; for(; n <len; ++n) { tmp = llGetSubString(CHkey, n, n) ; check = llAbs( (integer)tmp ); // numbers are numbers, letters are 0 if(check == 0){} else convert += (string)check; } convert = llGetSubString(convert, 0, 5) ; // channel has 5 numbers in it chan = (integer)convert; chan = -chan; // make it negative listener = llListen(chan, "", input, ""); // listen only to this obj/avatar}default{ state_entry() { } touch_start(integer total_number) { ID = llDetectedKey(0); Key2Channel(ID); llDialog(ID, "\nChoose a button: ", ["Yes", "No" ] , chan); } listen(integer chan, string name, key id, string msg) { if (msg == "Yes") { // do something } }}
  17. i have one script that gets the track perms, and messageLinked the vector to the script where i get perms for myself to control cam...i must be missing something somewhere..arggg that script of Qie's sure would help
  18. trying to make a cam HUD that will track someones camera. am i right in assuming, if they give permission, i will "see thru" their camera?
  19. make a poseball with the pose in it and attach it to you avatar ?
  20. also don't forget to cast your integers as strings if you want to SAY them... llShout(0,"Practice dummy hit: " + (string)hitCount + " total!")
  21. You could change the text in your llDialog() to show your name in the dialog option... llDialog(ID,"Smyth Balazic's Radio \n \n", buttons, ,chan); if you wanted the name of the group it is deeded to.... in state entry ..... key groupKey = llList2Key(llGetObjectDetails(llGetLinkKey(LINK_ROOT), [OBJECT_GROUP]), 0); key groupNameRequestId = llHTTPRequest("http://world.secondlife.com/group/" + (string)groupKey, [], ""); in http..... http_response(key request_id, integer status, list metadata, string body) { if (request_id != groupNameRequestId) return; list args = llParseString2List(body, ["title"], []); string groupName = llList2String(llParseString2List(llList2String(args, 1), [">", "<", "/"], []), 0); }
  22. it would look something like this.... integer x;vector v = <53.654,199.364,502.542>; default{ state_entry() { llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, FALSE); llSetRegionPos(v); } on_rez(integer param) { llResetScript(); } touch_start(integer total_number) { if (x = ~x) { v.z += 5.0; llMoveToTarget(v, 1.0); llSetStatus(STATUS_PHYSICS , TRUE); llSleep(1.0); llSetStatus(STATUS_PHYSICS ,FALSE); } else { v.z -= 5.0; llMoveToTarget(v, 1.0); llSetStatus(STATUS_PHYSICS , TRUE); llSleep(1.0); llSetStatus(STATUS_PHYSICS,FALSE); } }}
×
×
  • Create New...