How to use text from player

Started by Ghostlady, Sun 22/05/2005 20:57:49

Previous topic - Next topic

Ghostlady

Can someone give me an example of how to do this?  A hotspot in a room will ask a question, the player will answer the question and the game will know whether the answer is correct or not.  For example, the hotspot asks, "How many days are there in a year" and of course the correct answer would be 365, so if the player typed in 365, the player would know he had the correct answer and if he typed in 364, the player would know he had the wrong answer.  I want to do this with 10 questions in a row.  This is a first person game so there are no characters.  Any help is appreciated.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

Ishmael

;)

Search the manual for "Input Box", it'll give you a script function for input boxes, and look up the StrComp script function for string comparison. See the "See also"s too.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ghostlady

I'm sorry.Ã,  I don't mean to be a pest.Ã,  I have my game 90% completed and I've only posted about 5 times.Ã,  That's not too bad, is it?Ã,  The AGS software is capable of doing so many things in different ways that sometimes it is confusing on what to do where.Ã,  Or sometimes you just need that one helpful person to say "input box" and the rest is easy as apple pie.Ã,  It is just knowing "input box" is the right way to go that helps.Ã,  I appreciate all the help that this forum gives, I couldn't have done it without you guys and gals.Ã,  Keep up the good work :)
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven
Haunting at Cliffhouse

Ishmael

Quote from: Ghostlady on Mon 23/05/2005 01:43:15
I'm sorry.  I don't mean to be a pest.

You're not a pest, notice the ;) in my post... I meant not to offend you or anything.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

TerranRich

That's it, Ishmael. Go to your room cage. Now. ;)
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk