NOTE: This program was modified after later comment.. It now will run cool.
Thanks for the tip. I knew better... just wanted to get the idea out.. But you never know someone might copy my bad loop with no WAIT and then bad stuff could happen..
The garrison resource counter. Now you always will know how fast your resources are growing on each toon (as long as you clear each toons garrison resources at around the same time and keep the program running.
(this program has been modified to count resources as you play the game)
I will improve this program as time passes
Code:
coun%=0
resource%=0
OFF
REPEAT
t$=TIME$
rt$=RIGHT$(t$,8)
* REFRESH OFF
CLS
REM Technically we could easily make it wait for 1 second for an alarm clock
REM and that should give enough time to do other small calculations.
REM COOL CPU
WAIT 100
coun%=coun% +1
IF coun%=600 THEN coun%=0:resource%=resource%+1
PRINT "Garrison resources increase by 1 every 10 minutes "
PRINT rt$
PRINT "Current Garrison Resources :" resource%
* REFRESH
UNTIL FALSE