Lyoko Freak: 2005 - 2015. Return to the past now....

It is currently Mon May 13, 2024 1:44 am

Ask Aelita script

This is a forum for anything directly connected to this website. This is NOT for Code Lyoko discussion

Moderators: The Administrators, Moderators


Does the script suck?

Indeed, it does
3
38%
Doesn't but change it
2
25%
Leave it in peace
3
38%
 
Total votes : 8

Ask Aelita script

Postby darktemplar » Fri Mar 24, 2006 9:47 am

I just wanted to see the source of the script... and I saw:
Code: Select all
time = new Date()
randominteger = time.getSeconds()


$)%&*!#$)%(&!#$%(!#&$%!)(&!!!!

Who pasted something like this script!! Isn't it better to sum up all the letters and divide by length, or do something else?

For those who don't understand this:

Decision is made depending on current second.
Darktemplar is Back

Now doing: eee... something that looks and talks like a forum!
User avatar
darktemplar offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 401
Joined: Thu Mar 23, 2006 3:13 pm
Location: New Antioch, Shakuras

Postby Jeremified » Fri Mar 24, 2006 7:55 pm

WTF, that is the lamest code I've ever seen!! :wtf:
There are only 60 possibilities to that, because there are 60 seconds. It would be better if it counted milliseconds.
I voted that the script sucked.
thank you all for the good memories <3
User avatar
Jeremified offline
Lyoko Freak
Lyoko Freak
 
Posts: 6051
Joined: Thu Feb 02, 2006 11:40 pm

Postby Jeremie Lover » Fri Mar 24, 2006 8:01 pm

:umm: I don't get it
I Was Sissi Delmas Lover
Image
Image
User avatar
Jeremie Lover offline
Lyoko Team Member
Lyoko Team Member
 
Posts: 662
Joined: Thu Nov 24, 2005 7:57 pm
Location: Dangerous And Moving

Postby Star Way » Fri Mar 24, 2006 9:25 pm

Ehh. I didn't write the script, so whatever.

Although, admittedly I am more than slightly amused that you guys care so much. xDD
Last edited by Star Way on Sat Mar 25, 2006 4:10 am, edited 1 time in total.
Don't bother sending me messages or anything, I'm not in charge of the site anymore.

But I do love dancing.
User avatar
Star Way offline
Founder & Site Admin
Founder & Site Admin
 
Posts: 4919
Joined: Fri Apr 22, 2005 9:02 pm

Postby Lyokofreak » Fri Mar 24, 2006 10:30 pm

Cause' they're techies! :clap:
How to write an infinite Jesus pwns loop in PHP:
while($_SERVER[PHP_SELF])
{
echo "Jesus pwns!";
}
User avatar
Lyokofreak offline
Star Fighter
Star Fighter
 
Posts: 1123
Joined: Sun Oct 09, 2005 10:41 am

Postby Jeremified » Fri Mar 24, 2006 11:33 pm

LyoKoHaCk wrote:Cause' they're techies! :clap:

LyoKoHaCk speaks the truth XD.
thank you all for the good memories <3
User avatar
Jeremified offline
Lyoko Freak
Lyoko Freak
 
Posts: 6051
Joined: Thu Feb 02, 2006 11:40 pm

Postby darktemplar » Sat Mar 25, 2006 11:02 am

Have you seen the whole script?
Darktemplar is Back

Now doing: eee... something that looks and talks like a forum!
User avatar
darktemplar offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 401
Joined: Thu Mar 23, 2006 3:13 pm
Location: New Antioch, Shakuras

Postby TB3 » Sat Mar 25, 2006 6:44 pm

darktemplar wrote:Have you seen the whole script?


Most of us wouldn't understand it mate
LORD HIGH TRANSLATOR!

Joined Sept. 16th 2005, Post Tally 6423 (as of January 21st 2010)
User avatar
TB3 offline
Site Admin
Site Admin
 
Posts: 5467
Joined: Wed Dec 07, 2005 8:49 pm
Location: Knee-deep in Italian pronouns

Postby Lotho » Sat Mar 25, 2006 6:56 pm

Jeremified wrote:WTF, that is the lamest code I've ever seen!! :wtf:
There are only 60 possibilities to that, because there are 60 seconds. It would be better if it counted milliseconds.
I voted that the script sucked.


Yes I'm sure she would like to spend the time to encorporate 60,000 possibilities. For the purpose it is random enough. It's not like someone's life is dependant on its entropy.
User avatar
Lotho offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 358
Joined: Sat Jul 16, 2005 4:11 am

Postby darktemplar » Sat Mar 25, 2006 7:03 pm

There could be 60 possiblities, but there are not. It is made by a range of selections. I'll translate you the code:

Code: Select all
time = new Date()

Means write current date to variable[something like a box you put something in and read this information] called time
Code: Select all
randominteger = time.getSeconds()

A property of time is called, which returns second number from time, and stores it in randominteger
Code: Select all
if (document.input1.textfield.value == "") {
alert("I'm afraid I've failed to get your answer, because you didn't ask me a question!")
return
}

document[means WWW page question is on].input1[in general, set of buttons, textboxes, guys from HTML will understand].textfield[a text field from input1].value[it's value]. If It's null, zero, there is no question, so it displays message, and stops the script by invoking return.

Code: Select all
if (randominteger <= 3) answer="Goodness, I don't think so. Your chances are, unfortunately, very poor."
if ((randominteger >= 4) && (randominteger <= 6)) answer ="You've got about an 85% chance of that happening. :)"
if ((randominteger >= 7) && (randominteger <= 9)) answer ="I doubt it... But maybe you should ask Ulrich instead?"
if ((randominteger >= 10) && (randominteger <= 12)) answer ="Oh yes! Definitely!"
if ((randominteger >= 13) && (randominteger <= 15)) answer ="I'm afraid I don't know. I'm sorry..."
if ((randominteger >= 16) && (randominteger <= 18)) answer ="Good heavens, CERTAINLY not!"
if ((randominteger >= 19) && (randominteger <= 21)) answer ="When you're ready to stop crying, I'll give you your answer. :)"
if ((randominteger >= 22) && (randominteger <= 24)) answer ="Could you ask me that later? My central processing unit is having trouble multi-tasking."
if ((randominteger >= 25) && (randominteger <= 27)) answer ="Probably not... But I can tell you this: Jeremie is a wonderful friend of mine."
if ((randominteger >= 28) && (randominteger <= 30)) answer ="I should think so!"
if ((randominteger >= 31) && (randominteger <= 33)) answer ="I'm sorry, but I don't think so."
if ((randominteger >= 34) && (randominteger <= 36)) answer ="Of course, silly!"
if ((randominteger >= 37) && (randominteger <= 39)) answer ="You've got a 30% chance of that happening. I'm sorry..."
if ((randominteger >= 40) && (randominteger <= 42)) answer ="I hope not."
if ((randominteger >= 43) && (randominteger <= 45)) answer ="If you really think so, then it shall be."
if ((randominteger >= 46) && (randominteger <= 48)) answer ="I really don't know about that. I'll have to ask Jeremie."
if ((randominteger >= 49) && (randominteger <= 51)) answer ="Please re-phrase your question. :)"
if ((randominteger >= 52) && (randominteger <= 54)) answer ="Definitely!"
if ((randominteger >= 55) && (randominteger <= 57)) answer ="I don't think so..."
if ((randominteger >= 58) && (randominteger <= 60)) answer ="Don't make me laugh! Of course not! :)"


That's simple, && means AND. So it randominteger, current second count, is more or equal 28 AND less or equal than 30, the "I should think so!" Appears.

I think it sucks, because it can answer a lot of things on one question, depending when is it given.


There's some more code after this I showed you, but it's not so important.
Darktemplar is Back

Now doing: eee... something that looks and talks like a forum!
User avatar
darktemplar offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 401
Joined: Thu Mar 23, 2006 3:13 pm
Location: New Antioch, Shakuras

Postby Lotho » Sat Mar 25, 2006 7:37 pm

I know how to read Javascript already, thank you.

All I am saying is that the code fits the job. There is no reason why you would need a more advanced pseudo random option selector.
User avatar
Lotho offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 358
Joined: Sat Jul 16, 2005 4:11 am

Postby darktemplar » Sun Mar 26, 2006 5:53 am

But it's really no problem. There's no problem writing new script. And most people who visit it and receive different answers on same question.. that's not natural, and makes you :umm:

Lotho wrote:I know how to read Javascript already, thank you.


I wrote it for those,

TB3 wrote:Most of us wouldn't understand it mate
Darktemplar is Back

Now doing: eee... something that looks and talks like a forum!
User avatar
darktemplar offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 401
Joined: Thu Mar 23, 2006 3:13 pm
Location: New Antioch, Shakuras

Postby Lotho » Sun Mar 26, 2006 12:13 pm

darktemplar wrote:But it's really no problem. There's no problem writing new script. And most people who visit it and receive different answers on same question.. that's not natural, and makes you :umm:


So are you suggesting that it maybe should checksum the characters and compute an answer from that or keep a DB that could find similar strings?
User avatar
Lotho offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 358
Joined: Sat Jul 16, 2005 4:11 am

Postby darktemplar » Sun Mar 26, 2006 12:16 pm

Exactly!
Darktemplar is Back

Now doing: eee... something that looks and talks like a forum!
User avatar
darktemplar offline
Jeremie's Assistant
Jeremie's Assistant
 
Posts: 401
Joined: Thu Mar 23, 2006 3:13 pm
Location: New Antioch, Shakuras

Postby emoBillâ„¢ » Tue Mar 28, 2006 3:54 pm

Look at what I got... it's hilarious...

Your Question:
Do you think Ulrich and Yumi will ever go out?
Aelita Says:
Oh yes! Definitely!
Your Question:
Really?
Aelita Says:
I'm sorry, but I don't think so
Your Question:
What the...you just said you did!
Aelita Says:
I really don't know about that. I'll have to ask Jeremie.
Your Question:
Now you're making no sense. Will UxY ever go out?
Aelita Says:
Oh yes! Definitely!
Your Question:
Is that your final answer?
Aelita Says:
I should think so!
Your Question:
You think so? Are you sure?
Aelita Says:
I really don't know about that. I'll have to ask Jeremie.
Your Question:
What can Jeremie do?
Aelita Says:
Goodness, I don't think so. Your chances are, unfortunately, very poor.
Your Question:
WHAT ARE YOU TALKING ABOUT?
Aelita Says:
Good heavens, CERTAINLY not!
Your Question:
Can you stop making no sense now?
Aelita Says:
Of course, silly!
Your Question:
May I stop asking you things now?
Aelita Says:
Definitely!
Your Question:
Are you trying to get rid of me?
Aelita Says:
Oh yes! Definitely!
Your Question:
Don't you like me at all?
Aelita Says:
I should think so!
Your Question:
Then why are you trying to get rid of me?
Aelita Says:
If you really think so, then it shall be.
Your Question:
No! Please let me stay and ask questions!
Aelita Says:
Goodness, I don't think so. Your chances are, unfortunately, very poor.
Your Question:
Darn.
Aelita Says:
I'm afraid I don't know. I'm sorry...

WTF? hehe...

darktemplar, the thing at the bottom of your first post sounds deep :D

Decision is made depending on current second.
___________________Image
User avatar
emoBillâ„¢ offline
Star Fighter
Star Fighter
 
Posts: 1084
Joined: Fri Feb 24, 2006 4:00 pm
Location: Muenchen, Germany

Postby Jeremified » Tue Mar 28, 2006 7:54 pm

Aelita wrote:Look at what I got... it's hilarious...

Your Question:
Do you think Ulrich and Yumi will ever go out?
Aelita Says:
Oh yes! Definitely!
Your Question:
Really?
Aelita Says:
I'm sorry, but I don't think so
Your Question:
What the...you just said you did!
Aelita Says:
I really don't know about that. I'll have to ask Jeremie.
Your Question:
Now you're making no sense. Will UxY ever go out?
Aelita Says:
Oh yes! Definitely!
Your Question:
Is that your final answer?
Aelita Says:
I should think so!
Your Question:
You think so? Are you sure?
Aelita Says:
I really don't know about that. I'll have to ask Jeremie.
Your Question:
What can Jeremie do?
Aelita Says:
Goodness, I don't think so. Your chances are, unfortunately, very poor.
Your Question:
WHAT ARE YOU TALKING ABOUT?
Aelita Says:
Good heavens, CERTAINLY not!
Your Question:
Can you stop making no sense now?
Aelita Says:
Of course, silly!
Your Question:
May I stop asking you things now?
Aelita Says:
Definitely!
Your Question:
Are you trying to get rid of me?
Aelita Says:
Oh yes! Definitely!
Your Question:
Don't you like me at all?
Aelita Says:
I should think so!
Your Question:
Then why are you trying to get rid of me?
Aelita Says:
If you really think so, then it shall be.
Your Question:
No! Please let me stay and ask questions!
Aelita Says:
Goodness, I don't think so. Your chances are, unfortunately, very poor.
Your Question:
Darn.
Aelita Says:
I'm afraid I don't know. I'm sorry...

WTF? hehe...
Um... for starters, Aelita only answers yes or no questions.
thank you all for the good memories <3
User avatar
Jeremified offline
Lyoko Freak
Lyoko Freak
 
Posts: 6051
Joined: Thu Feb 02, 2006 11:40 pm

Postby emoBillâ„¢ » Tue Mar 28, 2006 7:55 pm

I know. I felt like being random XD
___________________Image
User avatar
emoBillâ„¢ offline
Star Fighter
Star Fighter
 
Posts: 1084
Joined: Fri Feb 24, 2006 4:00 pm
Location: Muenchen, Germany

Postby Jeremified » Tue Mar 28, 2006 8:20 pm

Wait... you're Aelita, and you're asking yourself all these questions?! :umm:
thank you all for the good memories <3
User avatar
Jeremified offline
Lyoko Freak
Lyoko Freak
 
Posts: 6051
Joined: Thu Feb 02, 2006 11:40 pm

Postby emoBillâ„¢ » Tue Mar 28, 2006 8:23 pm

YES! Do you have a problem with that?
___________________Image
User avatar
emoBillâ„¢ offline
Star Fighter
Star Fighter
 
Posts: 1084
Joined: Fri Feb 24, 2006 4:00 pm
Location: Muenchen, Germany

Postby Jeremified » Tue Mar 28, 2006 8:45 pm

Aelita wrote:YES! Do you have a problem with that?

:sad5: I didn't mean to hurt you... ;__;
thank you all for the good memories <3
User avatar
Jeremified offline
Lyoko Freak
Lyoko Freak
 
Posts: 6051
Joined: Thu Feb 02, 2006 11:40 pm

Postby emoBillâ„¢ » Tue Mar 28, 2006 8:47 pm

You didn't. I'm just being weird.
___________________Image
User avatar
emoBillâ„¢ offline
Star Fighter
Star Fighter
 
Posts: 1084
Joined: Fri Feb 24, 2006 4:00 pm
Location: Muenchen, Germany


Who is online

Users browsing this forum: No registered users and 3 guests