Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Trio on Mon 11/02/2008 19:32:20

Title: Where is the list of Global Messages?
Post by: Trio on Mon 11/02/2008 19:32:20
I haven't been able to find the list in the manual or in the forum search.

Also, how do you create your own custom global messages and room messages?

Also, I've seen references to a "room message editor" in the manual. Where is that?

Thanks!
Title: Re: Where is the list of Global Messages?
Post by: Jack Sheehan on Mon 11/02/2008 20:34:33
I think, and i could be wrong here, that if you are running 3.0 there are no more global messages anymore.
Title: Re: Where is the list of Global Messages?
Post by: Radiant on Mon 11/02/2008 21:19:59
So what happens if you have a game with extensive GMs and you transfer it to 3.0?
Title: Re: Where is the list of Global Messages?
Post by: Khris on Mon 11/02/2008 22:32:11
Well, you'll learn an important lesson about version compatibility, I guess :=
Title: Re: Where is the list of Global Messages?
Post by: OneDollar on Mon 11/02/2008 23:55:37
I think you can still get global messages using the Game.GlobalMessages[int message] command, ie. something like
Quote from: The manual ;)
String message = Game.GlobalMessages[997];
Display("Global message 997 says: %s", message);
But you can't set them or view them in the editor in AGS 3.0

Ah, here we go, another quote from the manual
Quote from: The manual
Global Messages

Global Messages are no longer supported and should be considered obsolete -- there's really no need for them now that the interaction editor has gone. Any global messages that you had will be retained and will still work, however the AGS 3 editor provides no way to edit them. If you need to change one, just replace the DisplayMessage command with a normal Display() command.
Title: Re: Where is the list of Global Messages?
Post by: FSi++ on Tue 12/02/2008 11:08:59
Ouch, maybe somebody should write an editor plugin for that?
Title: Re: Where is the list of Global Messages?
Post by: Trio on Tue 12/02/2008 13:46:33
Thank you. It's a relief to know I was looking for something that no longer exists. Much better than looking for something that's right there if you could only see it.  :)
Title: Re: Where is the list of Global Messages?
Post by: Radiant on Tue 12/02/2008 17:58:51
This may be surprising, but I would actually miss them...

They're the most convenient way of arranging an array of predefined messages.
Title: Re: Where is the list of Global Messages?
Post by: rock_chick on Mon 24/03/2008 12:33:22
I'm not trying to intentionally bump an old thread but I was searching for global messages information and this thread seemed relevant. So if they're obsolete, then what(if any) is the replacement for using repetitive messages?
Title: Re: Where is the list of Global Messages?
Post by: twin-moon on Mon 24/03/2008 14:34:09
As a sort of patchwork solution, you could declare a String in your globalscript and then export it.

at the beginning of your global script:
String Example;

In Game_Start:
Example = "Your text here"

At the end of the globalscript you write:
export Example;

In the global header (Globalscript.ash) you add:
import String Example;

You can then access Example from every script.


If this is a flawed solution, could a real programmer please correct me, and if someone released a module that would of course be more ideal.
Title: Re: Where is the list of Global Messages?
Post by: FSi++ on Mon 24/03/2008 15:03:16
Quote from: Twin Moon on Mon 24/03/2008 14:34:09
If this is a flawed solution, could a real programmer please correct me, and if someone released a module that would of course be more ideal.

Dunno, that's how I usually do it.

Upd: grammar grammar grammar grammar grammar