Jump to content

Altier Verwood

Resident
  • Posts

    90
  • Joined

  • Last visited

Everything posted by Altier Verwood

  1. OH thank you so much, that makes a lot of sense now. thank you for your help, I will make the adjustments to the script then.
  2. Hey again forums. I have a bit of an issue with one of my scripts, I have it kind of working but not fully. So how it works is I touch the prim and it rezes the object a distance away from the root, but if I change randx+5 to say randX+10, to make the distance greater the object doesn't rez, there is no error but i can't see the object or where it's actually spawning. am I missing something to this script? the ammo count is in another part of the script and works fine you can ignore that part. touch_start(integer total_number) { if ( ammo_count==0) { llWhisper(0,"Hanger Depleted"); } else { ammo_count--; rot = llGetRot(); pos = llGetPos(); integer randX = llRound(llFrand(5)); integer randY = 5 + llRound(llFrand(-10)); integer randZ = 5 + llRound(llFrand(-10)); llRezObject(Deploy, pos+<randX+5,randY,randZ>*rot, <0.000, 0.000, 0.000>, rot, 1); llWhisper(0,"Remaining Ships "+" Hanger "+(string)ammo_count); } }
  3. WHoa, that looks way over kill to what I have my script doing XD
  4. Never mind, I put the integer in the wrong spot XD
  5. Hm when i tried that it gives me a syntex error, but i don't see what im doing wrong. integer hp = (integer)llGetObjectDesc();
  6. One more, thing its along the same lines, is there a way I can make my integer here. integer hp = 500; read object description like this integer hp = llGetObjectDesc(); ?
  7. You are amazing thank you so much, something so small held up the whole script XD it compiled!
  8. I feel like I learn so much from this forum, I have another question, I'm diving into making my script work more efficiently. I have this snippit here. it scans my link set for a link name, but I need to turn the name it finds back into a link number for the integer to work. could someone shed some light on what I'm doing wrong? thank you so much if anyone gets the time. string name = PART+"Fire"; { integer i = llGetNumberOfPrims(); for (; i >= 0; --i) { if (llGetLinkName(i) == name) { keystate = 0 ; updateParticles() ; llSetLinkPrimitiveParamsFast(name,[PRIM_COLOR,ALL_SIDES,<1.000, 1.000, 1.000>,0.2,PRIM_GLOW,ALL_SIDES,0.8,PRIM_POINT_LIGHT,TRUE,<0.984, 0.752, 0.359>,1,3,.750]); } } }
  9. OHHHHHH so what you are saying is even if I tell it to use shift A or D it just won't work in mouse look it will only take one command?
  10. So this is a doozy but I will try to explain it. I am working with a flight script I am trying to re write, there is a lot of junk in here that isn't important but bare with me please. the controls are as follows OUT OF MOUSE LOOK (this part is important.) W (brings the nose of the ship down) S (brings the nose of the ship up) A (rolls the ship left) D (rolls the ship right) E (throttle up) C (throttle down) Shift-A (rotates the ship left) Shift-D(rotates the ship right) But in mouse look, the controls are changed. these commands do the same thing and i can no longer roll the ship when in mouse look. |A (rotates the ship left) D (rotates the ship right) Shift-A (rotates the ship left) Shift-D(rotates the ship right) I have looked through this script many times, removed anything that talked about mouse look, but nothing worked to fix my problem, here is the full script below. any help on this would be vary appreciate,d I just want the controls to be the same in and out of mouse look.
  11. YES you were right! There was no problem with my script! wow, thank you guys. my script is working perfectly!
  12. wait.... I think its a very simple solution isn't it, I type the command as /-CHANNEL altier.verwood 1 am I typing the command wrong?
  13. Oh I see it, you added a command I did not have, I've never seen lltolower before, I need to look that one up. thank you so much I will test this out now.
  14. Yeah, I put those in to test it, but it seems like it's not getting the message, I know an avatar can send - channel messages I do it all the time. my sling command works on -1 I tried it on a positive channel to and go nothing either.
  15. yes you understood the script perfectly Rolig, how ever in my tests, even with the proper command given, the script doesn't seem to do anything, so I have a feeling. this string name = llKey2Name(llGetOwner()); if (msg == name + "1") Can not actually change the message being listened for right ? the message should be /CHANNEL, OWNER_NAME 1 but it doesn't' seem to work.
  16. Hello scripting people, I am working with a script I tried to write, to listen for a message, but it would change the command it listens for based on the owner of the prim. but I can't seem to get it to work, and I'm not sure what I'm doing wrong because the script is compiling. I blanked out the channel cause someone might see this and break my script XD default { state_entry() { llListen(-???,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { string name = llKey2Name(llGetOwner()); if (msg == name + "1") { llSetTexture("0e730d5c-55b3-2d7d-600a-a52b3a32201f", 0); llSetPrimitiveParams([ PRIM_NORMAL, 0, "325f39ee-3eed-a369-b6c7-5a33de6a68de", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); llWhisper(0, name + "Complexity = Henagon"); } if (llGetCreator() == "59ce94d0-12e5-4f62-987d-b9b78cc74e82" && msg == name + "1") { llSetTexture("0a28d60f-b12d-df66-9d7c-c83ec3a92dac", 0); llSetPrimitiveParams([ PRIM_NORMAL, 0, "d7536b1e-5ada-e91d-a830-49296faf84d3", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ]); llWhisper(0, name + "Complexity = Digon"); } } } I've included two commands, the first is just listening to the message, the second is my attempt to make it listen for the owners key.
  17. Oh my bad, I was trying to integrate it into my script.
  18. Hm so I'm getting a syntex error with integer sum_of_inventory_names(integer inv_type) not quite sure how to fix it.
  19. Oh wow! let me read through this thank you, I was so very stuck. worked on it for like 4 hours yesterday and got no where.
  20. I see, so that's okay, I can put the number that the front of the object name for simplicity. I will look into getsubstring then.
  21. So this is going to be pretty complex, but I will try to keep it simple. I have a plan to write a script, that will change the hover text of an object, by counting the number in the description of the objects inside it. so if the object has three other objects inside it, they descriptions are like 10,5,5 the hover text would change to 20. is this actually possible? or do i have to use object name? where would i even start? thank you for any help you can offer.
  22. this is what its doing, its doing this wild sway, and i can't fix it the rotation point is at the exact center https://gyazo.com/ba5976b6f62f350e7b8884edef73b110
  23. Hm the only controls i can understand a little bit are these ones. llSetVehicleType(VEHICLE_TYPE_AIRPLANE); llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <0.0, 1.0, 1.0>); llSetVehicleFloatParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, 0.05); llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <0.0, 0.0, 0.0>); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 0.5); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 10.0); llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION, <0.0, 0.0, 0.0>); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.2); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.2); llSetVehicleFloatParam(VEHICLE_HOVER_HEIGHT, 0.0); llSetVehicleFloatParam(VEHICLE_HOVER_EFFICIENCY, 0.1); llSetVehicleFloatParam(VEHICLE_HOVER_TIMESCALE, 360.0); llSetVehicleFloatParam(VEHICLE_BUOYANCY, 1.0); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 1.0); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 2.0); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.1); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 100.0); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.0); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 360.0); llSetVehicleFloatParam(VEHICLE_BANKING_EFFICIENCY, 0.00); llSetVehicleFloatParam(VEHICLE_BANKING_MIX, 0.5); llSetVehicleFloatParam(VEHICLE_BANKING_TIMESCALE, 1.0); llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, <0.0, 0.0, 0.0, .1>); But I have a feeling this is not what you are talking about?
  24. Thank you guys for your help. one more thing about rotation, what line is it to help smooth out the rotation when you press a key? mine kind of jumps to degrees like the hand of a clock, it's not smooth, I feel I've missed something in the controls.
×
×
  • Create New...