Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: KyriakosCH on Sat 30/07/2016 16:07:55

Title: How to get a numbered message system? :)
Post by: KyriakosCH on Sat 30/07/2016 16:07:55
By which i mean that the messages in a set part of the screen should be prefaced by the number in which they appeared, and not have the number be tied to the actual trigger for the message (eg if you click on the clock on the wall, the message would be 'I looked at the clock', prefaced by "1", but prefaced by "2" if you had done some other action before it.

Also, the messages should be (if possible) numbered continuously, for all rooms, ie in the next room the first message will be the previous last + 1.

Anyway know how to do this? :)
Title: Re: How to get a numbered message system? :)
Post by: Cassiebsg on Sat 30/07/2016 17:23:48
Uhm... add a counter to all messages with a +1? And then make the number be displayed in the message with %d ...
Title: Re: How to get a numbered message system? :)
Post by: KyriakosCH on Sat 30/07/2016 17:29:34
Ok :D