Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Max Exodus from the Library

Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
04-25-2005 12:00
Hello everyone.

To promote discussion about scripts in the Library, I am creating discussion threads for every post and placing them here, in the scripting tips forum. Now I am doing this for all of the posts, and some of the older ones are... well less correct. There are now better ways to do some of the things that were written in the past, and I have not taken that into account. So when you are reading these scripts, if you know a better way and want to give to the community, then post it, both in the discussion and in the original thread in the scripting library!

Right, so the long and the short of it is, if see something suspicious, well post it so that we can clear up the mess as i make it, like oh say llGetNumberOfNotecardLines(). :D
kay, that is all for now.

Nada
_____________________
i've got nothing. ;)
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
04-28-2005 04:34
The script library should be:
1) garbage-collected :)
2) moved to the wiki!
3) CATEGORIZED! :D
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-29-2005 19:31
Absolutely correct about moving it to one of the wiki's.

There are a number of scripts with bugs in them.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
05-12-2005 15:19
I want:

llDetectedCreator()

- I made a vote thing for it, so if you want it too, cast your vote :D
_____________________
Other than that, Mrs. Lincoln, how was the play?
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-20-2005 13:55
From: Douglas Callahan
how's this thread always at the top of the list? :confused:

anyway, I want:

llDetectedCreator()

- I made a vote thing for it, so if you want it too, cast your vote :D


...How would llDetectedCreator() help? Personally, I'm confused...
Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
05-29-2005 12:06
From: Keknehv Psaltery
...How would llDetectedCreator() help? Personally, I'm confused...


Alright, say you had a first person shooting game with bullets hitting vests that take damage. Now, you can have llDetectedName() find the name of the bullet to test how much damage it should do. But, what if someone just makes something with the same name, then you're screwed. So you have a chat between the objects, however, this is messy, unreliable, and opens another listen(), which is no good.
_____________________
Other than that, Mrs. Lincoln, how was the play?
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
05-31-2005 22:48
From: Douglas Callahan
Alright, say you had a first person shooting game with bullets hitting vests that take damage. Now, you can have llDetectedName() find the name of the bullet to test how much damage it should do. But, what if someone just makes something with the same name, then you're screwed. So you have a chat between the objects, however, this is messy, unreliable, and opens another listen(), which is no good.

I think I see what you're saying: use llDetectedName to see what kind of object hit the vest, and use llDetectedCreator to test if it's authentic. That might be an interesting idea.
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden
a lost user
Join date: ?
Posts: ?
08-16-2005 07:56
From: Beatfox Xevious
I think I see what you're saying: use llDetectedName to see what kind of object hit the vest, and use llDetectedCreator to test if it's authentic. That might be an interesting idea.



Just rez the object with an integer parameter that is weird like 2373987 or something that noone would think to try. Then say:

CODE

on_rez(integer p)
{
if(p == 2373987)
{
// do damage stuff
}
}
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
09-29-2005 15:33
Can we kill this thread now, or at least un-sticky it? This is useless.