shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Wed Jan 29, 2020 2:36 pm |
Well, you do not have to trigger off the entire line, a partial match off just a word or phrase is plenty, just make your pattern shorter.
That said, we need the line you get from the game when you attempt to study, and when you successfully improve.
Code: |
#TR {You think your scroll reading skill has improved.} {spellbook=study spellbook}
#TR {You're bright-eyed and bushy-tailed.} {#SEND {@spellbook}}
#TR {study fail message} {
studyFail=(@studyFail+1)
#IF (@studyfail > @studyAttempts) {
studyFail=0
spellbook=revise spellbook
}}
#TR {study success message} {
studyFail=0
spellbook=revise spellbook
} |
Then you can set the value of @studyAttemps to determine how long you will try. |
|