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!!!! :( >:( :'( :-\ ???
QuoteDisplayMessage (12;)
In your script, is the semicolon within the brackets, too?
The semicolon goes at the end of commands, like this:
DisplayMessage (12)
;
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.
Quotein the Dialog Script Editor
Heh, I really have to remember to read the questions more carefully. :P
Ahem, pretty simple. You DON'T put DisplayMessage. All you need to do is just type display. That's all.
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...)
Please don't confuse him.
You can't use script commands like Display in dialog scripts.
Do as Pumaman says.
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.
Screech!!!!!!!!!! Wait a minute... I don't think DisplayMessage is used for Dialogs, it says it is for the room editor.
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.
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.
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.
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.
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