Here are EOS tutorials

All about the past, current and future webteases and the art of webteasing in general.
---
User avatar
fauna84
Explorer
Explorer
Posts: 10
Joined: Mon May 30, 2022 8:28 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch

Re: Here are EOS tutorials

Post by fauna84 »

Hi, I have a problem and hope someone can help me fix it.

For my tease I want to be able to select a fetish, with the choice resulting in different pictures used. My idea was to set a value like:

fetish=true;

and then using an "if" action like this:

if
fetish=true;

then
link to pic from gallery 1

else
link to pic from gallery 2

This doesn't seem to work however. With the setting to true it works fine, but when the value=false then the tease blacks out.
Is it just not possible this way or am I missing something?
User avatar
Jackall
Explorer
Explorer
Posts: 76
Joined: Sun Aug 02, 2020 2:22 pm
Gender: Male
I am a: Submissive

Re: Here are EOS tutorials

Post by Jackall »

fauna84 wrote: Sun Jun 19, 2022 6:28 pm
This doesn't seem to work however. With the setting to true it works fine, but when the value=false then the tease blacks out.
Is it just not possible this way or am I missing something?
Use ==
= simply sets the value , == is comparing, === is strict comparing
User avatar
fauna84
Explorer
Explorer
Posts: 10
Joined: Mon May 30, 2022 8:28 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch

Re: Here are EOS tutorials

Post by fauna84 »

Jackall wrote: Sun Jun 19, 2022 6:34 pm
fauna84 wrote: Sun Jun 19, 2022 6:28 pm
This doesn't seem to work however. With the setting to true it works fine, but when the value=false then the tease blacks out.
Is it just not possible this way or am I missing something?
Use ==
= simply sets the value , == is comparing, === is strict comparing
Thanks for your reply, it did not work unfortunally. I did find the solution however, when using the if action, one does not use an = at all, just the name of the fetish. This was explained perfectly in the tutorial but I just didn't read it well enough, shame on me! :wall:
User avatar
Niveket
Explorer
Explorer
Posts: 20
Joined: Wed Sep 06, 2017 9:01 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Submissive
Dom/me(s): Searching for Dom
Location: Sweden

Re: Here are EOS tutorials

Post by Niveket »

Hello im creating a tease based on random images but i would like shown images to not be shown again if possible as in there are 100 paths for the goto to take and when it shows 1 it removes that one from the random queue if that makes sense.

Edit... I might have found a way to do it for now which was making the page disable itself upon it showing up which seems to work for now but if there are easier/ better ways feel free to answer my question.

Edit2. Have a new problem that is... annoying at best... the server seems to disconnect every hour or so... So it stops saving and just says error up in the corner but Its hard to notice and I just continue on working for an hour or 2 until i want to preview something and then i notice the error thus making me lose 1-2 hours of progress and you'd think I would have learnt after the first time it happened but i get so into creating it that its happened 4 times now.

But what made me want to write this is cause this time I actually tried to save it by backing up my progress and uploading it after reloading the page but all the stuff I added that are in the backup are also just errors for some reason or not errors but stuff like this

Must be atleast 1 characters long (which the page is way beyond)

Does not match regex pattern (honestly don't get this one though)

Every page I added during the desync with the server has these errors when trying to upload the back up :/
Imma Bondage Slut :love: :love: :love:
Lamei
Explorer
Explorer
Posts: 81
Joined: Wed Jan 30, 2019 8:23 pm

Re: Here are EOS tutorials

Post by Lamei »

Edit... I might have found a way to do it for now which was making the page disable itself upon it showing up which seems to work for now but if there are easier/ better ways feel free to answer my question.
Hi Niveket

I've solved this problem before. I used EOS's random page + disable page function but found it dosen't work well. Here is my solution. At the start of your tease put page numbers into an array (array is called Girls here but you can call it whatever you like) like this example and make another variable = 0:

var Girls = [0,1,2,3,4,5,6,7,8,..........,99]
var ImageIndex = 0


Then shuffle the array like a deck of cards:

var x = 0
var location1 = 0
var location2 = 0
var tmp = 0
for(x = 0; x < 1000; x++){
location1 = Math.floor((Math.random() * Girls.length));
location2 = Math.floor((Math.random() * Girls.length));
tmp = Girls[location1];
Girls[location1] = Girls[location2];
Girls[location2] = tmp
}


In the main part of your tease, when you are choosing the next image use the GOTO (with Eval) function to goto the next card in the deck:

GOTO Girls[ImageIndex]


After viewing an image don't forget to increase the ImageIndex by one to select the next card in the deck:

ImageIndex++
ElectricEel
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sun Jan 31, 2021 3:37 pm
Gender: Male
Sexual Orientation: Straight

Re: Here are EOS tutorials

Post by ElectricEel »

Hi! :wave:

I have quite a simple question on buttons:

I have variables available based on which I whould like to show or hide buttens, but what do I need to put in the Eval statement to make a button (in)visible?

Thanks!
User avatar
Bright_Sprinkler
Explorer
Explorer
Posts: 21
Joined: Sat Aug 28, 2021 8:11 pm
Contact:

Re: Here are EOS tutorials

Post by Bright_Sprinkler »

ElectricEel wrote: Tue Jul 12, 2022 9:32 pm I have variables available based on which I whould like to show or hide buttens, but what do I need to put in the Eval statement to make a button (in)visible?
If you scroll down on the left side of one option you should find a toggle "Always visible (no script)".
With that one you can switch between always visible and the EVAL-input field.

This field seems to expect a Boolean expression.
True, false or stuff like "myVariable1 === 10".
Image
ElectricEel
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sun Jan 31, 2021 3:37 pm
Gender: Male
Sexual Orientation: Straight

Re: Here are EOS tutorials

Post by ElectricEel »

Great, thanks!

I was thinking way too complicated and searching for a button handle or an object method to (de)activate a button. Never thought it would be so simple as just putting a boolean variable in the eval statement :-D
User avatar
Lady N
Explorer
Explorer
Posts: 29
Joined: Thu Mar 11, 2021 9:03 pm
Gender: Female
Sexual Orientation: Bisexual/Bi-Curious
I am a: Mistress
Sub/Slave(s): My husband, called Mika on the internet.

Re: Here are EOS tutorials

Post by Lady N »

Hello there.
I'm looking for a web browser who is compatible of EOS editor... Looks like a pain to find one.
Is there a big bug today or is it really an editor with so much restrictions ?

All on windows 10 :

I tried Vivaldi (Chrome based), and it's impossible to write a "Say action" :
Image
I tried to write "Hello slave.", it seems the auto-save trigger on every letter and reset the cursor in the field...
I also see duplicate letter while testing...

I tried Firefox and Edge and i can't go after the name of the tease in the list...
Clicking on the name of the tease load a page then come back on list.
Image

On my Android phone :
Brave : same result as Vivaldi on windows 10.





Edit : ok, i just found what block the use on Firefox...
If you forbid the load of google analytics script you can't open a tease in edition... :unsure: :closedeyes:
But only the opening, after it's open i can block it and reload and it's ok...
Mistress of my husband Mika. And when i'm looking for some other fun mistress of a random.

Note: the Avatar is not my property. PM me if it's yours.
Lamei
Explorer
Explorer
Posts: 81
Joined: Wed Jan 30, 2019 8:23 pm

Re: Here are EOS tutorials

Post by Lamei »

Forgotten24 wrote: Thu Jul 21, 2022 2:53 am I have question how can I get a random number lets say you attack and your attack have to be more than 10 to work. I hope someone understand what I meant.
Hi Forgotten

//remember to setup variables before start of tease
var attackvalue = 0
var attackresult = 0

//during the attack calculate a random number from 1 to 100
attackvalue = Math.floor(Math.random() * 100) + 1

//if attack value is more than 10, then attack is successful. Do something with the result such as skip to //another page etc.
if(attackvalue > 10){
attackresult = 1
}
User avatar
sweden123
Explorer
Explorer
Posts: 78
Joined: Thu Sep 01, 2011 9:45 am

Re: Here are EOS tutorials

Post by sweden123 »

Is there any way to display multiple images at the same time?
User avatar
Shattered
Experimentor
Experimentor
Posts: 1243
Joined: Fri Jan 11, 2013 6:41 pm
I am a: Switch
Location: United Kingdom

Re: Here are EOS tutorials

Post by Shattered »

sweden123 wrote: Wed Oct 19, 2022 12:48 pm Is there any way to display multiple images at the same time?
You could make an image manually in photoshop that displays both images that you want to display at once and upload that. Otherwise no way.

My question for y'all -

I have 4 variables
temp1
temp2
temp3
temp4

All will have a numbered value. I want to compare these 4 variables and change another variable based on the result.

E.G. if temp1 is the largest, add 3 points to temp5. If temp2 is the second largest, add 2 points to temp6, If temp 3 is the largest, etc.

And also compare the 4 values and set one value to zero based on the lowest.

I can think of a non-code savvy way to do this via -

Code: Select all

Are any of my 4 desired variables 0?

If not, minus one from each, then repeat the test.

If two are 0, assign both the lowest result.

But I'm not sure this is the most elegant way to do this or if it has any flaws :lol:
User avatar
Bright_Sprinkler
Explorer
Explorer
Posts: 21
Joined: Sat Aug 28, 2021 8:11 pm
Contact:

Re: Here are EOS tutorials

Post by Bright_Sprinkler »

Can you clarify that a bit?

Your example
E.G. if temp1 is the largest, add 3 points to temp5. If temp2 is the second largest, add 2 points to temp6, If temp 3 is the largest, etc.
does not seem to match the algorithm you described afterwards, or am I missing something?

What do you want to to exactly with the values?

This:
Are any of my 4 desired variables 0?
If not, minus one from each, then repeat the test.
If two are 0, assign both the lowest result.
Can easily be translated to code, no problem here.
Without more info I can't tell if it has any flaws.
You could increase it's elegance by using an array instead of single variables, if it makes sense in the context.
User avatar
Shattered
Experimentor
Experimentor
Posts: 1243
Joined: Fri Jan 11, 2013 6:41 pm
I am a: Switch
Location: United Kingdom

Re: Here are EOS tutorials

Post by Shattered »

Bright_Sprinkler wrote: Sun Oct 23, 2022 8:29 pm Can you clarify that a bit?

Your example
E.G. if temp1 is the largest, add 3 points to temp5. If temp2 is the second largest, add 2 points to temp6, If temp 3 is the largest, etc.
does not seem to match the algorithm you described afterwards, or am I missing something?

What do you want to to exactly with the values?

This:
Are any of my 4 desired variables 0?
If not, minus one from each, then repeat the test.
If two are 0, assign both the lowest result.
Can easily be translated to code, no problem here.
Without more info I can't tell if it has any flaws.
You could increase it's elegance by using an array instead of single variables, if it makes sense in the context.
My workaround is bound to have problems aye :lol:

I have 2 circumstances I'm looking at right now -


1. temp1, temp2, temp3, temp4 will be different numbers.
2. lets call four more variables userAlisascore, userMilascore, userKatoscore, userBrookescore
3. The user will complete inputs to generate temp1,2,3,4.
4. If temp1 has the most points, then userAlisascore gets 3 points. the same works for 2 and userMilascore, 3 and userKatoscore, 4 and userBrookescore.
5. Then the second highest temp variable gives the score gives 2 points in the same way, the third gives 1 point.

Part 2- After the 'day' of the tease is over, and users have done other actions to increase userAlisascore, userMilascore, userKatoscore, userBrookescore scores, compare all of them. Then set the lowest to become a new variable - e.g. if Alisa scored the lowest, userLowestscore = Alisa


Thanks!
User avatar
Bright_Sprinkler
Explorer
Explorer
Posts: 21
Joined: Sat Aug 28, 2021 8:11 pm
Contact:

Re: Here are EOS tutorials

Post by Bright_Sprinkler »

Aight, I guess something like that could work (just some pseudo code):

Code: Select all

// save values in two arrays !their index must be matching!
// index 0 in temps is temp1 and index 0 in scores is alisa, etc.
// I'd recommend using an enum for index access or to at least leave a comment somewhere that states which index correlates to which value
// note: instead of using two arrays we could also use just one with custom objects inside, basically something like a dictionary
temps = [temp1, temp2, temp3, temp4]
scores = [alisa, mila, kato, brooke]
lowestScore // (can either be name, enum or array index)

// we'll need some functions to find the values we need
// I guess examples for these can be found online e.g. https://stackoverflow.com/questions/14017794/how-to-find-the-second-highest-number-in-javascript
// these will search for the required value and return the index of the array
function findMax(array) -> index
function findSecondMax(array) -> index
function findThridMax(array) -> index
function findMin(array) -> index

// we'll create a dedicated function that can be called from the pages
function increaseScores() {
	// loop three times, cause we need first, second and third highest value
	loop i = 0 to 3 {
		let index = -1;	
		// depending on our loop index we will search for the needed value
		switch (i)
			-> 0
			index = findMax(temps)
			-> 1
			index = findSecondMax(temps)
			-> 2
			index = findThridMax(temps)
	
	// now that we have the index of e.g. the highest value, we can just change the score in the scores array, since the index of both arrays are matching
	// the score amount to increase can be calculated using the loop index
	// i->0 = 3 | i->1 = 2 | i->2 = 1
	scores[index] += (3 - i) 
	}
}

// to set the lowest score we can do something like this
function setLowestScore() {
	lowestScore = findMin(scores)
}
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], indyc, Nice-Log and 10 guests