View Single Post
Old 10-11-2012, 12:22 AM   PM User | #22
Pseudonym_
New Coder

 
Join Date: Aug 2012
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Pseudonym_ is an unknown quantity at this point
@Philip M
Sorry. But it said not to bump unless ample time(2-3 days) was provided. My bumps were a couple weeks apart.

@jmrker
I'm not really sure how to explain it. Forget the scrolling problem, it isn't a problem. For the other problem, I need something to activate only when a certain phrase is entered into the input box.

Code:
function Say() {
	WriteLine(output, 'You say ' + input.value + ".");
	WriteLine(output, 'Nothing happens.');
}
This is what will happen most of the time. But I need a way to make it so if "Engage" is stated, something specific will happen. I know I need to use an "if" statement, but I'm not sure exactly what code to use.
Pseudonym_ is offline   Reply With Quote