Tease Ai scripting: The HELP CORNER

Webteases are great, but what if you're in the mood for a slightly more immersive experience? Chat about Tease AI and other offline tease software.

Moderator: 1885

User avatar
avatarbr
Experimentor
Experimentor
Posts: 1185
Joined: Fri Aug 18, 2006 3:33 am
Gender: Male
Sexual Orientation: Straight

Re: Tease Ai scripting: The HELP CORNER

Post by avatarbr »

One thing I noticed is online images need 1 oe 2 seconds to load (not sure if my connection problem) so, fast slideshows will cause a problem. Works fine with local images.

I don't know if is possible to pre-load online images.
flying1
Explorer
Explorer
Posts: 15
Joined: Wed Nov 15, 2017 3:08 pm

Re: Tease Ai scripting: The HELP CORNER

Post by flying1 »

Daragorn wrote: Thu Dec 14, 2017 7:28 pm
What's the use for hard-coding a string inside a var? Why not using a #Vocab? in anycase, your string value is preset by you when you write the script, so why using a var?
To create something like object :blush: I am not good at programming so I use strings for it :blush:
Daragorn
Explorer At Heart
Explorer At Heart
Posts: 556
Joined: Fri Nov 06, 2015 1:16 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Daragorn »

flying1 wrote: Wed Dec 20, 2017 10:06 am
Daragorn wrote: Thu Dec 14, 2017 7:28 pm
What's the use for hard-coding a string inside a var? Why not using a #Vocab? in anycase, your string value is preset by you when you write the script, so why using a var?
To create something like object :blush: I am not good at programming so I use strings for it :blush:
Objects? I can't get what you mean, honestly.... Can you give me an example? I really can't understand what you'd like to achieve..
flying1
Explorer
Explorer
Posts: 15
Joined: Wed Nov 15, 2017 3:08 pm

Re: Tease Ai scripting: The HELP CORNER

Post by flying1 »

Daragorn wrote: Wed Dec 20, 2017 1:55 pm Objects? I can't get what you mean, honestly.... Can you give me an example? I really can't understand what you'd like to achieve..
Example: If SomeFuckingVariable = SomeFuckingMeaning then ThisVariable=ThisOption. ThatVariable=ThatOption and so on... :-D
Daragorn
Explorer At Heart
Explorer At Heart
Posts: 556
Joined: Fri Nov 06, 2015 1:16 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Daragorn »

flying1 wrote: Wed Jan 03, 2018 9:57 pm Example: If SomeFuckingVariable = SomeFuckingMeaning then ThisVariable=ThisOption. ThatVariable=ThatOption and so on... :-D
But that kind of logic can't be used in teaseAI in any case....it is not a programing language...the only thing you can do with the @if command is to compare values and then goto somewhere in the script, you can't modify the value of something based on the @if result: @If[VarName]>[varName2]Then(Goto Line)

Since the value of "SomeFuckingVariable" is hardcoded by you, the if statement will be pointless since it will always be true....you can achieve the same result by setting flags instead.
Instead of doing something like:
@SetVar[SomeFuckingVariable]=[vibrator]
And then do an
@If[SomeFuckingVariable]=[vibrator]Then(goHere)
(goHere)
so your stuff if the var was set to "vibrator"

You can do the same (and much easier) with flags:
@SetFlag(SomeFuckingVariable)
And then
@Flag(SomeFuckingVariable) do your stuff if the flag is present
Harry2stroke
Explorer
Explorer
Posts: 53
Joined: Wed Nov 16, 2011 6:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Harry2stroke »

Hi everyone

I have a question or some kind of idea to avatar and PtheV for the updates of MissBlue and HoT
I like your personalities a lot, but i would like to implement some "options" at the start of a session and actually i have no glue, where and how i can implement such kind of things.

In fact nearly all personalities get to the stroking rhythm without asking, if the sub is alone or if he/she is already undressed.
or ask how much time you have, actually i dont have that much time always to complete a whole session

ok you can set the session time in the settings, but i think it would feel better, if domme is asking for that specially and you can reply, whether you have 10 minutes or 3 hours or no time limit .....

also I think a little start up conversation would give this whole thing some more real feelings.
for example some kind of small talk about the last session (would be great, if domme would have some kind of memory/flags of the last session ..... but actually i really dont know, how to script this kind of things

or as mentioned above to clearify, if the sub is alone at home, or for example girlfriend/wife/parents/kids are also there ?
maybe sitting in the room next to you ....
if someone is home the session should be some kind of more "carefully" (maybe you cannot undress fully or something like that)

if you are not alone, domme is asking maybe for some kind of quicky (define session time at this point) maybe ask sub, how much time he has, and then set the session time together.
or the other way round, if you are alone and have time, domme could decide to have an extra long session for example ....

maybe you have some ideas where and how to use this kind of ideas.

cheers
User avatar
avatarbr
Experimentor
Experimentor
Posts: 1185
Joined: Fri Aug 18, 2006 3:33 am
Gender: Male
Sexual Orientation: Straight

Re: Tease Ai scripting: The HELP CORNER

Post by avatarbr »

Harry2stroke wrote: Mon Jan 08, 2018 7:49 pm Hi everyone

I have a question or some kind of idea to avatar and PtheV for the updates of MissBlue and HoT
I like your personalities a lot, but i would like to implement some "options" at the start of a session and actually i have no glue, where and how i can implement such kind of things.

In fact nearly all personalities get to the stroking rhythm without asking, if the sub is alone or if he/she is already undressed.
or ask how much time you have, actually i dont have that much time always to complete a whole session

ok you can set the session time in the settings, but i think it would feel better, if domme is asking for that specially and you can reply, whether you have 10 minutes or 3 hours or no time limit .....

also I think a little start up conversation would give this whole thing some more real feelings.
for example some kind of small talk about the last session (would be great, if domme would have some kind of memory/flags of the last session ..... but actually i really dont know, how to script this kind of things

or as mentioned above to clearify, if the sub is alone at home, or for example girlfriend/wife/parents/kids are also there ?
maybe sitting in the room next to you ....
if someone is home the session should be some kind of more "carefully" (maybe you cannot undress fully or something like that)

if you are not alone, domme is asking maybe for some kind of quicky (define session time at this point) maybe ask sub, how much time he has, and then set the session time together.
or the other way round, if you are alone and have time, domme could decide to have an extra long session for example ....

maybe you have some ideas where and how to use this kind of ideas.

cheers
About the time, there are a command to increase or decrease the session range, but will add or remove time, not set a specific time. Ex: you can add 10 or 30 minutes to a session, but can't set a 30 minutes session (maybe you can remove 120 minutes to be sure to have 0 minutes, and then add 30 minutes, but I don't know if it's works like that).

The memory about the last session it's possible with flags, just need to put the flag on the [orgasm allowed/denied] parts. Just make sure to delete after using in the next session.

The other ideas can be done, but require editing every file where some conflict can happens, like finding any line where she mention you are naked, when you are not.
Spielers
Explorer At Heart
Explorer At Heart
Posts: 301
Joined: Mon Jan 09, 2017 8:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Spielers »

Is it possible to open a link in a browser for a video or can I view a Video from xhamster youporn ... in tease AI
Harry2stroke
Explorer
Explorer
Posts: 53
Joined: Wed Nov 16, 2011 6:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Harry2stroke »

Hey guys

Is there any command for Random Glitter ?
Something like #RandomGlitter(Contact1, Contact2, Contact3) or something similar ?
To choose the glitters randomly

Thanks
User avatar
markus
Explorer At Heart
Explorer At Heart
Posts: 641
Joined: Tue Nov 18, 2008 11:09 pm

Re: Tease Ai scripting: The HELP CORNER

Post by markus »

Spielers wrote: Tue Jan 16, 2018 5:04 pm Is it possible to open a link in a browser for a video or can I view a Video from xhamster youporn ... in tease AI
As far as I see you cannot start an extern application (like the browser) and also I think once I have tested to play an URL with @PlayVideo ... didn't worked also, iirc that is.

Harry2stroke wrote: Thu Mar 08, 2018 8:06 pm Is there any command for Random Glitter ?
Something like #RandomGlitter(Contact1, Contact2, Contact3) or something similar ?
Mayb there are other ways but why not something like:

blabla... @Goto(c1,c2,c3)
(c1)
add contact 1 here @Goto(continue)
(c2)
add contact 2 here @Goto(continue)
(c3)
add contact 3 here @Goto(continue)

(continue)
@Contact1 further blabla
@Contact2 further blabla
@Contact3 further blabla

I didn't tested that, ... just a thought I wanted to throw into the room. :-)
Harry2stroke
Explorer
Explorer
Posts: 53
Joined: Wed Nov 16, 2011 6:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by Harry2stroke »

Thanks Markus

Just thought there is a command like RandomText(blablabla) also for @AddRandomGlitter(C1,C2,C3)



Thanks anyway
lotar232
Explorer
Explorer
Posts: 76
Joined: Sat Nov 01, 2008 6:34 pm

Re: Tease Ai scripting: The HELP CORNER

Post by lotar232 »

I'm curious about concating input....

I have a place where the user inputs a chore description periodically... I'd like some how to accumulate these descriptions in a log... it could just be string concatenation inside a variable file (it seems just like a file :rolleyes: )

any ideas if this is possible?

I've tried CPP/python things like @SetVar[log]=[log]+[newitem]...but no dice... is there anyway to concatenate strings?
User avatar
markus
Explorer At Heart
Explorer At Heart
Posts: 641
Joined: Tue Nov 18, 2008 11:09 pm

Re: Tease Ai scripting: The HELP CORNER

Post by markus »

lotar232 wrote: Mon Mar 19, 2018 9:01 pm I'm curious about concating input....

I have a place where the user inputs a chore description periodically... I'd like some how to accumulate these descriptions in a log... it could just be string concatenation inside a variable file (it seems just like a file :rolleyes: )

any ideas if this is possible?

I've tried CPP/python things like @SetVar[log]=[log]+[newitem]...but no dice... is there anyway to concatenate strings?
Hi!

I didn't tested that, but I guess you'd need to use @ChangeVar instead of @SetVar:

@ChangeVar[log]=[log]+[newitem]

(You'd need to use @SetVar for first creating the variable, but once it's created you should use @ChangeVar, no guarantee that it works, but worth a try I guess)
User avatar
tigrotto
Explorer At Heart
Explorer At Heart
Posts: 547
Joined: Sat Jul 15, 2017 5:13 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by tigrotto »

envy wrote: Mon Apr 02, 2018 2:58 pm Is there a way to subtract from a variable? I feel like Im missing something obvious but @ChangeVar[a]=[a]-[1] doesn't work?
You can use @ChangeVar to add/subtract/multiply/divide. Check the command guide in Tease AI(Tools>Command Guide) if you want to know more.
I just tested it with Daragorn's patch 55.3 and markus' patch 55.5 and it works(see the .rar archive below if you want) so there must be something on your side.

This is the script I used for the test:

Code: Select all

#GreetSub

Setting var @SetVar[a]=[2]
a: @ShowVar[a]
Changing @ChangeVar[a]=[a]-[1]
a: @ShowVar[a]
Deleting @DeleteVar[a]

Ending script... @EndTease
@End
Which patch are you using?
What were you trying to do?
Attachments
ChangeVar test.rar
(669 Bytes) Downloaded 42 times
User avatar
tigrotto
Explorer At Heart
Explorer At Heart
Posts: 547
Joined: Sat Jul 15, 2017 5:13 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Tease Ai scripting: The HELP CORNER

Post by tigrotto »

envy wrote: Tue Apr 17, 2018 1:40 pm thanks for the response

Your script works...I guess mine had a typo, but seems to work now
You're welcome!
envy wrote: Tue Apr 17, 2018 1:40 pm I have another question if you (or anyone else) has a second:

Code: Select all

 question? @InputVar[benchmarkIntensity]
[1,2,3] response1
[4,5,6] response2
[7,8,9,10] response3
@AcceptAnswer tell me from 1 to 10
text 1
This code amlost works, but needs a second user input before it will say "text 1". how can I fix it? Also can i loop it if the user doesnt input a number from 1 to 10 or do i need to accept whatever they put?
If you use @AcceptAnswer TeaseAI will accept your answer(whatever it may be) and will proceed with the script.
For example if you type 11, your domme will say tell me from 1 to 10 and then text 1.
You should have used @DifferentAnswer tell me from 1 to 10. In this case, if you type something that is not present in your choices she will say tell me from 1 to 10 and will wait until you type something else. TAI will continue doing this until you input a number from 1 to 10.

To get rid of the double input, you should use the filter @Variable. Here's what you should do:

Code: Select all

(question)
question? @InputVar[benchmarkIntensity]
@Variable[benchmarkIntensity]<[1]Or[benchmarkIntensity]>[10] I need a number from 1 to 10 @Goto(question)
@Variable[benchmarkIntensity]>=[1]And[benchmarkIntensity]<=[3] Response 1
@Variable[benchmarkIntensity]>=[4]And[benchmarkIntensity]<=[6] Response 2
@Variable[benchmarkIntensity]>=[7]And[benchmarkIntensity]<=[10] Response 3

text 1
If you use the filter @Variable TeaseAI will output in the chat what is after the @Variable filter only if the conditions set by @Variable are met.

The first @Variable line checks if the value of benchmarkIntensity is less than 1 or greater than 10. For example, if you type 0 or 11, she will say I need a number from 1 to 10 and will ask you to type again the value for benchmarkIntensity.
If benchmarkIntensity is between 1 and 10 TeaseAI will move to the second @Variable line without outputting anything in the chat. If benchmarkIntensity is between 1 and 3 your domme will say response1, otherwise TAI will go to the next line and will repeat the process.

Then your domme will say text1.

You can use @Variable and @If with Or and And. You can use as many Or/And per @Variable/@If you want, but you can't use both And and Or with in the same @Variable/@If, as you can read here and here.

The operators you can use with @Variable and @If are: =, <, >, <=, >= and <>.

Bye! :wave:

EDIT: Don't use the code I gave you if you have more than a few intervals to check, because it will slow your script. For example, if you have 10 intervals and 10 responses what I would do is this:

Code: Select all

(question)
question? @InputVar[benchmarkIntensity]
@Variable[benchmarkIntensity]<[1]Or[benchmarkIntensity]>[10] I need a number from 1 to 10 @Goto(question)
@NullResponse @RapidCodeOn
@NullResponse @If[benchmarkIntensity]>=[1]And[benchmarkIntensity]<=[3]Then(Response 1)
@NullResponse @If[benchmarkIntensity]>=[4]And[benchmarkIntensity]<=[6]Then(Response 2)
@NullResponse @If[benchmarkIntensity]>=[7]And[benchmarkIntensity]<=[10]Then(Response 3)
...
...
@NullResponse @If[benchmarkIntensity]>=[X]And[benchmarkIntensity]<=[Y]Then(Response 10)
@NullResponse @RapidCodeOff

(Response 1)
This is response 1 @Goto(go to text 1)

(Response 2)
This is response 2 @Goto(go to text 1)

(Response 3)
This is response 3 @Goto(go to text 1)

...

...

(Response 10)
This is response 10 @Goto(go to text1)

(go to text 1)
text 1
Read the description of the @RapidCodeOn command in the Tease AI command guide (Open Tease AI>Tools>Command Guide) to know more about it.

Bye! :wave:
Last edited by tigrotto on Tue Apr 17, 2018 3:36 pm, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: Lockedelot and 32 guests