Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

PLEASE give us an llRenameInventory / llSetInventoryName

Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
03-05-2005 07:16
Why can't we rename object inventory from a script?
It doesn't sound like it would be extremely hard to do.
I mean, we can rename it manually, why not with a script?
It would save us a LOT of trouble...
Imagine you're having this hypothetical "Treasure Hunt" event where you want to rez, say, a large number of coins all over a sim... and each coin will have a uniquely identifying number... and contain a uniquely identifying Gift Certificate, with one such number.
Right now, I can llRezObject all the coins at random places with a script, send a number param to the on_rez handler and llSetObjectName them with a numerical suffix.
Then I can llGiveInventory in the object_rez event to distribute Gift Certificates automatically to every coin. Then I can detect the change with CHANGED_INVENTORY.
But I can't rename inventory automatically!!! :( :( :(
So I can't make the Gift Certificates uniquely identifiable so they correspond to one prize alone... so much for automation :\
Pedro Pendragon
Registered User
Join date: 15 Jan 2004
Posts: 77
03-07-2005 12:27
agreed, need increased inventory control functions in general.

the ability to check inventory objects' creator would be nice, for instance.
stuff that we can do manually, but not automatically.
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
03-07-2005 15:52
Holy crap, yes, please!
_____________________
</sarcasm>
Jack Lambert
Registered User
Join date: 4 Jun 2004
Posts: 265
03-07-2005 16:07
Fantastic idea Eggy. Damn, why didn't I think of that?

That said...

Can't you somewhat do this already? You'd need something in the prim's inventory with a link_message() event in it. Rez it, link it, send it a llMessageLinked() to set it's name and description, unlink it, move it?

Associated functions...

(PERMISSION_CHANGE_LINKS)

llRezObject
llCreateLink

(send the linked prim a new name, description, and position)
llMessageLinked

(in the prim that is rezzed, detected by link_message event)
llSetObjectName
llSetObjectDesc

llBreakLink

(in the prim that is rezzed, after the link is broken, detected by on_change event)
llSetPos

--Jack Lambert
_____________________
----------------------------
Taunt you with a tree filled lot? hahahahahahaha. Griefer trees! Good lord you're a drama queen. Poor poor put upon you.

-Chip Midnight