First EOS Tease help

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
User avatar
Citopia
Curious Newbie
Curious Newbie
Posts: 4
Joined: Tue Mar 23, 2021 8:42 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

First EOS Tease help

Post by Citopia »

Hiya! Yesterday I decided I could make an EOS Tease and I've looked through most the tutorials and there are some things I couldn't find. Mostly it's just variable stuff and maybe some other stuff, but if anyone had time to help me that would be simply amazing! :love: :love:
fapnip
Explorer At Heart
Explorer At Heart
Posts: 431
Joined: Mon Apr 06, 2020 1:54 pm

Re: First EOS Tease help

Post by fapnip »

Citopia wrote: Sun Aug 08, 2021 12:48 am but if anyone had time to help me that would be simply amazing! :love: :love:
I'm sure there are plenty of people here willing to help, but without knowing exactly what you need help with, it'll be tough to know what to tell ya.

That said, if you haven't already, start here:
viewtopic.php?f=2&t=22570
dark0512
Explorer
Explorer
Posts: 56
Joined: Sat Aug 20, 2011 10:13 pm
I am a: Switch

Re: First EOS Tease help

Post by dark0512 »

The link above and a lot of testing worked well for me.

I did learn a lot from creating my first tease vs the one i'm working on now. That said, i'm happy to help if you have something specific.
User avatar
Citopia
Curious Newbie
Curious Newbie
Posts: 4
Joined: Tue Mar 23, 2021 8:42 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: First EOS Tease help

Post by Citopia »

Thank you both, I would have been on to see your replies last night but my power went out due to a storm so I couldn't work on it either. So I started it and I'm a little confused how you would make someone type their name in to it and the tease save it as a constant variable through the tease and even after you end a session and use a code to get into the next part of the tease. Thank anyone who helps me in advance, I really appreciate it!
fapnip
Explorer At Heart
Explorer At Heart
Posts: 431
Joined: Mon Apr 06, 2020 1:54 pm

Re: First EOS Tease help

Post by fapnip »

Citopia wrote: Mon Aug 09, 2021 4:55 am I'm a little confused how you would make someone type their name in to it and the tease save it as a constant variable through the tease
Create a Prompt action. Set the Variable name for that prompt action to the variable you want to set, for example: playerName

You can now use that variable throughout the tease. (For example, add an eval to a Say action with the <> button and enter playerName as the expression. Now whatever you entered in the prompt will show there.)
Citopia wrote: Mon Aug 09, 2021 4:55 am and even after you end a session and use a code to get into the next part of the tease.
For this you need to enable the "Storage" module. (Gear icon in Eos Editor -> Storage.) Once you've done that, you can save/load variables to/from "Tease Storage".

Loading stored values is often done in your Init Script. For example, to load a playerName variable, you would add something like this to your InitScript:

Code: Select all

var playerName = teaseStorage.getItem('pn')
Note that 'pn' is the "key" for the value we're loading/storing. While you could use anything for your keys, like 'An unnecessarily long storage key', we get no more than 1024 total characters for tease storage, including all key names, all values, and all the other fluff used to encode them. To reduce the amount of space we use, we keep our key names short -- so I used 'pn' to represent 'playerName' in this example.

If 'pn' wasn't set before, the variable playerName will be set undefined. If you'd rather playerName be initialized to something else as a default value, you could do something like:

Code: Select all

var playerName = teaseStorage.getItem('pn') || 'Sam the bionic monkey'
Right after your Prompt -> playerName action, you can store the value in playerName to tease storage in an Eval action containing something like:

Code: Select all

teaseStorage.setItem('pn', playerName)
Post Reply