The Daily Click ::. Forums ::. Klik Coding Help ::. Newbie needing help (MMF Text obj.)
 

Post Reply  Post Oekaki 
 

Posted By Message

mgs69



Registered
  18/02/2004
Points
  2
18th February, 2004 at 19:53:36 -

I can't figure out a way to have the player type in some text and to have an action occur depending on the text typed. I have found that you can type in the edit text obj. but I can't find a way to have the text read after pressing enter. Anyone know of a way?

 
Roses are Red

Violets are Blue

Sometimes my dog drinks out of the toilet.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
18th February, 2004 at 20:00:47 -

It's tricky. When I have to do it I sometimes send it to an extension that allows you to test a string (even if that's not the point of the extension, like the Asker Box I think) and compare that.
Whatever solution you find is going to be pretty convoluted. I can't think of a simple way to do it. I think once I used the string parser to convert all the characters to ASCII code and then tested it with 'compare two general values.'

...I guess if someone does know an easy way I'd like a clue too.

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
18th February, 2004 at 20:10:57 -

Use "compare 2 general values", and put:

If Edittext$( "Edit" ) = "bob"
then blah...

Image Edited by the Author.

 
n/a

mgs69



Registered
  18/02/2004
Points
  2
18th February, 2004 at 20:22:01 -

It works like a lucky charm, thanks!

 
Roses are Red

Violets are Blue

Sometimes my dog drinks out of the toilet.

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
19th February, 2004 at 04:57:35 -

It's odd, that - many people have very clever solutions to it, but the way it's meant to be done is very difficult to find.

 
http://www.davidn.co.nr - Games, music, living in America

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
19th February, 2004 at 10:38:48 -

No problemo

 
n/a

Mr Icekirby



Registered
  18/12/2003
Points
  846
25th February, 2004 at 23:09:52 -

well that was a simple idea... it works for things like cheat codes too!
<if edit box1 = evil>set globale value 1 to 1
in boss level<global value 1 = 1>make boss move at speed 100

evil...

 
Mr Icekirby says so!
OBEY ME!
   

Post Reply



 



Advertisement

Worth A Click