|
Nakitta Nightfire
=^ WILDCATZ ^=
Join date: 7 Jul 2008
Posts: 77
|
05-06-2009 12:46
I am a script noob  !! Lol, I have made a animated lollipop vendor for my store and now wish to make a Bubble Gum one as I have made a machine for it but I can't find a full perm bubble gum script anywhere!? Please could someone help by pointing me in the right direction or give me some tips on how to script it, I want a sound on pop also.....Can anyone Help Me?
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
05-06-2009 13:15
From: Nakitta Nightfire I am a script noob  !! Lol, I have made a animated lollipop vendor for my store and now wish to make a Bubble Gum one as I have made a machine for it but I can't find a full perm bubble gum script anywhere!? Please could someone help by pointing me in the right direction or give me some tips on how to script it, I want a sound on pop also.....Can anyone Help Me? Take a look at llRezObject and llPlaySound (descriptions are at  and  ). Put those in a touch_start event so that someone clicking on your machine activates them. Make the gum ball itself a temp rez object so that it dies automatically within a minute or so, and send the customer one at the same time so it shows up in his/her inventory. Be sure to set permission on the gum ball to copy so that the customer doesn't lose it permanently the first time it's rezzed.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
|
Nakitta Nightfire
=^ WILDCATZ ^=
Join date: 7 Jul 2008
Posts: 77
|
05-06-2009 13:50
Thankyou Rolig for your help i'm not sure if that is what i need reading it. Sorry i told you i was a script noob! lol Will this script if i put it into a piece of gum then attach it to my mouth (obviously) hehe sorry will it then inflate and pop? like i'm blowing a bubble and then makes the pop sound? The vendor i made i will just set to buy contents so i just need the script for the actual gum itself. Thanks
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
05-06-2009 14:21
Oh, THAT's the sound? I thought to meant a sound that the machine makes as it delivers the piece of gum. You want a scripted piece of gum too! That's kind of a fun idea, but a lot work to go to for a L$1 gum ball.  That's not going to be an easy bit of scripting for you, but it's a nice challenge. Off the top of my head.... For the script in the gum, you need an attach event to verify that the gum has actually been attached to the person's mouth. Then you could use llSetPrimitiveParams in a timed loop to change its size so that it looks like the person is blowing a bubble. When the bubble is large enough, you play the Pop sound and kill the bubble.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
|
Nakitta Nightfire
=^ WILDCATZ ^=
Join date: 7 Jul 2008
Posts: 77
|
05-06-2009 15:29
Wow thank you Rolig I see what you mean now about the sound and the link you gave me that would be amazing to add to the vendor!!  looks like there is no way I am going to be able to script it myself for the actual gum do you know of anyone who would be able to script it for me or would you be able to do it. I am happy to pay for the custom script. It is obviously alot of work for a $1L gum but I am not doing this to make profit but it is to give something extra and different to my customers in my clothes shop. I have already made a lickable lollypop vendor with lollies and it is getting lonely by the front door and really needs a bubblegum vendor to keep it company!!! lol. I know you are able to buy ready made vendors of this sort but they would look out of place as they are not pink. haha
|
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
05-06-2009 15:59
Try posting in Products Wanted or looking in SLXchange. This forum is really to support people who are learning to do their own scripting or have an interesting scripting challenge to share. Good luck with the project. It DOES sound like a fun idea for your shop.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
ELQ's single-prim gumball
05-06-2009 22:24
Well, we've all seen them, no doubt every one of us has a few pieces of bubble gum floating in inv somewhere, but it's a neat idea. I never thought about the scripting of it, I'm more into media and web communication. So I figured, wth I'll give it a go. Here's a good start for you. Granted, you still have a bit of work, but it won't be hard to look and see what bits do what, and put your own stuff in there. I'm going to library it anyway, it's a neat little trick that took about 15 minutes lol. You'll still have to texture it too, and find a pop sound. integer listener;
blow() { llSetTexture("gumball",ALL_SIDES); llSetPrimitiveParams([PRIM_SIZE,<.050,.050,.050>]); llSetPrimitiveParams([PRIM_SIZE,<.100,.100,.100>]); llSetPrimitiveParams([PRIM_SIZE,<.200,.200,.200>]); llPlaySound("pop",1.0); llSetTexture("invisible",ALL_SIDES); llSetPrimitiveParams([PRIM_SIZE,<.025,.025,.025>]); }
default { state_entry() { llSetPrimitiveParams([PRIM_SIZE,<.025,.025,.025>]); } attach(key av_id) { if(av_id) { llSetTexture("invisible",ALL_SIDES); llInstantMessage(llGetOwner(),"Use command '/73 bubble' in chat to blow bubbles.Use '/73 stop' to stop blowing bubbles."); listener = llListen(73,"",llGetOwner(),""); } else { llSetTexture("gumball",ALL_SIDES); llResetScript(); } }
listen(integer channel,string name,key id,string msg) { if(id == llGetOwner()) { if(msg == "bubble") { llSetTimerEvent(1.0); } else if(msg == "stop") { llSetTimerEvent(0.0); } } } timer() { blow(); llSetTimerEvent(30.0); } }
|
|
Nakitta Nightfire
=^ WILDCATZ ^=
Join date: 7 Jul 2008
Posts: 77
|
05-07-2009 06:16
Nakitta Nightfire runs up to ELQ and flings her arms around them! THANKYOU!!! thankyou so much you are a star as soon as i've made them i'll make sure i send you the first gum ball! hehe thankyou thankyou thankyou. I really was starting to pull my hair out it's so annoying when you want to make something but can't. yayyy i can't thankyou enough!!
|