[messages] [Module Design] Showing what happens to a piece in chat window?

DrNostromo drnostromo at drnostromo.com
Tue Apr 3 17:08:35 CEST 2018


You would attach your right-click commands to a Trigger Action trait.

You could then have that trait send a command to perform the action and
send a command to a Report Action trait that would report what's
happening depending on how you set up the report.

For example: You may have a piece that has a Damage rating of 1 or 2.
You could place a Dynamic Property trait on the piece to keep track of
Damage and a command to adjust the damage status of, let's say, 
AdjustDamage.

You would also include a Report Action trait that triggers on, let's
say, ReportStatus. Set up the report to say something like:

The Damage Status of $BasicName$ has been changed to $Damage$.

Then you would include a Trigger Action with a menu command of, let's
say, Damage Rating. When you right-click and select Damage Rating, the
Trigger Action would perform the command necessary to perform the
adjustment via the  AdjustDamage  command and then generate a
ReportStatus command to report the change.

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=55089#p55089


More information about the messages mailing list