mIRC Home    About    Download    Register    News    Help

Print Thread
#105194 13/12/04 04:14 PM
Joined: Mar 2004
Posts: 358
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
Is there anyway I could set a variable in remotes and possibly use it throughout that file in more than one event? If not then just one event will work.

Thanks in advance.

Joined: Mar 2004
Posts: 342
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Mar 2004
Posts: 342
from the help file:

/set [-snzuN] <%var> [value]
This sets the value of %var to the specified value.

see: /help /set for more information.

Joined: Mar 2004
Posts: 358
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
Sorry I wasen't more clear.

I don't want to put it in the variables section in the Remote Editor. Is there a way I can make a variable (NOT PUTTING IT IN THE REMOTE EDITOR) and using it throughout the file i "created" it in or even just in one event is fine.

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
Are you looking for /var - a temp. way of storing a variable which is then reset after the event has finished?

alias example {
var %test = This is a test.
echo 4 -a - %test
var %i = 10
while (%i) {
echo 3 -a - %i
dec %i
}
echo 4 -a - %test - is still set.
}

Like so? If not, please clarify.

Eamonn.

Joined: Mar 2004
Posts: 358
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
Exactly it, thanks!

D
DaveC
DaveC
D
did you need it to exists between executions of your script, or just during the running of the one you created it in?


Link Copied to Clipboard