DisplayMessage is not working!!!

Started by Blane, Sun 16/05/2004 20:50:59

Previous topic - Next topic

Blane

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!!!!  :( >:( :'( :-\ ???

strazer

QuoteDisplayMessage (12;)
In your script, is the semicolon within the brackets, too?

The semicolon goes at the end of commands, like this:
DisplayMessage (12);

Pumaman

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.

strazer

Quotein the Dialog Script Editor

Heh, I really have to remember to read the questions more carefully. :P

Edwin Xie

Ahem, pretty simple. You DON'T put DisplayMessage. All you need to do is just type display. That's all.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Edwin Xie

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...)
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

strazer

Please don't confuse him.
You can't use script commands like Display in dialog scripts.

Do as Pumaman says.

Edwin Xie

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.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Edwin Xie

Screech!!!!!!!!!! Wait a minute... I don't think DisplayMessage is used for Dialogs, it says it is for the room editor.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

strazer

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.

Edwin Xie

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.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

strazer

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.

Edwin Xie

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.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

strazer

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

SMF spam blocked by CleanTalk