Some really really basic EOS questions.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Thank you. I still can’t get it to work, unfortunately. Link sent.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Thanks to this thread (and especially indyc) I think I've got all the basics I need to actually finish this thing.
Super helpful!
Now to just do the work.
Super helpful!
Now to just do the work.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Another day, another challenge!
I'm trying to have the MC determine what the antagonist is going to call him using choices instead of an entered value.
At init I set: petname=null;
So far so good.
Now I'm trying to change that value based on the choice. So I set a CHOICE:
PET
BITCH
SLUT
etc
And for each choice, I set a new eval: petname=pet; petname=bitch; petname=slut; etc.
But when I run it, all I get is "null."
I'm sure I'm doing something wrong with the petname=pet, but I don't know what.
Any suggestions?
I'm trying to have the MC determine what the antagonist is going to call him using choices instead of an entered value.
At init I set: petname=null;
So far so good.
Now I'm trying to change that value based on the choice. So I set a CHOICE:
PET
BITCH
SLUT
etc
And for each choice, I set a new eval: petname=pet; petname=bitch; petname=slut; etc.
But when I run it, all I get is "null."
I'm sure I'm doing something wrong with the petname=pet, but I don't know what.
Any suggestions?
Re: Some really really basic EOS questions.
I "think" the eval has to say
petname="PET";
petname="BITCH";
petname="SLUT";
etc.
Try to put quotes, it should work. I just played around with it on my own just now and it seems to work for me.
For other info, If you use if statements with names in the future it would to say:
petname=="PET"
Which would trigger if the name was PET for example. It also seems to be case sensitive if you ever wanted to use it.
petname="PET";
petname="BITCH";
petname="SLUT";
etc.
Try to put quotes, it should work. I just played around with it on my own just now and it seems to work for me.
For other info, If you use if statements with names in the future it would to say:
petname=="PET"
Which would trigger if the name was PET for example. It also seems to be case sensitive if you ever wanted to use it.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
This is great. Thanks.
It's working now.
It's working now.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Tease is coming along nicely, I think. Maybe 85% done?
A couple questions,
1. Is there a way to compare multiple variables to see which is highest? I’ve got the following hidden variables:
Pussy, Ass, Sub, Bi, Tits
And I want to know which is highest at the end, then have a hidden automatic choice to send the player to various endings. Is there a way to do that? Can I find the two highest so I could have say a ass/bi ending vs an ass/sub one?
2. Is there a way to use gifs? I’ve seen them in a few teases. Can the be incorporated painlessly?
Thanks!
A couple questions,
1. Is there a way to compare multiple variables to see which is highest? I’ve got the following hidden variables:
Pussy, Ass, Sub, Bi, Tits
And I want to know which is highest at the end, then have a hidden automatic choice to send the player to various endings. Is there a way to do that? Can I find the two highest so I could have say a ass/bi ending vs an ass/sub one?
2. Is there a way to use gifs? I’ve seen them in a few teases. Can the be incorporated painlessly?
Thanks!
Re: Some really really basic EOS questions.
in javascript you would do:
highest = 0;
highest_name = "";
if (Pussy > highest) {
highest_name = "Pussy";
highest = Pussy;
}
if (Ass > highest) {
highest_name = "Ass";
highest = Ass;
}
if (Sub > highest) {
highest_name = "Sub";
highest = pussy;
}
if (Bi > highest) {
highest_name = "Bi";
highest = Bi;
}
if (Tits > highest) {
highest_name = "Tits";
highest = Tits;
}
then you have the name of the variable for future work and the highest value if that's what you need immediately. If you want to find everything that's tied with the highest, you just do another round of if statements to find the ones that are equal to your highest.
if (highest_name = "Pussy") {
out_text = "Pussy";
if (Pussy == Ass) {
out_text += ", Ass";
}
if (Pussy == Sub) {
out_text += ", Sub";
}
if (Pussy == Bi) {
out_text += ", Bi";
}
if (Pussy == Tits) {
out_text += ", Tits";
}
}
... repeat for each variable ...
then you'll have a comma separated list of endings that can be parsed later.
highest = 0;
highest_name = "";
if (Pussy > highest) {
highest_name = "Pussy";
highest = Pussy;
}
if (Ass > highest) {
highest_name = "Ass";
highest = Ass;
}
if (Sub > highest) {
highest_name = "Sub";
highest = pussy;
}
if (Bi > highest) {
highest_name = "Bi";
highest = Bi;
}
if (Tits > highest) {
highest_name = "Tits";
highest = Tits;
}
then you have the name of the variable for future work and the highest value if that's what you need immediately. If you want to find everything that's tied with the highest, you just do another round of if statements to find the ones that are equal to your highest.
if (highest_name = "Pussy") {
out_text = "Pussy";
if (Pussy == Ass) {
out_text += ", Ass";
}
if (Pussy == Sub) {
out_text += ", Sub";
}
if (Pussy == Bi) {
out_text += ", Bi";
}
if (Pussy == Tits) {
out_text += ", Tits";
}
}
... repeat for each variable ...
then you'll have a comma separated list of endings that can be parsed later.
Re: Some really really basic EOS questions.
For gifs, for many months of work I was putting individual pictures separated by super short timers of .05s or .1s.
However, since then fapnip created this program you can use to make that process much quicker: https://codepen.io/fapnip/full/abLOyPE
It also has an added benefit of making the animation smoother when users play with a slower internet speed.
Unfortunately the gif still has to be broken up into jpegs. I use free websites to do this but I am sure others have a better way. You also need to add those jpegs to a gallery in your tease in the correct order which I used to do one by one. However, if you take your list of jpegs that are already in the right order, have the file explorer right in front of the EOS editor gallery uploader. Turn your view to detail in your file explorer in windows. You then click the first photo and shit click to the bottom of the photo set(this highlights them). Then without clicking anything else, middle mouse wheel scroll to the top of the highlighted photo set and click and drag the top photo into the EOS gallery and that should upload them all in the correct order.
This sounds overcomplicated but it is the only way I have found to get them all in order without doing them one at a time. The traditional click and drag puts them "mostly" in the same order but there will always be 1 to 3 photos not in order you have to search for and re-arrange manually which takes more time and doesn't do so well with fapnip's program.
I am available for any questions you might have about using their animator.
However, since then fapnip created this program you can use to make that process much quicker: https://codepen.io/fapnip/full/abLOyPE
It also has an added benefit of making the animation smoother when users play with a slower internet speed.
Unfortunately the gif still has to be broken up into jpegs. I use free websites to do this but I am sure others have a better way. You also need to add those jpegs to a gallery in your tease in the correct order which I used to do one by one. However, if you take your list of jpegs that are already in the right order, have the file explorer right in front of the EOS editor gallery uploader. Turn your view to detail in your file explorer in windows. You then click the first photo and shit click to the bottom of the photo set(this highlights them). Then without clicking anything else, middle mouse wheel scroll to the top of the highlighted photo set and click and drag the top photo into the EOS gallery and that should upload them all in the correct order.
This sounds overcomplicated but it is the only way I have found to get them all in order without doing them one at a time. The traditional click and drag puts them "mostly" in the same order but there will always be 1 to 3 photos not in order you have to search for and re-arrange manually which takes more time and doesn't do so well with fapnip's program.
I am available for any questions you might have about using their animator.
Re: Some really really basic EOS questions.
Something like (untested, should work)ritewriter wrote: Sat Feb 26, 2022 6:25 am 1. Is there a way to compare multiple variables to see which is highest? I’ve got the following hidden variables:
Pussy, Ass, Sub, Bi, Tits
And I want to know which is highest at the end, then have a hidden automatic choice to send the player to various endings. Is there a way to do that? Can I find the two highest so I could have say a ass/bi ending vs an ass/sub one?
Code: Select all
// Assuming your variables are set something like:
bi = 34
pussy = 126
tits = 233
ass = 233
sub = 10
// Create a function to do the work (best to put this in init script):
function getMaxInObject(a){
return Object.keys(a).reduce(function(r,b){
if (r.val === undefined || a[b] > r.val) {
r.text = b
r.tie = []
r.val = a[b]
}
if (a[b] === r.val) {
r.tie.push(b)
}
return r
},{})
}
// Get max associated text/val/tie for value (do this where you need):
var maxInObj = getMaxInObject({'Pussy':pussy, 'Tits':tits, 'Ass':ass, 'Sub':sub, 'Bi':bi})
// Do something with the result
console.log(maxInObj.text) // Should log 'Tits' on your browser's console.
console.log(maxInObj.tie.length) // Should output 2 on your browser's console.
console.log(maxInObj.tie.join(', ')) // Should output 'Tits, Ass' on your browser's console.
console.log(maxInObj.val) // Should output 233 on your browser's console.
// Assuming you have page names like "end-Pussy", "end-Tits", etc. you could go to your alternate endings like:
pages.goto('end-' + maxInObj.tie[Math.floor(Math.random()*maxInObj.tie.length)])
// Or, if you need some exceptions on ties instead of randomly going to one of the ties
if (maxInObj.tie.length > 1 && maxInObj.tie.indexOf('Ass') > -1) {
// Create a message to use in a say action
tieMessage = "Oh! So I see you like "
+ maxInObj.tie.filter(function(t){return t !== 'Ass'}) // filter "Ass" from ties
.join(', ') // Join all non Ass ties with a comma
.toLowerCase() // Make "Pussy, Tits" into "pussy, tits"
.replace(/, ([^,]*)$/, ' and $1') // convert "pussy, tits, bi" to "pussy, tits and bi"
+ " as much as ass!"
// go to a page that will display that message and do other things.
pages.goto('end-tieWithAss')
}
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Thank you both! The gif seems like more effort than it’s worth for this tease, but the sorting things are great. Will give them a try.
Re: Some really really basic EOS questions.
If you find a gif you really want I can do it for you. It doesn't take much time once you are used to it but up to you. (I'd love to see them in your tease)ritewriter wrote: Sat Feb 26, 2022 9:30 pm Thank you both! The gif seems like more effort than it’s worth for this tease, but the sorting things are great. Will give them a try.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Thank you for the kind offer but I think I’m going to focus on finishing a “ basic” version ASAP and save the idea I had for gifs for the next revision.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Dumbass question.
In the EOS editor, for skipping dialogues...
Is the red side of the switch for skippable? Or is that non-skippable and the white side is skippable? I confuse.
In the EOS editor, for skipping dialogues...
Is the red side of the switch for skippable? Or is that non-skippable and the white side is skippable? I confuse.
- ritewriter
- Explorer At Heart

- Posts: 454
- Joined: Sun Jan 02, 2022 6:51 am
- Gender: Male
- Sexual Orientation: Open to new ideas!
- I am a: Switch
Re: Some really really basic EOS questions.
Aha! Red is skippable, white is not. I thought it was the other way around. Oops.

