[messages] [Module Design] Add points in zone

Tim McCarron timothy.mccarron at sbcglobal.net
Mon Aug 5 15:58:45 MST 2013


Not sure this will work but you can give it a try:

Replace your basic marker property with a Calculated property on all your
cards that goes something like:

Property name: SetArmorValue
Property Value: If(CurrentZone = NameOfYourSpecialZoneHere,
TheCardsArmorLevel#Here, 0)

What this does is set in realtime the values of your card to either 0 if
they are not in the special zone you are talking about or to the value of
the armor level you put into the statement for each card.

Then put some blank counter on your map somewhere with a text label that
displays the property $WhatsMyTotalArmorValue$
give it a calculated property called WhatsMyTotalArmorValue that evaluates
Sum(SetArmorValue).

Hopefully what this is doing is looking for the sum of all the SetArmorValue
properties in the entire module which should be either 0 if they are not in
that zone or something else as specified by the armor level value if the
card is in the zone. Because it calculates realtime using this method there
is no need for keystrokes, triggers etc..

its been awhile since I worked in Vassal so Im not sure if sum works across
the entire module or just the component level. Worth a shot





-----Original Message-----
From: messages [mailto:messages-bounces at vassalengine.org] On Behalf Of
cjmeate
Sent: Monday, August 05, 2013 3:21 PM
To: messages at vassalengine.org
Subject: Re: [messages] [Module Design] Add points in zone

Spent all day, still really stuck on this.

Hoping Tim, Brent, or Uckelman can maybe walk me through this very quick!
Thank you.

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=41584#p41584
_______________________________________________
messages mailing list
messages at vassalengine.org
http://www.vassalengine.org/mailman/listinfo/messages
 

__________ Information from ESET Smart Security, version of virus signature
database 8653 (20130805) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
 

__________ Information from ESET Smart Security, version of virus signature
database 8653 (20130805) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 



More information about the messages mailing list