mIRC Home    About    Download    Register    News    Help

Topic Options
#95117 - 22/08/04 07:28 AM having several on *:signals:with the same name in
SjN Offline
Nutrimatic drinks dispenser

Registered: 17/04/03
Posts: 7

Hi,

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

and several on *:start: and on *:load: ?

Top
#95118 - 22/08/04 07:34 AM Re: having several on *:signals:with the same name in
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Why can't you just use 1 event?
_________________________
New username: hixxy

Top
#95119 - 22/08/04 07:55 AM Re: having several on *:signals:with the same name
SjN Offline
Nutrimatic drinks dispenser

Registered: 17/04/03
Posts: 7
you really wanna know? lol

it just must happen for my script to work.

Top
#95120 - 22/08/04 08:59 AM Re: having several on *:signals:with the same name
Armada Offline
Fjord artisan

Registered: 26/03/04
Posts: 540
What are you attempting to do? You could do it all in one on start and what not

Top
#95121 - 22/08/04 10:13 AM Re: having several on *:signals:with the same name in
Kelder Offline
Hoopy frood

Registered: 12/04/03
Posts: 701
Loc: Leuven, Belgium
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.

Top
#95122 - 22/08/04 10:44 AM Re: having several on *:signals:with the same name
SjN Offline
Nutrimatic drinks dispenser

Registered: 17/04/03
Posts: 7
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.

Top
#95123 - 22/08/04 10:52 AM Re: having several on *:signals:with the same name
Kelder Offline
Hoopy frood

Registered: 12/04/03
Posts: 701
Loc: Leuven, Belgium
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...

Top
#95124 - 22/08/04 11:01 AM Re: having several on *:signals:with the same name
SjN Offline
Nutrimatic drinks dispenser

Registered: 17/04/03
Posts: 7
Yap, I started to work on that kind of script at the same time i started this thread.

thanks for the information guys

Top