asking questions

younggloves
Hi all sorry to be a pain as I know this will be fairly easy for most of you.
Could somebody please walk me through how I could get quest to ask for the user to answer a question, then if the correct input is given a reward then,goes to the player.
incorrect answers get another response.
Hopefully this is easy. I love this quest programme as I've always wantgaed to write a text but i'm not too strong on the programming side of things.

Thanks for the help.
Ben

Pertex
Please stop spamming the forum!!!

younggloves
I'm not, please I need some help with the questions I've posted

Pertex
you mean something like this?


msg("first question:")
answer= GetInput()
if (answer="....") {
msg("Right answer")
} else {
msg("Wrong answer")
}

younggloves
Thanks for getting back to me, where do I copy the script to?
Sorry to be a pain, but i'm really trying

Pertex
look at this script

younggloves
That's so good of you thank you, I'll have a look tomorrow.
I'll let you know you I get on

younggloves
Thats brill, thanks for that managed to get it going by printing a screen shot of the speak variable within the wizard of the software.

Don't know where I'd paste the script if I was trying to insert it somewhere in a game as I can't see any dialogue boxes that will allow you to paste in lines of code.
Thanks again for all the help

Pertex
younggloves wrote: as I can't see any dialogue boxes that will allow you to paste in lines of code.


There is a codeview-button in Q5, where you can switch to an editor with your gamecode

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums