Page 1 of 1

EOS HELP!

Posted: Mon Dec 30, 2019 10:49 am
by CockHeroChampion12
HI, i am not very knowledgeable with scripting and was just wondering if someone could give me a bit of help on how to say add a key into my tease and how i can use that key later on. But if the key has not been picked up the player can't proceed? TIA

Re: EOS HELP!

Posted: Mon Dec 30, 2019 11:43 am
by Drool
Hi!
First you must put something like
var key = 0
into the 'init script' (it's under 'cogwheel symbol -> general settings')
When the key is found/gained etc you need an EVAL action that says
key = 1
If you want to check the key you need an IF action that checks
key==1
or
key===0

Please note the number of = here. No typo.
For giving a variable a value you need one =
For checking two ==
And especially for checking that picky princess Zero three ===

I hope that helps. Happy coding. :smile:

Re: EOS HELP!

Posted: Mon Dec 30, 2019 11:46 am
by CockHeroChampion12
Drool wrote: Mon Dec 30, 2019 11:43 am Hi!
First you must put something like
var key = 0
into the 'init script' (it's under 'cogwheel symbol -> general settings')
When the key is found/gained etc you need an EVAL action that says
key = 1
If you want to check the key you need an IF action that checks
key==1
or
key===0

Please note the number of = here. No typo.
For giving a variable a value you need one =
For checking two ==
And especially for checking that picky princess Zero three ===

I hope that helps. Happy coding. :smile:
Thanks a ton fella! Is there a way that if no key is detected i could do a certain say line and vice versa if the key if found? and how would i go about that?

Re: EOS HELP!

Posted: Mon Dec 30, 2019 11:58 am
by Drool
You need something like that :smile: :
keyex.jpg
keyex.jpg (24.29 KiB) Viewed 990 times

Re: EOS HELP!

Posted: Mon Dec 30, 2019 12:01 pm
by CockHeroChampion12
Drool wrote: Mon Dec 30, 2019 11:58 am You need something like that :smile: :
keyex.jpg
Absolute life saver. Thanks a ton!!! :-D :-D

Re: EOS HELP!

Posted: Wed Jan 01, 2020 2:15 am
by Roblsforbobls
Drool wrote: Mon Dec 30, 2019 11:58 am You need something like that :smile: :
keyex.jpg
No key...
All is lost

Re: EOS HELP!

Posted: Fri Jan 03, 2020 10:53 am
by boundupone
Thanks for this, useful stuff