Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverWizard_OTF on Sun 08/08/2004 10:43:30

Title: %d variable problems
Post by: SilverWizard_OTF on Sun 08/08/2004 10:43:30
Hello.
I was using: 
string object 
InputBox("I would like", object);
ParseText(object);
DisplaySpeech: "GANDALF, "I would like %d", object";

But when my character talks, It says: "I would like 12195212"., and not variable's value.  What am i doing wrong?
                   
Title: Re: %d variable problems
Post by: Ashen on Sun 08/08/2004 10:45:23
Isn't %d for ints, and %s for strings? So:

Ã,  string objectÃ, 
Ã,  InputBox("I would like", object);
Ã,  ParseText(object);
Ã,  DisplaySpeech (GANDALF, "I would like %s", object);

maybe? Do you even need the ParseText command here?
EDIT: Ah, so you do need the ParseText, after all. Cool.
Title: Re: %d variable problems
Post by: SilverWizard_OTF on Sun 08/08/2004 10:55:20
Thank you very mutch, Ashen.

Well, ParseText command was for something else.  I just wanted to continue with some If(Said....) statements.