Has anyone had any experience with adding your own message? You know what I'm talking about -- the "Tokugawa has declared war on you!" or "Elizabeth converts to Taoism." area that's also echoed in the turn log. It seems that CyInterface.addMessage() is the key, but the list of arguments on the Class Reference is a bit vague. I've toyed around with it in a trial and error sort of way, but there are lots of variables that I might be getting wrong, so I'm not having any luck.
By the way, I can get CyInterface.addImmedaiteMessage() to work, but that's not as good because it isn't echoed in the log, which is the whole point for what I'm doing.
To save you the trouble of following the link:
My best guesses:
ePlayer: ID of the player to whom the message should be sent/visible
bForce: ???
iLength: ??? length of message in characters or lines?
szString: message to be displayed
szSound: name of sound file to be played when message is displayed
eType: ??? type of message?
szIcon: name of icon to be displayed in arrow
eFlashColor: color of arrow (and text?)
iFlashX, Y: plot to which arrow points
bShow...Arrows: pretty self-explanatory, although I guess I don't know the difference between an on-screen and off-screen arrow
By the way, I can get CyInterface.addImmedaiteMessage() to work, but that's not as good because it isn't echoed in the log, which is the whole point for what I'm doing.
To save you the trouble of following the link:
VOID addMessage(INT ePlayer, BOOL bForce, INT iLength, STRING szString, STRING szSound, INT eType, STRING szIcon, ColorType eFlashColor, INT iFlashX, INT iFlashY, BOOL bShowOffScreenArrows, BOOL bShowOnScreenArrows)
Displays an on-screen message
My best guesses:
ePlayer: ID of the player to whom the message should be sent/visible
bForce: ???
iLength: ??? length of message in characters or lines?
szString: message to be displayed
szSound: name of sound file to be played when message is displayed
eType: ??? type of message?
szIcon: name of icon to be displayed in arrow
eFlashColor: color of arrow (and text?)
iFlashX, Y: plot to which arrow points
bShow...Arrows: pretty self-explanatory, although I guess I don't know the difference between an on-screen and off-screen arrow