¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: That Dr.Script thing - again!


 
Edited

So, cos I am a sucker for a challenge i decided to see how far I could get with this (I now learn obsolete) version of Dr.Script.?

I wrote three scripts, Two of which worked but the third one I just can't seem to get the variable to decerement.? - but I think I'm probably giving up on this now!? :-)

1====Works=======

BEGIN:
GOSUB BLINK
PAUSE 1000
GOTO BEGIN

BLINK:
TURNOUT 513 |
PAUSE 1000
TURNOUT 513 /
PAUSE 1000
RETURN


2=====Works-==========
BEGIN:
GOSUB BLINK
PAUSE 100
GOSUB TOGGLE
PAUSE 1000
GOTO BEGIN

BLINK:
TURNOUT 513 |
PAUSE 1000
TURNOUT 513 /
PAUSE 1000
RETURN

TOGGLE:
TURNOUT 208 /
PAUSE 2000
TURNOUT 208 |
PAUSE 2000
RETURN

3=====Fails==========
VAR(10) COUNTER
$COUNTER = 10
LOG $COUNTER

BEGIN:
GOSUB BLINK
PAUSE 100
$COUNTER = $COUNTER--
# Also tried $COUNTER = $COUNTER - 1? and other permutations
LOG $COUNTER
IF ($COUNTER == 0) GOSUB TOGGLE
GOTO BEGIN

BLINK:
TURNOUT 513 /
PAUSE 1000
TURNOUT 513 |
PAUSE 1000
RETURN

TOGGLE:
TURNOUT 208 /
PAUSE 2000
TURNOUT 208 |
PAUSE 2000
$COUNTER = 10
RETURN

Join [email protected] to automatically receive all group messages.