Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Renaming inventory during llGiveInventory ?

Christif Vaher
Registered User
Join date: 24 Jun 2008
Posts: 51
09-20-2008 19:33
Is it possible to rename a notecard as you send it with llGiveInventory?

I have a application giver with, uniquely enough, a notecard named Application. I would rather give them an application named Application_Requestor's_Name.

I am using a "touch" to trigger the giving of the application so I have the av's name (llDetectedName).

Basic code is below

CODE

default
{
state_entry()
{
llAllowInventoryDrop(TRUE);
}


touch_start(integer total_number)
{
string detectedname= llDetectedName(0);
llOwnerSay(detectedname);
llGiveInventory(llDetectedKey(0), "Application");
llSay(0, "Thank you for requesting an application. Please complete it at your convenience then drop it back in this box.");
}


}
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-20-2008 21:24
unfortunetly no. why not write in the note card asking them to change the name of the notecard? is it an application for employment? if so, if they pass over that, that means they didn't read it, do you really want to employ them?
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Christif Vaher
Registered User
Join date: 24 Jun 2008
Posts: 51
09-21-2008 08:00
You are of course correct... It is amazing though how many miss that little note. Thanks!