mIRC Home    About    Download    Register    News    Help

Print Thread
#105194 13/12/04 04:14 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
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: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
from the help file:

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

see: /help /set for more information.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
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: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Exactly it, thanks!

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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