[EOS] random text
[EOS] random text
Hi, newbie here. I don't have much experience in coding but trying to learn how to create a tease in the EOS editor. Is there a way to insert random text? I've seen other teases somehow set different teasing/edge lines in the init script and call them back during the tease itself but I'm having trouble understanding what they did. Help is appreciated!
-
Thamrill
- Explorer At Heart

- Posts: 301
- Joined: Thu Jan 03, 2013 4:55 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Submissive
Re: [EOS] random text
I wrote a simple example tease whose script you can see here: https://milovana.com/webteases/geteossc ... 76607a5063kleeeee wrote: Mon Jan 05, 2026 6:34 am Hi, newbie here. I don't have much experience in coding but trying to learn how to create a tease in the EOS editor. Is there a way to insert random text? I've seen other teases somehow set different teasing/edge lines in the init script and call them back during the tease itself but I'm having trouble understanding what they did. Help is appreciated!
Basically, in the init script you create all possible options, like so:
Code: Select all
cars = ["Saab", "Volvo", "BMW"]; Code: Select all
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
Code: Select all
text=cars[getRandomInt(cars.length)]Then, in the say action, you set the text to be variabe "text"
In principle, you can directly place "cars[getRandomInt(cars.length)]" in the say action, and skip the eval.
A practical way could be to create something like:
Code: Select all
flavourChar1= ["Line 0", "Line 1", "Line 2", "Line 3"];
flavourChar2= ["Line 0", "Line 1", "Line 2", "Line 3"]; Code: Select all
flavourChar1[getRandomInt(flavourChar1.length)] Code: Select all
flavourChar2[getRandomInt(flavourChar2.length)] Re: [EOS] random text
thank you so much!

