Seyeui Aura Posted April 7, 2013 Share Posted April 7, 2013 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 More sharing options...
dd Temin Posted April 7, 2013 Share Posted April 7, 2013 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 More sharing options...
Rolig Loon Posted April 7, 2013 Share Posted April 7, 2013 Of course. Just give the first (or nth) notecard in the object's inventory. llGiveInventory(llDetectedKey(0),llGetInventoryName(INVENTORY_NOTECARD,0)); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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