12-02-2004 21:36
Hi!

I would like to see llGetCreator expanded so that it would return the creator of certain items in an object's inventory. Personally, I'd like to see it work something to the effect of this:

key llGetCreator (string item_name);

but I could live with

key llGetCreator (integer inv_number, integer type);
Get the Creator of the inventory item inv_number of type. Use the inventory constants to specify the type.

And then I could compare the results with the creator of the script for a match.

The application I have for this is as follows:

I'm designing a highly scripted object that upgrades itself based on items dropped on it. Sometimes these items can be scripts, but they could also be objects. Once the dropped object or script is detected in the inventory, it acts, depending on what that inventory item is. What I am trying to do is prevent others from making hacked or pirate versions of these inventory items, by making my object detect who the creator is.. (i.e. me) and deleting any items with other creators from the inventory.

For example.

Say I have a rifle that has ammo. Whenever it is fired, the ammo count goes down, and then when the ammo = 0, it cannot fire. If someone were to drop an ammo clip into the rifle's inventory, I'd like the rifle to check to make sure that I was the creator of the ammo clip, and then the scripts would tell ammo = fully loaded. Then the ammo clip in the inventory would be deleted. I could make a script called "ammo clip" that refilled the ammo integer and then deleted itslef, but I'd really like for there to be a visual representation of the ammo clip that people can place on a table, for example.

Thanks for reading.

-Jacqueline Bancroft