Page 1 of 1

EOS Help

Posted: Wed Feb 05, 2020 10:19 am
by CockHeroChampion12
Hi, i am wanting to use a prompt to ask the user what size his dick is, i am wanting to make it so depending on what he says will say different things.

I.E. Smaller than 4 inches says one thing, 5-8 says something different and 9+ something different.

Re: EOS Help

Posted: Wed Feb 05, 2020 11:14 am
by undeniable_denial
I was going to cover this in my turoials in 2 weeks or so. Here is the short version:

The promt-action will store the input in a variable, let's say size.

After that you're going to create 3 If-actions with these conditions:

Code: Select all

size<5

Code: Select all

size>=5 && size<=8

Code: Select all

size>8
Please note that something needs to happen if the player enters 4.5, too. Because of that saying "smaller than 4, bigger than 5" is not going to work.

Inside of each if, create a say-action with what you want.


All of that only works, if the player enters a valid number and not e.g. the word "six". I will cover how to deal with this in my tutorial.

Re: EOS Help

Posted: Wed Feb 05, 2020 11:21 am
by CockHeroChampion12
undeniable_denial wrote: Wed Feb 05, 2020 11:14 am I was going to cover this in my turoials in 2 weeks or so. Here is the short version:

The promt-action will store the input in a variable, let's say size.

After that you're going to create 3 If-actions with these conditions:

Code: Select all

size<5

Code: Select all

size>=5 && size<=8

Code: Select all

size>8
Please note that something needs to happen if the player enters 4.5, too. Because of that saying "smaller than 4, bigger than 5" is not going to work.

Inside of each if, create a say-action with what you want.


All of that only works, if the player enters a valid number and not e.g. the word "six". I will cover how to deal with this in my tutorial.
Absolute legend! Thanks a ton! :-D :-D

P.S. i can't wait for your next tutorial it's the exact bits i am wanting to do but don't understand them fully!!!

Re: EOS Help

Posted: Wed Feb 05, 2020 1:18 pm
by kerkersklave
undeniable_denial wrote: Wed Feb 05, 2020 11:14 am All of that only works, if the player enters a valid number and not e.g. the word "six". I will cover how to deal with this in my tutorial.
Actually, the comparisons "work" for every input, if it is not a valid number, just every comparison evaluates to false.

So "six" < 0 || "six" >= 0 evaluates to false.

To handle these errors you just should have an explicit condition for every case you want and then an action that is reached if no condition matches. There you can just jump back to the prompt.