Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: AGSPwnage on Wed 30/06/2010 17:18:04

Title: Text Parser Help
Post by: AGSPwnage on Wed 30/06/2010 17:18:04
How can i use the text parser to allow players free speech?
Title: Re: Text Parser Help
Post by: Khris on Wed 30/06/2010 23:18:45
Check the bottom of this page:
http://www.adventuregamestudio.co.uk/manual/Conversations.htm

Ask if you need more help :)
Title: Re: Text Parser Help
Post by: AGSPwnage on Wed 30/06/2010 23:41:06
so how can I use it to allow players to say ANYTHING? Does that then make the character say the exact words from the parser?
Title: Re: Text Parser Help
Post by: Khris on Thu 01/07/2010 07:31:25
I tried this:

function dialog_request(int param)
{
  player.Say(Parser.SaidUnknownWord());
}


Now the player will simply repeat what you've typed.

What's the endgame here? What are you trying to achieve?
Title: Re: Text Parser Help
Post by: AGSPwnage on Sat 10/07/2010 14:57:32
I am just Making a random game at the moment to get used to the software, Sorry I haven't posted for a while, I was away. No internet access is bad for me...