I know may be a stupid question, but how do I make the player character say some of the global messages?
What version are you using? You'll need to use the Game.GlobalMessages (http://www.adventuregamestudio.co.uk/manual/Game.GlobalMessages.htm) property (GetMessageText(..) before V2.71), e.g.:
String temp = Game.GlobalMessages[500];
cEgo.Say(temp);
I don't think there's a way to do it directly.
Couldn't you shorten that too:
cEgo.Say("%s", Game.GlobalMessages[500]);
(I know I'm probably wrong, but this looks like it would work...)
No, you're quite right that works. I just wasn't sure if it would, and wasn't in a position to test it. Then I forgot all about it.
So there's a slightly shorter way, but no Character.SayMessage(..) function.
I was simply looking for a more direct way :)
Thanks for letting me know I wasn't wrong, it doesn't happen very often.
Doesn't
cEgo.Say(Game.GlobalMessages[500]);
work too?