Studycomp (script)

From Elanthipedia
Jump to navigation Jump to search
Studycomp (script)
Category training
Front-end Genie
Author Nithhogr


Studies compendiums/textbooks (tested/modified on a textbook so not 100% on how it'll work with a compendium).
$comp is the variable used for your compendium.
If a page has 'advanced text' it will study it 8 times before turning the page.
If it is 'impossible', the script will end.
When Scholarship locks, it will change to 'skip mode' where it turns and studies only once, prioritizing FA training.
When FA is locked, the script will end.
When you reach charts you've already studied, the script will end.

Use skip as the variable to switch directly to skip mode.

Credit goes to Axiarra for the original script I used as a basis.

compstart:
put get my $comp
pause 1
put open my $comp
if %1 = "skip" then goto skip
if_1 put turn my $comp to %1
goto study

study:
delay 1
put study my $comp
match study ...wait
match tough almost impossible
match study gradually absorbing
match hard advanced text
match page moment of clarity
match end Why do you need
matchwait

skip:
delay 1
put study my $comp
match end Why do you need
match tough almost impossible
pause
put turn my $comp
gosub firstaid
match skip You turn to
matchwait


hard:
counter add 1
if %c = 8 then goto page
gosub schol
goto study

page:
counter set 0
gosub schol
put turn my $comp 
match study You turn to
match page ...wait
matchwait

schol:
if $Scholarship.LearningRate > 33 then
	goto skip
	else
	return
	
firstaid:
if $First_Aid.LearningRate > 33 then
	goto finish
	else
	return

end:
pause
put stow my $comp
echo No more charts to study.
pause 1
exit

finish:
pause
put stow my $comp
echo Scholarship and FA locked.
pause 1
exit

tough:
pause
put stow my $comp
echo Current chart too difficult.
pause 1
exit