mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 7
S
SjN Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2003
Posts: 7

Hi,

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

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

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Why can't you just use 1 event?


New username: hixxy
Joined: Apr 2003
Posts: 7
S
SjN Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2003
Posts: 7
you really wanna know? lol

it just must happen for my script to work.

Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
What are you attempting to do? You could do it all in one on start and what not

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
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.

Joined: Apr 2003
Posts: 7
S
SjN Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2003
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.

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
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...

Joined: Apr 2003
Posts: 7
S
SjN Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2003
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


Link Copied to Clipboard