Just a few remarks :)schefflera wrote:
I don't really understand what you mean with "If the picture shown has X, then do Y. If not continue"
But I think, you can solve this with Variables.
Hope, this example could help you:
Code: Select all
Now let's see what we got... @Goto(LetsGo) @SetVar[AtLeast5]=[0] (LetsGo) #Surrender yourself to that image @ShowImage @ChangeVar[AtLeast5]=[AtLeast5]+[1] [done, finished,...] Excellent moving on @AcceptAnswer Excellent moving on @NullResponse @If[AtLeast3]>[4]Then(Decide) @NullResponse @Goto(LetsGo) (Decide) @NullResponse @Goto(LetsGo, Finish) (Finish) We are done for now pet
Hope i could help
Notice the first line --> The script will run the @Goto() and never get a chance to do the @SetVar[], these have to be switched.
One more thing when providing outcomes after a question like this:
How are you?
[bad,horrible]
[Good,fine]
@DifferentAnswer Bad or fine?
Notice the second response line [Good,fine] <-- Earlier! (not sure if this will still cause a bug) You could not have responses in capital letter! so "Good" would need to be changed to "good".
Another thing -> do not seperate responses with spacing unless its suppose to :)
Meaning: [good, fine] should be [good,fine] unless its [good,i'm fine]
And finally the final @Goto() command --> have a 50% chance to bug unless the name later is actually --> ( Finish) and not (Finish)
So the code needs to change a bit
Code: Select all
Now let's see what we got... @SetVar[AtLeast5]=[0] @Goto(LetsGo)
(LetsGo)
#Surrender yourself to that image @ShowImage @ChangeVar[AtLeast5]=[AtLeast5]+[1]
[done, finished,...]Excellent moving on
@AcceptAnswer Excellent moving on
@NullResponse @If[AtLeast3]>[4]Then(Decide) @Goto(LetsGo)
(Decide)
@NullResponse @Goto(LetsGo,Finish)
(Finish)
We are done for now pet
Regarding the "main" bug :)
Just like schefflera wrote, when posing a question --> Always include @DifferentAnswer or @AcceptAnswer
Because as soon as you write your response, Tease-AI will look for an answer, if the program cant find one --> Bug
@DifferentAnswer is a negative test --> if no corresponding answer was found, it will not accept it and produce the outcome.
@AcceptAnswer is a positive test --> it will accept the response no matter what and move on:
Ex 1.
How are you?
[bad]Awww
[good]Yaaa
@DifferentAnswer bad or good?
If I was ro respond with "bad", Tease-AI would reply with "Awww"
If I was to respond with "could be better" Tease-AI would respond with "bad or good?" and wait for a new response until i replied with bad or good
Ex 2.
How are you?
[good]Yaa
[bad]Aww
@AcceptAnswer I see
If I was ro respond with "bad", Tease-AI would reply with "Aww"
If I was to respond with "could be better" Tease-AI would respond with "I see" and MOVE on.
Regards
Genome





