Hey there,avatarbr wrote: Wed Mar 29, 2017 12:48 am I had an idea for better implementation of my "control script"* and I liked to know if this could work the way I think should.
The Control Script is a script with only variables and flags, to check a/o advance the status of the session.
My "improved" idea is to create a single Link file with the control commands and, in the end, use a @CallRandom() in a folder with the real Link files.
each os these files would end with a @Call() back to the Link/Control file, in a line after the commands.
What I dont know is TeaseAI will try to call another link file after that, because the @Call() should call a module, not a link or will continue with the normal route after a @StartStroking? basically, teaseai will know its running a link (because the folder) and continue the circle?
The circle would be like this:
stroke
module
"fake link" (run control commands)
@CallRandom(folder/reallinks)
"Real Link" runs
@Call(stroke/link/fakelink.txt)
stroke
Its a lot of work to edit 62 modules and 30 links files (with 4 teases in each file) to do a blind test.
*The current way I use is to call a interrupt when all the 4 teases inside a module file already ran. The way work now is, you have around 25% to call a module where the control script will be called. But is too much ramdom, and I cant use % with the precision I wanted, because the script can be called 2 times in a row or not be called in a session.
Maybe this will work like you are expecting, TeaseAI is thinking you will run a module with the @Call command. But if you'll use a @StartStroking at the end of each file it could work. Maybe you'll have to try it with some test scripts. Unfortunately it will maybe cause some side effects, because you use a @CallRandom and then a @Call, there are some problems with combining different @Call commands.
I have sth similar running in my personality. It looks like this:
Stroking
1 Module Script "ChooseModule" incl. all needed checks, then runs different Scripts with @CallReturn (in Custom/CallReturn)
1 Link Script "ChooseModule" that does the same for all links.
Stroking
etc
Modules always end with an @End and Links with a @StartStroking, and it works. In this way you have full control of which module/link will be available, depending on your vars/flags. I use only @CallReturn currently, because it's the only reliable function and it works like a charm. Don't combine @Call, @CallReturn or @MiniScript.
There still exist a problem with the @Call function in 54.7 that could break the session when called after a @CallReturn or if you use a @Call/@CallReturn/@MiniScript in a Module before you use @StopStroking. I just figured it out with Daragorn and there will be a fix for some of the problems I mentioned here: viewtopic.php?f=26&t=19545#p231212
I tried to figure out the whole behavior of the combination of all the @Call etc commands. I learned that @CallReturn is the only thing that works perfectly in every case.



