mIRC Homepage

Hi,

Is there anyway having several on *:signal: with the same name in one script?

and several on *:start: and on *:load: ?
Why can't you just use 1 event?
you really wanna know? lol

it just must happen for my script to work.
What are you attempting to do? You could do it all in one on start and what not
It's possible to have them, but only the first one will be triggered. You might be able to use #groups to disable one and enable another, but it will still only trigger one event.

If you really need multiple triggers on the same event, put them in different script files. If you only want one script file, then you'll have to combine the commands into the same event.
ok in first script i have

alias command {
signal name $1-
}

in the 2nd, 3rd, 4th and 5th script i have on *:signal:name { }

then i made some kind of compile command
when i type it, it merges all 5 scripts, so there are 4 on *:signals in one script, 3 of them arne't working.
the reason i made 5 files just so it will be easier to manage things.
and when i am ready to release the next version i use /compile to put everything in one, so people won't have too many files loaded.
I'm afraid your compiler will have to become more complex. It will have to check for common on *:signal: lines and then add the contents to the already existing event handler.

This would still give problems if you used halt or return in those events, so it'll become even more complex...
Yap, I started to work on that kind of script at the same time i started this thread.

thanks for the information guys
© mIRC Discussion Forums