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

DiDi
Explorer
Explorer
Posts: 19
Joined: Thu Oct 08, 2015 3:45 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Check Orgasm Locked Stat

Post by DiDi »

Hi,

I'm trying to write a little module which checks for your current stat of Orgasm Lock and then acts for the different states.

But for the life of me I can't get anything to compare correctly.

I'm trying something like this:
Spoiler: show
@NullResponse @If[#OrgasmLockDate]=['later']Then(not_locked)
@NullResponse @If[#OrgasmLockDate]<=[#CurrentDate]Then(not_locked)
(locked)
...
@End
(not_locked)
...
@End
But it just throws out errors. I tried doing it with variables instead of the System keywords but that doesn't work either.
Anyone got an idea what I'm doin wrong or how I could check if the orgasms currently are locked?

Thanks for your help.
DiDi
Explorer
Explorer
Posts: 19
Joined: Thu Oct 08, 2015 3:45 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: Check Orgasm Locked Stat

Post by DiDi »

Spoiler: show
DiDi wrote:Hi,

I'm trying to write a little module which checks for your current stat of Orgasm Lock and then acts for the different states.

But for the life of me I can't get anything to compare correctly.

I'm trying something like this:
@NullResponse @If[#OrgasmLockDate]=['later']Then(not_locked)
@NullResponse @If[#OrgasmLockDate]<=[#CurrentDate]Then(not_locked)
(locked)
...
@End
(not_locked)
...
@End

But it just throws out errors. I tried doing it with variables instead of the System keywords but that doesn't work either.
Anyone got an idea what I'm doin wrong or how I could check if the orgasms currently are locked?

Thanks for your help.
So, since nobody posted, here is an update.

I found that once Orgasms have been restricted the "OrgasmLockDate" is not replaced with "later" anymore but stays on the date. Which is fine, cause the date will still be in the past and Orgasms will be "free" again but completely fucks over the way I would check for a restriction.
I also found out, that I can't compare strings with each other, it just throws errors. Same if used with variables.

So for the life of me I can't figure out a way to check for the state of Orgasm Restriction. Any Help would be greatly appreciated!
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Check Orgasm Locked Stat

Post by genome231 »

DiDi wrote:
Spoiler: show
DiDi wrote:Hi,

I'm trying to write a little module which checks for your current stat of Orgasm Lock and then acts for the different states.

But for the life of me I can't get anything to compare correctly.

I'm trying something like this:
@NullResponse @If[#OrgasmLockDate]=['later']Then(not_locked)
@NullResponse @If[#OrgasmLockDate]<=[#CurrentDate]Then(not_locked)
(locked)
...
@End
(not_locked)
...
@End

But it just throws out errors. I tried doing it with variables instead of the System keywords but that doesn't work either.
Anyone got an idea what I'm doin wrong or how I could check if the orgasms currently are locked?

Thanks for your help.
So, since nobody posted, here is an update.

I found that once Orgasms have been restricted the "OrgasmLockDate" is not replaced with "later" anymore but stays on the date. Which is fine, cause the date will still be in the past and Orgasms will be "free" again but completely fucks over the way I would check for a restriction.
I also found out, that I can't compare strings with each other, it just throws errors. Same if used with variables.

So for the life of me I can't figure out a way to check for the state of Orgasm Restriction. Any Help would be greatly appreciated!
First: Uncertain about #OrgasmLockDate do they work within variables? I guess not, but not sure.
Secondly: I dont think variables can compares dates? Again I would guess not?
Third: I'm not quite sure about what you're trying to do? Can you elaborate more? Pretend i'm really stupid xD

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Check Orgasm Locked Stat

Post by genome231 »

If I'm correct you wanna check if the sub is in chastity? and based on that go in different directions?

You could use the @InChastity command. Do something like this..

Hi Sub
@InChastity I see you're still wearing that awful cage @Goto(Chastity)
Edge for me! @Edge
#LetTheEdgeFade
@End
(Chastity)
Well we cant have fun with you wearing that cage can we?
@End

I believe this would work, but not sure!
If the sub is not in chastity it should skip the line, if he/she is then it would proceed and trigger the @Goto

Hope this helps

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Tease Ai scripting: The HELP CORNER

Post by genome231 »

avatarbr wrote:Damn, this works:

Code: Select all

Contact3 name? @InputVar[AV_APAGAR]
ok
@NullResponse @If[AV_APAGAR]=[#Contact3]Then(Right)
Wrong
@End
(Right)
SHIT, This Works
@End
If you put the correct name (like Anna), will works.

But this dont work:

Code: Select all

Choose a Contact
[#Contact1] OK @Goto(01)
[#Contact2] OK @Goto(02)
[#Contact3] OK @Goto(03)
@DifferentAnswer #Contact1, #Contact2 or #Contact3?
(01)
You choose #Contact1
@End
(02)
You choose #Contact2
@End
(03)
You choose #Contact3
@End
Just if you type #ContactX

Just wanted to share this, because I think its cool. :lol:

Woah hold up!
This works????!
You can then use the names like that!
Awesome!!!

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
DiDi
Explorer
Explorer
Posts: 19
Joined: Thu Oct 08, 2015 3:45 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: Check Orgasm Locked Stat

Post by DiDi »

genome231 wrote:If I'm correct you wanna check if the sub is in chastity? and based on that go in different directions?

You could use the @InChastity command. Do something like this..

Hi Sub
@InChastity I see you're still wearing that awful cage @Goto(Chastity)
Edge for me! @Edge
#LetTheEdgeFade
@End
(Chastity)
Well we cant have fun with you wearing that cage can we?
@End

I believe this would work, but not sure!
If the sub is not in chastity it should skip the line, if he/she is then it would proceed and trigger the @Goto

Hope this helps

Regards
Genome
Hi,

the goal of this script would be to find out if the Orgasms are restricted. Meaning that in the Dom settings there is a limit for orgams/time and its locked in.
What I wanted to do was some kind of gambling game where you could win an free orgasm, but if you loose your orgasms would be restricted. The higher the risk, the higher the chance for that orgasm. Meaning if you want a 50% chance for an orgasm when you loose you would be restricted to e.g. 1 orgasm per 2 month.
But for this I need to check if such a restriction is already in place. And thats the problem.

I hope I could clarify the situation a bit. Thanks for your help.
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Check Orgasm Locked Stat

Post by genome231 »

DiDi wrote:
genome231 wrote:If I'm correct you wanna check if the sub is in chastity? and based on that go in different directions?

You could use the @InChastity command. Do something like this..

Hi Sub
@InChastity I see you're still wearing that awful cage @Goto(Chastity)
Edge for me! @Edge
#LetTheEdgeFade
@End
(Chastity)
Well we cant have fun with you wearing that cage can we?
@End

I believe this would work, but not sure!
If the sub is not in chastity it should skip the line, if he/she is then it would proceed and trigger the @Goto

Hope this helps

Regards
Genome
Hi,

the goal of this script would be to find out if the Orgasms are restricted. Meaning that in the Dom settings there is a limit for orgams/time and its locked in.
What I wanted to do was some kind of gambling game where you could win an free orgasm, but if you loose your orgasms would be restricted. The higher the risk, the higher the chance for that orgasm. Meaning if you want a 50% chance for an orgasm when you loose you would be restricted to e.g. 1 orgasm per 2 month.
But for this I need to check if such a restriction is already in place. And thats the problem.

I hope I could clarify the situation a bit. Thanks for your help.
Hi!

Now I understood what you wanted to do.
Sadly i'm quite sure such a thing isn't possible to do, at least not with the current commands, it would also destroy the purphase of locking it down if you could just change it through commands.
So to sum up I done think there is a command that will let you alter that number.

I have a script for Spicy 3.0 where she sorts of negotiates with you about locking your nr. of orgasms per month, later when the period has expired she will try to negotiate a lower amount of orgasms per month, she will continue to do this.
But the thing is, you have to go ahead and lock it yourself Tease-AI cant/wont do it for you.
You could enable such a system yourself through variables/flags etc, but then it becomes quite extensive work, since it needs to be integrated with all other modules for it to work.

Let me know if my response didn't made sense to you. :wave:

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
milo7
Explorer
Explorer
Posts: 12
Joined: Sat Mar 19, 2016 9:27 am
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: Check Orgasm Locked Stat

Post by milo7 »

DiDi wrote:Hi,

I'm trying to write a little module which checks for your current stat of Orgasm Lock and then acts for the different states.

But for the life of me I can't get anything to compare correctly.

I'm trying something like this:
Spoiler: show
@NullResponse @If[#OrgasmLockDate]=['later']Then(not_locked)
@NullResponse @If[#OrgasmLockDate]<=[#CurrentDate]Then(not_locked)
(locked)
...
@End
(not_locked)
...
@End
But it just throws out errors. I tried doing it with variables instead of the System keywords but that doesn't work either.
Anyone got an idea what I'm doin wrong or how I could check if the orgasms currently are locked?

Thanks for your help.
Hi there,

You're using ['later']. Try using [later], so without the quotations. That worked for me.
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Check Orgasm Locked Stat

Post by genome231 »

milo7 wrote: Hi there,

You're using ['later']. Try using [later], so without the quotations. That worked for me.
So you're saying the principle of the script works? :-)
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
DiDi
Explorer
Explorer
Posts: 19
Joined: Thu Oct 08, 2015 3:45 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: Tease Ai scripting: The HELP CORNER

Post by DiDi »

Ok,
after loosing all my hair over this I finally got it to work. Seems like you cant compare variables with simple strings, but can only compare variables with other variables (which can contain a string). I also got the check to work with a little trick.
Spoiler: show
@NullResponse @SetVar[check]=[later]
@NullResponse @SetVar[LockDate]=[#OrgasmLockDate]
@NullResponse @If[#OrgasmLockDate]==[check]Then(roulette)
@NullResponse @CheckDate(LockDate, roulette)
All this does is make a Variable with the string "later", then one with the Date from #OrgasmLockDate.
After that the first Check just looks if the LockDate is "later" and moves on.
The second one is a bit trickier. I found the CheckDate command which can compare the current Date to a Date in a variable and goes to the specified line if true.
This was needed, as I found out that the LockDate isn't changing back to "later" if the Date passed by some times. Sometimes it would go back sometimes it wouldn't and I can't be assed to test this further so I just build a workaround.
So sometimes my script would work with just the check for "later" and sometimes it would fail. But by checking for the Date aswell I made it work 100% of the time.
The first two lines are at the beginning of my script and the others are way down, but just for showing it here I scrambled them together.
Hope this helps some people do some more creative things with the build in Orgasm restriction, cause I am not a fan of chastity cages and this gives some control away without them.

Thanks for your input everyone, you helped me wrap my head around this!
If there are more questions about it, please ask. I am happy to share this knowledge ;)

@genome231: It doesnt change the LockDate btw, I dont think thats possible by commands.
User avatar
schefflera
Explorer At Heart
Explorer At Heart
Posts: 126
Joined: Wed Jun 03, 2015 10:21 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Dom/me(s): no :(
Sub/Slave(s): nope

Re: Tease Ai scripting: The HELP CORNER

Post by schefflera »

hi there.

got two small questions: is it possible to play a domme video?
You can set several vids as domme video, but i haven't found a way to let them play in a tease yet. I could use @PlayVideo[.../...] but that would be one specific video.

The other question is: can you use @PlayVideo(100), which plays 100 secs of a random video, with a specific genre like lesbian or cockhero?
Sinse cockhero videos are very long, I haven't used them in TeaseAI yet, but with this it would be fine.
( @PlayCHVideo(100) doesn't work...)

thanks for response
:innocent:
My flashteases: Have fun :)
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Tease Ai scripting: The HELP CORNER

Post by genome231 »

schefflera wrote:hi there.

got two small questions: is it possible to play a domme video?
You can set several vids as domme video, but i haven't found a way to let them play in a tease yet. I could use @PlayVideo[.../...] but that would be one specific video.

The other question is: can you use @PlayVideo(100), which plays 100 secs of a random video, with a specific genre like lesbian or cockhero?
Sinse cockhero videos are very long, I haven't used them in TeaseAI yet, but with this it would be fine.
( @PlayCHVideo(100) doesn't work...)

thanks for response
:innocent:
@PlayVideo[\...\...] can only be used to choose a random video file from a folder like this --> @PlayVideo[\GNM_Videos\VideoFolder1\*.mp4] <-- The star (*) at the end tells Tease-AI to choose a random video from a specific folder.

Have no idea about the genre thing, I would guess not - since its a relatively new command. Cant remember though but think a new command was introduced to stop a video from playing at certain points? But you'd have to check earlier posts in the main thread.

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
User avatar
genome231
Explorer At Heart
Explorer At Heart
Posts: 738
Joined: Wed Nov 12, 2014 8:35 am

Re: Tease Ai scripting: The HELP CORNER

Post by genome231 »

DiDi wrote:Ok,
after loosing all my hair over this I finally got it to work. Seems like you cant compare variables with simple strings, but can only compare variables with other variables (which can contain a string). I also got the check to work with a little trick.
Spoiler: show
@NullResponse @SetVar[check]=[later]
@NullResponse @SetVar[LockDate]=[#OrgasmLockDate]
@NullResponse @If[#OrgasmLockDate]==[check]Then(roulette)
@NullResponse @CheckDate(LockDate, roulette)
Its good work :)
With every possibility the number of games, scripts etc. goes way up. The result is an increasingly pool of tools to play with :)
And for someone like me who enjoys writing its awesome! :D

Regards
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project! :-)
User avatar
Mistress Jenifer
Mistress of the Heel
Mistress of the Heel
Posts: 492
Joined: Fri Apr 02, 2010 11:49 pm
Gender: Female
Sexual Orientation: Bisexual/Bi-Curious
I am a: Mistress
Sub/Slave(s): dream_on

Re: Tease Ai scripting: The HELP CORNER

Post by Mistress Jenifer »

Hello all;
been tinkering a bit (mostly out of boredom with nyx) with Tease AI and, well...

How would someone set up a loop with a chance exit? I read through most (okay I skimmed) the topics linked at the start. And nothing fully addressed this idea. In theory I want to do the following with a module;
Have the person enter into a cycle with the understanding of "If the picture shown has X, then do Y. If not continue". The idea is that even if they do Y or continue, they are basically just shown a new image and have the same rule apply. Or they have a chance to escape the loop and move on.

Originally, I thought of just setting it into a block similar to this;

Code: Select all

(EdgeCycle)
I wonder how many matches there are @NewBlogImage
[done, Done, Finished, finished, edged] Excellent moving on @Chance65(EdgeCycle)
Looks like thats all the photos for you #PetName
I do so hope you enjoyed it
but it spit out an error, so I presume that is because you can't reflect back into the same block from within the block. But even replacing the "@Chance65(EdgeCycle)" with something like "@Chance65(EdgeStart)" which reflects to the previous block which is a mirror image of the block above word for word except the Cycle replaced with Start. It gave me an error.
I really do not want to write out hundreds of these blocks just to have an endless cycle that they have a 35% chance to escape from. Because even as it stands there is a small chance if I write 100 of these, they can still get all 100 and then break the module essentially as I may not have set it a way out of that slim situation.

Anyone able to help?
Thanks!
~Jen
Image
Image
*Credit to LDM for the banners, love his work thought I'd promote it. Clicking on them will bring you to his deviant art account.*
User avatar
schefflera
Explorer At Heart
Explorer At Heart
Posts: 126
Joined: Wed Jun 03, 2015 10:21 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Dom/me(s): no :(
Sub/Slave(s): nope

Re: Tease Ai scripting: The HELP CORNER

Post by schefflera »

Mistress Jenifer wrote:Hello all;
been tinkering a bit (mostly out of boredom with nyx) with Tease AI and, well...

How would someone set up a loop with a chance exit? I read through most (okay I skimmed) the topics linked at the start. And nothing fully addressed this idea. In theory I want to do the following with a module;
Have the person enter into a cycle with the understanding of "If the picture shown has X, then do Y. If not continue". The idea is that even if they do Y or continue, they are basically just shown a new image and have the same rule apply. Or they have a chance to escape the loop and move on.

Originally, I thought of just setting it into a block similar to this;

Code: Select all

(EdgeCycle)
I wonder how many matches there are @NewBlogImage
[done, Done, Finished, finished, edged] Excellent moving on @Chance65(EdgeCycle)
Looks like thats all the photos for you #PetName
I do so hope you enjoyed it
but it spit out an error, so I presume that is because you can't reflect back into the same block from within the block. But even replacing the "@Chance65(EdgeCycle)" with something like "@Chance65(EdgeStart)" which reflects to the previous block which is a mirror image of the block above word for word except the Cycle replaced with Start. It gave me an error.
I really do not want to write out hundreds of these blocks just to have an endless cycle that they have a 35% chance to escape from. Because even as it stands there is a small chance if I write 100 of these, they can still get all 100 and then break the module essentially as I may not have set it a way out of that slim situation.

Anyone able to help?
Thanks!
~Jen
Hi,
I hope, I can help here.
First of all, you need a @AcceptAnswer or @DifferentAnswer after a "question". Like:
I wonder how many matches there are @NewBlogImage
[done, Done, Finished, finished, edged] Excellent moving on @Chance65(EdgeCycle)
@AcceptAnswer Excellent moving on @Chance65(EdgeCycle)
Looks like...

I think that have gave you the error

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
This little code lets loops you at least 5 times through. and when you got more, you get a 50:50 chance to escape


Here's another oportunity: when there are 2 genres you want to show, but only one counts

Code: Select all

Get ready to stroke your #Cock
To other cock's #Lol @SetVar[Number]=[0]
(Begin1)
Get ready
@NullResponse @SetVar[StrokeToCock]=[0] @Chance50(Softcore1)
(Cock1)
#StrokeToCock @ShowGayImage @ChangeVar[StrokeToCock]=[StrokeToCock]+[1] @ChangeVar[Number]=[Number]+[1]
@NullResponse @If[StrokeToCock]>[5]Then(StrokeToCockFinished1)
@NullResponse @Chance50(Softcore1)
@NullResponse @Goto(Cock1)
(Softcore1)
#StrokeToCockNot @ShowSoftcoreImage @ChangeVar[StrokeToCock]=[StrokeToCock]+[1]
@NullResponse @If[StrokeToCock]>[5]Then(StrokeToCockFinished1)
@NullResponse @Chance50(Cock1)
@NullResponse @Goto(Softcore1)
(StrokeToCockFinished1)
mmmh, that was #Hot
Let's see. You have seen #Var[Number] pics with a cock @If[Number]>[3]Then(Enough1)
@RandomText(I know you want more, That's not enough, #Gonna do more, By far not enough, You want to see more) @Goto(Begin1)
(Enough1)
I think that's enough for now
This code show a "cock" or a softcore image. after 5 pictures it checks, if one has seen 'enough' cocks :smile:


Hope i could help :innocent:
My flashteases: Have fun :)
Post Reply