|
jazz Spatula
jazz spatula
Join date: 7 Feb 2006
Posts: 11
|
04-25-2006 12:55
Hello everyone:
Could someone send me the script for the next think:
I need a script that give me to posibility of touch and object and when is touched a new window appears with some text.
Could I do it with a window that show images and text at the same time?
Thanks a lot!!
|
|
Russell Hansen
Texi pets are here!
Join date: 11 Apr 2006
Posts: 107
|
04-25-2006 13:26
You could use a notecard to pop-up text, and images either need to textures that have been loaded, although I don't think notecards can display textures.
It can be done with a HUD, but it depends on your requirements as to exactly how.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-25-2006 13:35
Yeah, notecards can *contain* textures, but they're not actually displayed within the notecard. If you drag and drop the texture onto the editing window of the notecard it will appear as a blue link, and anyone who gets the notecard can click the link to get the image. There's always llDialog as well, which pops up a small window at the right-hand corner, but for information purposes notecards are best I'd say. You want to create a new notecard, put the text in it, drop it into the object, then have something like this script in it as well: default { touch_start(integer n) { llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD, 0)); } }
edit: If you wanted to give somebody a texture that you'd uploaded, that would pop on their screen, and could have text on it. Just replace INVENTORY_NOTECARD with INVENTORY_TEXTURE in the script above to give a texture instead of a notecard. There's a free full permissions freebie giver in my home area if you want to explore this a bit more - click. It's inside the gadget giver, it's just called "Freebie Giver vX.Y".
|