Threads

View context
Its scary what we can do with ai and chat now :) Thanks for giving that a try! I really really appreciate all the help!!
like(0)
well I don't fully understand what you need it to do, but paste the script to it yourself and ask it to modify it according to your needs and see if it can help you :)
like(0)
It did work though :) This is close to what i want !! Say I have an oven that needs to check a box that has cherries, pastry, sugar in it. When it sees that the box does have the items in it the oven will give a cherry pie. Is that possible?
like(0)
Keep in mind that an object cant tell what is in another object directly. The two objects would need to be scripted to communicate with each other.
Anyway you have the link to the chat GPT that i was using. Ask it stuff and see if it can help you do what your trying to do.
like(0)
Thanks so much for your help ill give it a try!!
like(0)
View context
Oh thanks Arcfury for that reply I really appreciate it. I may need to explain further. Say I have an oven that needs to check a box that has cherries, pastry, sugar in it. When it sees that the box does have the items in it the oven will give a cherry pie. Is that possible?
like(0)
It should be possible. I can run some small tests and see what I find. Some of MrSnoodle's found code can be helpful.
like(0)
OOh i really appreciate all the help from you all. I did test MrSnoodles code and it worked for recognising the inventory in a prim. I had a small try at using the Ghat GPT thing but did not have time to give it a real go.
liked(1)
Great. I just finished a simple version, that detects whether these three objects: cherry, sugar, pastry ... are within the "oven" prim, and then it gives a pie when touched. ... As MrSnoodles stated, placing those three items into a box, then the box into the oven prim will not work. More would need to be done. I'll place the simple working test oven near my landing zone, if you wish to try it as is.

------------------


// cook a cherry pie

string item_1 = "cherry";
string item_2 = "pastry";
string item_3 = "sugar";

integer item_1_found = FALSE;
integer item_2_found = FALSE;
integer item_3_found = FALSE;

default
{

touch_start(integer num_detected)
{
list inventory_list;
integer count = llGetInventoryNumber(INVENTORY_ALL); // Count of all items in prim's contents
string item_name;
while (count--)
{
item_name = llGetInventoryName(INVENTORY_ALL, count);
if (item_name != llGetScriptName() )
inventory_list += item_name; // add all contents except this script, to a list

if (item_name == item_1)
{
item_1_found = TRUE;
//llSay(0, "found cherry");
}
if (item_name == item_2)
{
item_2_found = TRUE;
//llSay(0, "found pastry");
}
if (item_name == item_3)
{
item_3_found = TRUE;
//llSay(0, "found sugar");
}
}

if ( item_1_found == TRUE && item_2_found == TRUE && item_3_found == TRUE )
{
llSay(0, "cook pie");
llGiveInventory(llDetectedKey(0), "cherry pie");
}
}


}
like(0)
Sure i can pop over now
like(0)
View context
I have already spoken to him about something else and I have not heard back after my last message to him but thank you!
like(0)
ho sorry :(
maybe we will have to wait that our Leo finish to learn LSL ;-)
like(0)
Yes we may have to :)
like(0)
View context
IM sure you will be back sometime!
like(1)
View context
These are really beautiful!
like(0)
View context
Thank you MrSnoodle for your reply. I have found that the items expire right away when taking into inventory and then rezzed out straight away. The storage system does not take it in. I am wanting to adapt this system for a questing type world I am building and need the items to be taken into inventory. :)
like(0)
it has been a while since i played around with the farming stuff, I think you are right about not being able to take the items back at all. I just pulled out a bucket and looked in the product script. The script resets on rez.
At a pinch you could find the "on_rez(integer n)" part of the script and comment out the llSetObjectDesc and llResetScript lines below it, but it might be more complicated than that.

Best of luck with the project :)
like(0)
Points to myself and mumbles something about being a scripting dummy. I will try but if I set off a nuclear warhead, pls forgive me, Ill be in my bunker!
like(0)
if you don't know how to comment out a line you simply put // before it.
so find

on_rez(integer n)
{
llSetObjectDesc() = "";
llResetScript();
}
and change it to this:

on_rez(integer n)
{
//llSetObjectDesc() = "";
//llResetScript();
}

Just add the // before those two lines and the script wont reset when you rez it out of your inventory.

I have no idea if it will actually work as intended and might need many more modifications to actually work.
just keep the original copy of the script just to be safe.
like(0)
MMm i tried that no success :( thanks though i really appreciate your help
like(0)
View context
OH wow well done. :) Im not sure of any free ones sorry
like(1)
thank you, id spend hours on this thing and forget about vb lol, i need ot eventually take a break.
like(0)
View context
This is a beautiful region! So much detail has gone into it.
like(0)
Thank you Remmy, makes our hearts happy to know you see the beauty we are trying to share with everyone!
liked(1)
View context
So does that mean it is not possible?
like(0)
This known - you will PERMANENTLY lose assets. Slow, one by one, strange and without visible relations with any other actions. But will loose ALL! Because cache is TEMPORARY memory location by definition!
Yes, i know arguments against and all what someone will say. But cache is NOT database, although have same structure and use SQL, cache is NOT storage!
like(0)
View context
That is a really lovely looking Cabin.
like(1)
Thank you Remmy, I will be doing some more in the near future.
like(0)
View context
Perfect for the forest im doing for my little forest tribe.
like(2)
View context
Ohhhh gorgeous
like(1)
Thank you, Remmy. I hope you are feeling well today. (((HUGS)))
like(0)
View context
OOOHHhhhhh yay thanks again!
like(0)
View context
I know it as "May the lice of a thousand camels infest your crotch and your arms be too short to scratch it!" Or sometimes I have seen arm pits instead of crotch and lice as fleas.
like(1)
View context
Awesome work Prince!! You have put a lot of time and effort into this.
like(0)
View context
Thank you so much and its gorgeous!!
like(1)
You are very welcome, and I was happy to do it for you.
like(0)
View context
Gosh more i want from you!!
like(1)
It is always a pleasure to see you Remmy. I hope you enjoy your boxes.
liked(1)
View context
And its perfect thank you thank you!!
like(0)
View context
Its the difference between creators and consumers! I am also a dabbler and never bored in OS also have a long list of things I want to learn about and create.
like(0)