Morwen Bunin
Everybody needs a hero!
Join date: 8 Dec 2005
Posts: 1,743
|
12-21-2006 00:07
I am currently creating a galary with some pictures I made and which I like very much.
Now I am wondering if it is possible that when some touches a displayed picture that a notecard would be opened that describes the picture and give more information about it.
If this is possible, could one tell me how to do this. Please note, that I am a complete dumbo when it comes down to technical things... so please keep it easy!!!
Thank you in advance.
Morwen.
|
Banking Laws
Realty Serious
Join date: 14 Jun 2006
Posts: 602
|
12-21-2006 00:51
From: Morwen Bunin I am currently creating a galary with some pictures I made and which I like very much. Now I am wondering if it is possible that when some touches a displayed picture that a notecard would be opened that describes the picture and give more information about it. If this is possible, could one tell me how to do this. Please note, that I am a complete dumbo when it comes down to technical things... so please keep it easy!!! Thank you in advance. Morwen. Notecard giver script. Copy/paste this into a new script. default { touch_start(integer total_number) { llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD, 0)); } }
_____________________
"I sincerely believe that banking establishments are more dangerous than standing armies, and that the principle of spending money to be paid in posterity, under the name of funding, is but swindling futurity on a large scale." - Thomas Jefferson, 3rd U.S. President
|
Ishtara Rothschild
Do not expose to sunlight
Join date: 21 Apr 2006
Posts: 569
|
12-21-2006 00:56
Name your notecard "info" and drop it into the prim with your picture texture. Add a script ("New Script" button), open it and paste the following text in: default { touch_start(integer total_number) { llGiveInventory(llDetectedKey(0), "info"); } }
|
Morwen Bunin
Everybody needs a hero!
Join date: 8 Dec 2005
Posts: 1,743
|
12-21-2006 02:19
Tried both examples... but no luck yet.
When I right click the picture, "touch" is not selectable. Should I change something to make it possible to select "touch"?
Morwen.
|
Banking Laws
Realty Serious
Join date: 14 Jun 2006
Posts: 602
|
12-21-2006 02:52
From: Morwen Bunin Tried both examples... but no luck yet. When I right click the picture, "touch" is not selectable. Should I change something to make it possible to select "touch"? Morwen. I'll send the script in game, just change the notecard name like Ishtara says, or change 'info' or 'inventory notecard' to the notecard's name. Touch is one of the options you can select 'when left clicked' on the general tab of the edit menu.
_____________________
"I sincerely believe that banking establishments are more dangerous than standing armies, and that the principle of spending money to be paid in posterity, under the name of funding, is but swindling futurity on a large scale." - Thomas Jefferson, 3rd U.S. President
|