Page 10 of 16
Re: Here are EOS tutorials
Posted: Fri Apr 05, 2024 4:28 pm
by New Nick
Can it also work if you want to revert a story to a segment/block of pages ?
Or can it only work with specific commands like the eval you showed?
Or also possible for instance for a string of 10 or 20 slides in one box to become repetitive throughout the tease?
Thanks a lot !!!
Re: Here are EOS tutorials
Posted: Wed Apr 10, 2024 6:55 pm
by PlayfulGuy
New Nick wrote: Fri Apr 05, 2024 4:08 pm
Thanks a lot
However , what happens if i want to use those exact 3 slides (the edging box) several times .
Wont that make me always go back after the edging box to one page specifically ?
Or can i make it somehow possible to go temporarily into an "edging box" and then proceed from where i left ?
WIth the option to have that "edging box" maybe active on 20 or 30 different occassions ?
If you understand what i mean ...
Ideal would be to just go from for instance BOX D to BOX E (but with a temporary visit to BOX Edge)
And then later i would like to use that temporary Edge box maybe also when i go from BOX G to H and X to Y and so on ...
Thank you
Have you tried the demo I created for you? It does exactly what you are asking for.
You can use the same DoSomeEdges segment from anywhere in your tease, as many times as you want. The only requirement is that before you "call" it, you set a variable to tell it where to continue afterward.
So in your example, "Box D" sets variable "AfterEdging" to "Box E", then goes to "Box Edge". Box Edge will then go to "Box E".
Exactly like you asked for.
PG
Re: Here are EOS tutorials
Posted: Wed Apr 10, 2024 7:04 pm
by PlayfulGuy
New Nick wrote: Fri Apr 05, 2024 4:28 pm
Can it also work if you want to revert a story to a segment/block of pages ?
Or can it only work with specific commands like the eval you showed?
Yes, and again this is exactly what the demo does. The eval command I showed is simply one example. You will have many such commands at different places in your "boxes". Box A can detour to your repetitive segment as many times as you want.
New Nick wrote: Fri Apr 05, 2024 4:28 pm
Or also possible for instance for a string of 10 or 20 slides in one box to become repetitive throughout the tease?
Thanks a lot !!!
You can have as many pages (slides) as you want in any box. Using your terms, each box consists of a series of slides (pages in EOS terms). Some of those slides detour to the "repetitive" segments, telling the repetitive segment where to resume afterward.
Download the json source using the link in my first post, then create a new EOS tease in your account and import that code (restore from backup), so you can see better what it looks like in the EOS editor.
PG
Re: Here are EOS tutorials
Posted: Thu Apr 11, 2024 12:49 am
by Visitor from Bound Anna
I am going to have to try this EOS thingy. Turn mental orgasms into games for all to enjoy. Or some. Nothing is for everybody, but ehh, ya'll know what I mean.
Re: Here are EOS tutorials
Posted: Thu Apr 11, 2024 1:26 am
by PlayfulGuy
Visitor from Bound Anna wrote: Thu Apr 11, 2024 12:49 am
I am going to have to try this EOS thingy. Turn mental orgasms into games for all to enjoy. Or some. Nothing is for everybody, but ehh, ya'll know what I mean.
The EOS editor is a little hard to find. You can find it here:
viewtopic.php?t=22767
PG
Re: Here are EOS tutorials
Posted: Thu Apr 11, 2024 1:31 am
by Visitor from Bound Anna
PlayfulGuy wrote: Thu Apr 11, 2024 1:26 am
Visitor from Bound Anna wrote: Thu Apr 11, 2024 12:49 am
I am going to have to try this EOS thingy. Turn mental orgasms into games for all to enjoy. Or some. Nothing is for everybody, but ehh, ya'll know what I mean.
The EOS editor is a little hard to find. You can find it here:
viewtopic.php?t=22767
PG
Thanks P. I looked it over and see the actions buttons on the left. Have to come back and learn them. Might avoid a cart before horse situation, that is dreaming up an idea, getting excited about it, only t find it is not possible as I dreamed
Re: Here are EOS tutorials
Posted: Thu Apr 11, 2024 8:01 pm
by bbb11__
Another “coding” question… always appreciate the help here!
Is there a way to display an array as a vertical list or paragraph in EOS?
Currently it shows up as a single line and goes off the screen. And I’d rather not type out array[0], array[1], etc…
Re: Here are EOS tutorials
Posted: Fri Apr 12, 2024 9:24 pm
by undeniable_denial
bbb11__ wrote: Thu Apr 11, 2024 8:01 pm
Is there a way to display an array as a vertical list or paragraph in EOS?
Currently it shows up as a single line and goes off the screen. And I’d rather not type out array[0], array[1], etc…
Code: Select all
var vertical_list = your_array.join("<br>");
Re: Here are EOS tutorials
Posted: Thu Jun 06, 2024 10:15 am
by LewdRem
How do I get a "Edge "Button or an "Oops" Button to the side of the page like all the others do ?
Re: Here are EOS tutorials
Posted: Thu Jun 06, 2024 10:53 am
by Drool
LewdRem wrote: Thu Jun 06, 2024 10:15 am
How do I get a "Edge "Button or an "Oops" Button to the side of the page like all the others do ?
This is done with notifications; please see here:
viewtopic.php?p=361691#p361691
Re: Here are EOS tutorials
Posted: Thu Jun 06, 2024 12:35 pm
by LewdRem
Thanks !
Re: Here are EOS tutorials
Posted: Thu Oct 10, 2024 8:26 pm
by bbb11__
Hoping someone can help me with a bit of code.
All variables are initially set to 0. After running the code, I always get runs = NaN. Any ideas what I’m missing? I’m a beginner coding and haven’t done it in a while.
Code: Select all
If( x == 1){
Runs = runs + third;
Var third = second;
Var second = first;
Var first = 1;
}
If(x == 2){
Runs = runs + second;
Var third = first;
Var second = 1;
Var first = 0;
}
If(x == 3){
Runs = runs + third + second + first;
Var third = 1;
Var second = 0;
Var first = 0;
}
If(x == 4)
Runs = runs + third + second + first + 1;
Var third = 0;
Var second = 0;
Var first = 0;
}
Re: Here are EOS tutorials
Posted: Sun Oct 13, 2024 10:11 pm
by undeniable_denial
Hi bbb
Coding is case sensitive, which means "Runs" and "runs" are two different variables.
Also "If" and "Var" won't work for the same reason.
Re: Here are EOS tutorials
Posted: Mon Oct 14, 2024 8:30 am
by bbb11__
Capitals are from being on mobile to post in the forum. Actual code on the trade is all 100% lowercase.
If I alter a single variable inside the if statement it works, but 2+ variables seems to give an error.
Re: Here are EOS tutorials
Posted: Mon Oct 14, 2024 1:10 pm
by PlayfulGuy
bbb11__ wrote: Mon Oct 14, 2024 8:30 am
Capitals are from being on mobile to post in the forum. Actual code on the trade is all 100% lowercase.
If I alter a single variable inside the if statement it works, but 2+ variables seems to give an error.
We'd need to see your actual code, and more of it, to answer then. The context matters.
Is that code part of a function you define, in an eval in a page, etc...
Where do you initialize the variables? In the init module?
Given the error two possibilities come to mind:
- One or more of your variables are not actually initialized.
- Perhaps you're mixing references to local and global variables. In the snippet you posted, "runs" is an implicit global variable, everything else is a local variable. If "runs", or any of those local variables are not initialized your result will be undefined/NaN.
Hope that helps.
PG