UbiquitousStudio
Resident-
Posts
25 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by UbiquitousStudio
-
Hello again friendly forum! I am working on learning more about llAllowInventoryDrop and I have a quick question. I am trying to detect what items get dropped and assign them to some variables. Here is some code. string notecardName; string landmarkName; key pictureUUID; default { state_entry() { llAllowInventoryDrop(TRUE); } touch_start(integer total_number) { } changed(integer change) { // Here is where I want to detect possibly? } }The code is super basic, but I will explain my attempt, I made a integer and assigned it to notecards and said if(!notecard) then error it but that didn't work. So I am here turning to the forum. Thanks very much for your time.
-
Thank you! That was all that I needed and then some extra information along with it I never knew before. Fixed my issue, thanks very much for your time!
-
Hello I am trying to grab a UUID, I made a text dialog and the person can input the uuid they want to assign. I am just trying to make sure it's a UUID, I just don't know the best way to go about it. Here is a bit of script default { state_entry() { integer channel = -13572468; gListener = llListen( channel, "", "", ""); llTextBox(ownerkey, "\nEnter the UUID of the avatar.", channel); } touch_start(integer total_number) { } listen(integer channel, string name, key id, string message) { // Want to check if message was uuid here. } }I could do llgetsubstring, and check if there is a - on the 9th letter, but I don't know if that's how all UUID's are or not. So I want to post here to be better safe then sorry. Thanks!
-
Display Text and Numbers on HUD
UbiquitousStudio replied to UbiquitousStudio's topic in LSL Scripting
Alright I think I understand it for the most part now. The only issue I have is that I can't seem to get it center over the prim. It is always a little bit above the center for me. Thanks -
Display Text and Numbers on HUD
UbiquitousStudio replied to UbiquitousStudio's topic in LSL Scripting
Okay so my original issue is I was trying to edit the hud while it was on my screen and that doesn't give a local option. But even in local or world with editing the object on the ground it still just not doing anything different and I really don't get the concept behind what is actually being done at all. I have been basically standing here spinning and resizing a box and a text over it for a long time now. Thanks for your time. -
Display Text and Numbers on HUD
UbiquitousStudio replied to UbiquitousStudio's topic in LSL Scripting
I see I was having this problem when actually trying it now. I set the text and rotate and the text does not actually rotate. So I am now trying to understand what you mean, I don't know what you mean by the Z dimension mostly. I use firestorm and can't seem to find a dimension option and the position, size, and rotation don't change it. Here is a image https://gyazo.com/9614a1b5b2818d72eddf0f7db669e085 -
Display Text and Numbers on HUD
UbiquitousStudio replied to UbiquitousStudio's topic in LSL Scripting
Okay perfect that was the information I was looking for! I tried llSetText but didn't realize if I rotated it that the text would rotate and fit the screen like that. It makes sense though and works perfect! Thanks for your time. -
Hello, I have been looking through some different ways of trying to display text and numbers on a HUD. I can't find much information on this. Say I have a integer I want to display in numbers and have the numbers change accordingly. Would I make numbers 1-9 in textures and change them on specific faces according to the integer changing, or is this a easier more efficient way of doing this. Thanks
-
Hello, I am trying to make a payment, then split the amount paid by the percent and tell owner what was split. The issue is it is doing it backwards and telling me the amount that was not paid. Here is my script! integer commissionpercent = 40; integer newamount; default { state_entry() { llSetPayPrice(10, [10 , 25, 50, 100]); } touch_start(integer total_number) { llRequestPermissions(llDetectedKey(0), PERMISSION_DEBIT); } run_time_permissions(integer perm) { if (perm & PERMISSION_DEBIT) { state idle; } } } state idle { state_entry() { llSetPayPrice(10, [10 , 25, 50, 100]); } money(key id, integer amount) { if(amount < 10) { llOwnerSay("Sorry, you must pay a minimum of L$10."); key id = llDetectedKey(0); llGiveMoney("da806bd6-c8ad-42b6-b78a-aeb154d6768c", amount); return; } // Give myself the entire balance. llGiveMoney("da806bd6-c8ad-42b6-b78a-aeb154d6768c", amount); }// This is where my issue is, it is telling me the amount not paid. newamount = llRound(amount * (float)(commissionpercent/100)); llOwnerSay((string)newamount); }Thanks for the help again! I am not very good at math and c++ so any help would be good.
-
Well sort of yes, I see it done on groups already. Say somone clicks on an object, it tells the group this person clicked on that object. It sort of happens with those linden game groups when they refill boeys and what not. Does the group connect to the object, or is there some php/html involved with that?
-
Thank you very much! I was a issue with me linking the prims together. I think I choose the root wrong as I just read a blog tutorial on how to do a hud and I got it working by just redoing the linking and not touching scripts. I do have a second question unrelated but don't want to post another thread, I'm looking to send announcements or messages to a group I own on a event, do you by chance know what I'm looking for in documentation. Thanks for your time!
-
Hello, I am trying to make a HUD. I have 1 object that is the background, and two object that are buttons. I just added different scripts to each button object and it works when not linked, but once I link everything up it only presses one button. I tried fixing the texture and sizing so I don't click it and it still reads only one button. I know I am missing something or just doing it wrong. I couldn't find much documentation on this, and don't really have examples for it cause it is more of a concept then code. Any help is greatly appreciated! Thanks again!
-
Read through that response 10 times now and still can't figure it out. I get what you are saying about it asking if the 25L is not equal to 10 cause the amount is 25L when they click 25L I just don't get how to go around it, do I write different money events? Nevermind I read through that edited part and now I am rething even doing refunds. The reason refunds were even a thing was because it was all connected to mysql and I wanted to make sure what was being paid is paid, but I can do it a easier way where I just grab the amount paid and just add that. I am just complicating things way to much.
-
Hello, I have a script and my goal is to get the player to pay into it and it captures the amount, if the amount does not equal the specified numbers just don't go the state and return funds. Here is my script here for you to try to understand better. default { state_entry() { } touch_start(integer total_number) { llRequestPermissions(llDetectedKey(0), PERMISSION_DEBIT); } run_time_permissions(integer perm) { if (perm & PERMISSION_DEBIT) { state idle; } } } state idle { state_entry() { llSetPayPrice(10, [10 , 25, 50, 100]); } money(key id, integer amount) { // THIS IS WHERE MY ISSUE IS // // If money is not right amount if(amount != 10) { // Send their money back llGiveMoney(id, amount); llOwnerSay("You paid the wrong amount, here is your money back and please try again!"); } else if(amount != 25) { // Send their money back llGiveMoney(id, amount); llOwnerSay("You paid the wrong amount, here is your money back and please try again!"); } // If money is the right amount. else { state funds; } } } state funds { state_entry() { llOwnerSay("State Funds"); } touch_start(integer total_number) { } }The 10L works fine, but when I added 25 it doesn't work. I tried to do || with it and no luck. I am probably just not thinking of something cause I do this but any help will be appreciated! Thanks
-
Hello, I am trying to change the state while outputting the body of a website. I can move it to the next state fine, but the output doesn't happen, is there any way around this by any chance? Here is my code string updateurl = "No URL"; key updatekey; list updateparams = [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"]; string username; default { state_entry() { } touch_start(integer total_number) { updatekey = llHTTPRequest(updateurl, updateparams, "username=" + username); } http_response(key request_id, integer status, list metadata, string body) { if(request_id == updatekey) { llOwnerSay("\n" + body); } } } state idle { state_entry() { llOwnerSay("Idle State"); } touch_start(integer total_number) { } }I am simply trying to get to the idle state, but still output the body of the website. Accept when I go to idle it skips the body. I can't think of a workaround so I am here asking. Thanks again!
-
See I knew it was something super simple and silly I just did wrong and it turned out to be exactly that. I put two == instead of one cause I was just coding a bunch of php prior with that. I feel dumb now but I gave you kudos for helping! Thanks so much for your time!
-
That didn't work for me, as soon as I put the same script on a new object it just breaks the object completely. I even tried just putting llOwnerSay("Touched"); In the state touched and nothing happens. There is no errors and I have had this working many times. It just doesn't return anything now.
-
Hello, I am trying to dabble more into http requests. I swear I had this working a little while ago. I am trying to just say in SL the body the a php page. I know I'm probably doing something silly here. Please help me Here is the LSL key httpkey; string url = "Removed for no haxin"; list params = [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"]; string username; default { http_response(key request_id, integer status, list metadata, string body) { if(request_id == httpkey) { llOwnerSay("Body: " + body); } } state_entry() { } touch_start(integer total_number) { httpkey == llHTTPRequest(url, params, "username=" + username); } }Then some simple php that is just echoing a statement. <?php echo "Worked?"; ?>Like I said I swear this worked for me before. I do not use free hosting and all my ports are open as I go through a game host. I just can't figure this out. Please help! Thanks
-
Hello, I am a developer in RL and wanted to get into SL, add me if you like I have no friends, no fun locations, and I'm always just bored dancing around.
-
Hello, I tried purchasing L$ recently, but it gave me a repeat error that the card details were wrong. I went to check my credit card and it turns out Linen Labs removed just over $1.00 from my account. I didn't even get the L$ so you can tell how annoying that is.