Page 1 of 1

EOS script and tricks

Posted: Thu Jan 31, 2019 1:51 pm
by FATALES
Write here tutorials.

Password pages:
pas1.jpg
pas1.jpg (158.73 KiB) Viewed 2598 times

Re: EOS script and tricks

Posted: Thu Jan 31, 2019 6:22 pm
by kerkersklave
I would recommend password == "zdsadfgzt123"
In your example you are using a comparison of numbers, so the password may only contain digits and leading zeros will be ignored.

Re: EOS script and tricks

Posted: Sun Feb 03, 2019 1:19 pm
by FATALES
Counter points for knowledge competition or test.
I did not come up with the need to change the name of the variable.

var score = points+1
var score2 = score+1
etc.
po2.jpg
po2.jpg (163.26 KiB) Viewed 2279 times
po3.jpg
po3.jpg (163.26 KiB) Viewed 2279 times
po4.jpg
po4.jpg (187.18 KiB) Viewed 2279 times

Re: EOS script and tricks

Posted: Sun Feb 03, 2019 2:55 pm
by FeetTickler
There is a way much easier way to do this you just have to declare

Code: Select all

var score = 0
in the init then use

Code: Select all

score = score + 1
and here your score is 1 etc. There is no need to use a new variable every time

Re: EOS script and tricks

Posted: Sun Feb 03, 2019 3:58 pm
by FATALES
FeetTickler wrote: Sun Feb 03, 2019 2:55 pm There is a way much easier way to do this you just have to declare

Code: Select all

var score = 0
in the init then use

Code: Select all

score = score + 1
and here your score is 1 etc. There is no need to use a new variable every time
I also thought it might work. I tried.

Re: EOS script and tricks

Posted: Sun Feb 03, 2019 5:00 pm
by FeetTickler
If you want to optimise it even more you can even do this :

Code: Select all

score += 1