Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llDialog and particles control

Rouge Darcy
Registered User
Join date: 10 Oct 2007
Posts: 5
07-29-2008 12:00
I must say that I'm more or less a beginner in scripting, anyway...

I've made a nice little script for colour change which uses llDialog, I would like it to be able to control particles as well (as in: choose colour with a submenu - particles on - particles off).
I have a different script for particles that I've put in my item and I was wondering if I could control this script from the main one using maybe llSetScriptState. No need to say that this option isn't working... particles start bursting by themselves as soon as I put the script inside (or don't start at all).

So, I understand that I'm doing something wrong with state_entry and so on (probably, I'm having a terrible headache by now, so I might also say stupid things -____-) in the particles script.
Anyway, before I start banging my head on walls, can anybody please tell me if such a control system is even possible? And if so, how should I handle my particle script to prevent particles from bursting out by themselves?

Thanks in advance to anybody who can give me an answer.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
07-29-2008 12:18
You can do either, it might be easier to just put in a listen event in the particle script, and then start/stop/change particles based on what's heard from the dialog box. That's the route I'd go. Drop an llListen into the state entry of the particle script, and execute the particles from within a listen event in the same particle script.


http://www.secondscripter.com
_____________________
My tutes
http://www.youtube.com/johanlaurasia
Rouge Darcy
Registered User
Join date: 10 Oct 2007
Posts: 5
08-02-2008 11:51
Solved with a workaround :)
Thank you very much anyway ;)