[messages] Edit: [Module Design] Re: Report Action problem

JustaBill martinson2005 at netscape.net
Tue Nov 15 17:40:24 MST 2011

[This message has been edited.]

The problem is that no single piece will really know the names of both
pieces.  The old piece knows its name, and the new piece knows its name.
 I can think of two solutions that don't involve hardcoding:

  1. Have the old piece report the first half of the message, and the
new piece report the second half.  This means your report will take two
lines in the chat window.  Something like this:

Player (Side) flipped __Roman PC__ to ...
... __Carthaginian PC__ in location.

  2. Have the old piece save its name to a generic, re-usable Global
Property, then have the new piece deliver the entire message and use the
global property to fill in the old piece's name.  This will require the
first piece to use a Trigger which first loads the GP and then performs
the Replace, passing a key command to the second piece.  This key
command would cause the second piece to deliver the report, in which the
GP provides the old piece's name and the new piece provides its own

Read this topic online here:

More information about the messages mailing list