Linking
|
Takan Hannibal
Registered User
Join date: 21 Jun 2004
Posts: 10
|
06-28-2004 20:47
I need some support on this subject I wanna make it so with 1 phrase a bunch of the same item will run the exploding script and when u say another phrase it deletes em? can anyone help me? I'm Newb Scripting 
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
06-29-2004 02:25
I dont know what the exploding script is. If you dont know how to code at all you should just hire someone who does, you know. How to kill a prim on command: default { state_entry() { llListen(0,"","",""); }
listen(integer c, string n, key k, string m) { if (m=="die") llDie(); } }
|
Bosozoku Kato
insurrectionist midget
Join date: 16 Jun 2003
Posts: 452
|
06-29-2004 03:25
Small problem with Eggy's sample is it would allow anyone to delete your prims, if they said "die". Put a check in the listen function for the owner. default { state_entry() { llListen(0, "", llGetOwner(), ""); }
listen(integer chan, string name, key id, string msg) { if (msg == "die") { llDie(); } } }
Then only you (the owner) can cause the prims to die. Bos
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
06-29-2004 03:59
That's not a bug, that's a feature!  I'm gonna call it, massively multiplayer online prim deletion. MMOPD for short 
|
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
06-29-2004 05:59
lmao! I dunno why but I laughed out loud at that  )) Azelda
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-29-2004 10:07
while this is a solution; having many listens all running in a sim will cut sim fps drasticly. (you will lag the sim to heck)
for one of my projects that need to rez 1000 prims, i used the remote script pin and sent die scripts out to all the prims. The advantage of this method is you don't have to worry about listens killing fps.
_____________________
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
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
06-29-2004 15:24
From: someone Originally posted by Strife Onizuka for one of my projects that need to rez 1000 prims, i used the remote script pin and sent die scripts out to all the prims. The advantage of this method is you don't have to worry about listens killing fps. Excellant method! Mind if I use it for my rezzing devices? I wonder what effect massive amounts of script transfers have on the sim verses massive numbers of open listen handles. ==Chris
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-30-2004 11:11
sure go ahead (can't stop you)
i haven't writen a virus die yet; as i have't been interested in quick result.
_____________________
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
|
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
|
06-30-2004 16:33
From: someone Originally posted by Eggy Lippmann That's not a bug, that's a feature! I love that line, I use it always  So if you're ever using something I make, and it doesn't work right, it's a feature. Bitch.
_____________________
Touche.
|