The Players Corner Archive

Counters....

Okay, some one explain to me how the "counter" command works, and the "add counter" comand? I dont really have a clue and was wondering, can i get a through explanation, and an example.

-John

------------------
IM: XoSPrEEoX
EMail: DJSphinx@eternalbeats.net reg

counter variable {%c}
A numerical variable.
Multiple uses, used mainly for going through a sequence of rooms in hunting scripts.
Used With: Goto, Match, Waitfor, Echo, Save

counter add {counter add}
Increases the value of the counter by 1

counter set {counter set #}
Replaces the current counter value with #.

Start:
counter add 1
goto %c

1:
echo Counter is %c
goto Start

2:
echo Counter is %c
goto Start

LabelError:
echo Counter has Exceeded 2.
exit

-=Insomniac=-
reg

Thanks.

-John

------------------
AIM: XoSPrEEoX
EMail: DJSphinx@eternalbeats.net
---------------------
www.eternalbeats.net
www.eraver.net reg