effect on right-click, effect on buy
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
10-22-2007 12:36
Hi,
I've always thought it was impossible.. but the other day in a store I noticed a particle effect when I right-clicked, then I clicked buy which opened the normal buy dialog... when in that dialog I clicked "buy" another particle effect showed!
How did they do that? I've waited for a while to see if it was just random particles... but it wasn't...
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
10-22-2007 13:40
Mmmhh, maybe it was the "effect" effect, like when you are editing an object. When a script is running you can see som little balls going round the objects. Anyway when you click on "Buy..." the "Money" event is triggered: http://lslwiki.net/lslwiki/wakka.php?wakka=moneyand there you can do anything.
|
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
10-22-2007 17:37
The "money" event is triggered by "pay", not "buy". "Buy" doesn't trigger anything unless the item is set "for sale: original", in which case it triggers changed(CHANGE_OWNER), but things aren't commonly set that way.
If the particle effect you saw was spinning white particles surrounding the object, that's built into SL and happens whenever a scripted object speaks.
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
10-22-2007 18:50
There is a great chance the object had a particle system that had a defined lifetime using PSYS_SRC_MAX_AGE. The effect of that is, the particle system will burst when it first comes into view, and last for so many seconds before stopping, but right-clicking/selecting the object will cause it to burst again.
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
10-24-2007 04:07
Interesting... I'll check later today and I'll also post a slurl to the shop 
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
10-24-2007 06:11
From: Yumi Murakami "Buy" doesn't trigger anything unless the item is set "for sale: original", in which case it triggers changed(CHANGE_OWNER) As I recently stated in another thread, changed( CHANGED_OWNER ) is raised in an object whether it *or* a copy has been taken/purchased.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
10-24-2007 07:40
From: Deanna Trollop As I recently stated in another thread, changed( CHANGED_OWNER ) is raised in an object whether it *or* a copy has been taken/purchased. Thank you, Deanna--I thought I was losing my mind and was driven to actually test this again with an alt. (I realize this does not assure much about my mental state, however.  ) As the wiki explains, one interesting twist about buying a copy is that the copy also gets the CHANGED_OWNER event when it's first rezzed, so to have different effects in the original and the copy, the script has to test the identity of the new owner against some record of who owned it previously (like llGetCreator, if that applies).
|
|
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
|
10-25-2007 09:12
huh???
when someone buys a copy of my item, the original item changes owner?
i dont think so.
i HOPE NOT!
or do you mean the 'changed owner' change happens, but the owner doesnt actually change? do you have a link to the particular wiki page/post that explains this one?
--never mind, found it. still dont understand it.... but found it.
_____________________
Why Johnny Can't Rotate: http://forums.secondlife.com/showthread.php?t=94705
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
10-25-2007 10:19
From: Bloodsong Termagant huh???
when someone buys a copy of my item, the original item changes owner?
i dont think so.
i HOPE NOT!
or do you mean the 'changed owner' change happens, but the owner doesnt actually change? do you have a link to the particular wiki page/post that explains this one?
--never mind, found it. still dont understand it.... but found it. heehee CREATOR doesn't change
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
10-25-2007 21:38
From: Bloodsong Termagant when someone buys a copy of my item, the original item changes owner? No, but the changed event is raised with the CHANGED_OWNER value passed to it.
|