[messages] [Module Design] Problem accesing Deck_numPieces

Tim McCarron timothy.mccarron at sbcglobal.net
Fri Oct 25 05:18:49 MST 2013


The answer is no, <Deckname_numPieces> is not a global property. It is a Map
level property. The workaround is as you have found - to use a global
variable and relay


-----Original Message-----
From: messages [mailto:messages-bounces at vassalengine.org] On Behalf Of TF
Sent: Friday, October 25, 2013 7:01 AM
To: messages at vassalengine.org
Subject: [messages] [Module Design] Problem accesing Deck_numPieces

Hi,

As you'll discover in no time, I am quite new to vassal more "advanced"
features. I have no java skills.

I have built a module I am trying to improve by automating its card play
mechanics. Of course, I am finding all kinds of problems I am enjoying
dealing with, but there is something that is really bugging me big time:

Is <Deckname_numPieces>  supposed to be accesible from everywhere in the
module or just from the player hand where the deck lives?. From what I have
read, it seems to me it should be, but need to be sure to keep going. I
don't know what relevant info you could need to answer my question, if any.
Please let me know and I will post it as soon as I can.

In case the answer is no, I found a workaround that involves the use of a
global variable whose value I can relate to Deckname_numPieces but it means
a lot of work and seems to me unnecessarily convoluted.

Thanks for your help!

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

__________ Information from ESET Smart Security, version of virus signature
database 8964 (20131025) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
 

__________ Information from ESET Smart Security, version of virus signature
database 8964 (20131025) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 



More information about the messages mailing list