Jump to content

Looking for a General Name.


Seyeui Aura
 Share

You are about to reply to a thread that has been inactive for 4064 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I've come across a script recently which seems very useful. It lets an object (when clicked) give out notecards. My problem is that it onyl gives out assigned notecards.

string note_name = "Notecard Name Here";  So I much enter the notecard name whre I put Notecard Nme Here in order for it to give out the specific notecard. Is there some general name i can put in this area so that it will give out any notecard it is given without having to alter it? If not is there a script that will give out any notecard when clicked without the minor nusence of having to add the cards name?

Link to comment
Share on other sites

You can use lsl function llGetInventoryName(INVENTORY_NOTECARD,0) in your script. this will  the return name of notecard . (actually gives name of notecard 0 only  but if only 1 notecard in prim contents  this simple method will work)

if you have several notecards in contents  you will need to first determine how many note cards.by using llGetInventoryNumber(INVENTORY_NOTECARD)

Then do a loop to gather all the notecard names  

Look in SL scripting portal under LSL INVENTORY  to get more ideas. :)

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4064 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...