Page 1 of 1

TeaseAI RND patch

Posted: Mon Feb 23, 2026 3:05 pm
by N3R0
Hi everyone,

some of you may have come across a bug in TeaseAI, where the System Keywords for random numbers aren't replaced with numbers.

Code: Select all

#RANDNumberHigh and #RNDNumberHigh
#RANDNumber and #RNDNumber
#RANDNumberLow and #RNDNumberLow
This bug has been around since at least version 54.7 of TeaseAI and it still exists today (version 60).

So I went through the trouble of creating a backwards compatible patch for this. :cool:

Simply download the zip file attached to this post and extract the content into the Vocabulary folder of EVERY single personality that you use.
Et, voila, your scripts should work again.

Yes, I know this could be replaced with #Random[X,Y], but in case there are scripts out there, which rely on the unusual choice of numbers that the original keyword produced, I replicated the exact behaviour using only scripts.
Plus you don't have to do any search-and-replace yourself this way. ;-)

If the TAI devs ever decide to patch this in TAI itself, the System Keyword will work again and my vocab files will simply be ignored. So there's no need to worry about compatibility issues. This also applies, if your TeaseAI installation is so old, that the Keywords still work (assuming they ever did).

Edit: you need at least TeaseAI version 51 for this to work.


Happy Teasing!

Re: TeaseAI RND patch

Posted: Tue Feb 24, 2026 11:23 pm
by Sisyphuster
Thank you so much for supporting this project! I have a question for you or anyone else who might know or care… has anyone tried to use AI to help with any of the TAI coding?

Apologies if this has been discussed, I’ve looked and haven’t found

Re: TeaseAI RND patch

Posted: Wed Feb 25, 2026 3:37 am
by pepsifreak
Interesting find, I'll get it fixed for 60. Looks like it was all kinds of messed up.

Re: TeaseAI RND patch

Posted: Sun Mar 01, 2026 11:18 am
by N3R0
Sisyphuster wrote: Tue Feb 24, 2026 11:23 pm Thank you so much for supporting this project! I have a question for you or anyone else who might know or care… has anyone tried to use AI to help with any of the TAI coding?
Hi,

you're welcome.

No, not that I'm aware of. But considering the unusual syntax of TAI scripts, I don't believe that any of those "AI" sites could produce anything useful. The only thing they might help with, is for people like me (with limited creativity) to come up with script ideas (i.e. what to do [games] or to say [responses, etc.]), but probably not the actual scripts.

If your goal is to just make scripting easier for yourself, try TAIPEJ. That's a personality editor I've been working on.
Note: I'm currently working on update 1.4.0; As it turns out, there are quite a few bugs in version 1.3.0, so you might wanna wait till the update's released.
However, feel free to download 1.3.0 to already make yourself familiar with my tool.

Re: TeaseAI RND patch

Posted: Sun Mar 01, 2026 6:54 pm
by markus
Sisyphuster wrote: Tue Feb 24, 2026 11:23 pm has anyone tried to use AI to help with any of the TAI coding?
If it's really about coding (as in programming the software itself, not scripting), I use AI's rarely and only for small and easy tasks, I'd never let it do code design or figure out complex solutions.
Example:
Just 2 days ago I've added a screenshot functionality to Awakening, I have written something like that in another tool years ago, I could have searched the old code which would have to be adjusted anyway for multiscreen, open a second instance of Visual Studio and search it there, ... or writing it anew completely, ... it was simply faster, more efficient to just let the AI spit out those few lines of (common) code, but the "real" coding, I don't think AI's are there yet.

But the thought of throwing some parts of the original TAI's code to an AI and watch it struggle has something, ... I just don't wanna be responsible for making an AI explode. :lol:

Greetz!