Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sun 16/05/2004 20:50:59

Title: DisplayMessage is not working!!!
Post by: on Sun 16/05/2004 20:50:59
I need to display a message in the white box during dialoge. So I put

DisplayMessage (12;). 12 is the correct number, and that is how the AGS manual says. When I click EXIT AND SAVE CHANGES in the Dialog Script Editor, it says: Unknown command displaymessage.

HELP!!!!  :( >:( :'( :-\ ???
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Sun 16/05/2004 21:08:02
QuoteDisplayMessage (12;)
In your script, is the semicolon within the brackets, too?

The semicolon goes at the end of commands, like this:
DisplayMessage (12);
Title: Re: DisplayMessage is not working!!!
Post by: Pumaman on Sun 16/05/2004 21:43:37
In a dialog script, you don't use the script commands - it's a simpler format. I think you just want:

narr: This text appears in a white box.


Please post future questions like this in the Beginner's Tech forum.
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Sun 16/05/2004 21:50:44
Quotein the Dialog Script Editor

Heh, I really have to remember to read the questions more carefully. :P
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Sun 16/05/2004 23:36:34
Ahem, pretty simple. You DON'T put DisplayMessage. All you need to do is just type display. That's all.
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Sun 16/05/2004 23:39:36
I have this to prove it:

Display (string message, ...);
  Displays a message to the screen. It will be displayed in 
  the standard message box, and centred in the middle of
  the screen. (description continues...)
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Mon 17/05/2004 00:05:14
Please don't confuse him.
You can't use script commands like Display in dialog scripts.

Do as Pumaman says.
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Mon 17/05/2004 00:21:56
Quote from: strazer on Mon 17/05/2004 00:05:14
Please don't confuse him.
You can't use script commands like Display in dialog scripts.

Do as Pumaman says.

Now I'm confused.
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Mon 17/05/2004 00:27:57
Screech!!!!!!!!!! Wait a minute... I don't think DisplayMessage is used for Dialogs, it says it is for the room editor.
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Mon 17/05/2004 00:30:00
Please go back and edit your posts if you are replying to yourself.

Yes, as I said, you can't use them in DIALOG SCRIPTS directly.
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Mon 17/05/2004 00:46:39
Now what you said about pumaman...on the other hand you could use narrator. I checked the demo and the dialog script for a message was

Display("Through this door you will find rooms that demonstrate the basic features of rooms and game settings. You know, all the stuff that you need to make a typical adventure game.");

But anyway the problem could already be solved.
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Mon 17/05/2004 00:58:51
Again, this is not a DIALOG (!!!!!!!) script.

Dialog scripts look like this:

@1 // option 1
ego: Hello Man!
man: Hello Ego!
return

You can't put normal script commands in there.
Title: Re: DisplayMessage is not working!!!
Post by: Edwin Xie on Mon 17/05/2004 01:19:32
Just calm yourself. And see if it is true. Check the repeat execution thing for room 10 on the demo and see if it is true. And as I said that pumaman said, you could use narrator.
Title: Re: DisplayMessage is not working!!!
Post by: strazer on Mon 17/05/2004 01:30:00
I am calm. I emphasized the word DIALOG to make sure you know that we are talking about dialog scripts, not normal scripts.

It is true. The Display() line you mentioned is not in a dialog script but in a normal script (room's repeatedly_execute function).

So yes, use the special narrator character:

@1
ego: Hello Man!
narr: He doesn't respond.
return