Eos question

This is the place for general discussions on fetishes, sexuality and anything else. What's on your mind right now?
Post Reply
vichobucho
Explorer
Explorer
Posts: 6
Joined: Sat Oct 19, 2019 8:01 pm

Eos question

Post by vichobucho »

Hello everyone,
I will try to expalain myself as best i can.
Can I limit the number adding , i mean i have pages that after you complete you receive a reward (points) and i want to stop adding points when it reaches lets say 100/100 , without changing pages or adding others.I mean by coding. (I don't have any experience coding stuff !! )
Thanks for reading my mess.
undeniable_denial
Explorer At Heart
Explorer At Heart
Posts: 109
Joined: Sat Aug 24, 2019 11:42 am
Gender: Male
Location: Germany

Re: Eos question

Post by undeniable_denial »

If you want to skip pages when the limit is reached you can use a goto-action inside an if-action with the condition

Code: Select all

points>=100

If you want to prevent the variable points from getting bigger than 100, you can use the function Math.min, which returns the smallest of its arguments:

Code: Select all

points = Math.min( 100 , points +5 );
(instead of points = points + 5; )
Post Reply