Hi, thxs for the prompt help (which I already put to good use). I have another set of questions if you don't mind:
4) I have spent many days creating a complex map window but I realize now that I should have created it as private window instead.. Any way to change that quickly (maybe hacking some file?) or do I have to go through a long copy/paste sequence? 5) I am very confused by when the notation "$variable$" applies and when just "variable" applies instead; I am setting up global variables in some units prototype definition and sometimes I have to use the double dollar notation (for example to set offsets in the "send to location" commands) and sometimes I have not (for example to declare conditions under which a trigger should fire); which is the rationale? 6) Also, are spaces allowed in new (global or dybamic) variable names (guess not) and/or in their values? For the latter, do I need to escape them (like with single or double quotes)? For example, can I have a Side called United Kingdom and do tests like playerSide != United Kingdom work? or should I do playerSide != "United Kingdom" instead? 5) If I have a Deck of cards on a board called "Resources" I can figure out the number of cards it holds by using the global variable Resources_numCards (or maybe it is $Resources_numCards$) in any other board or even map (unless there is not another "Resources" deck somewhere else, in which case I guess the Board/Map/Module sequence applies), is that correct? Any automatic way of figuring out the number of cards of each subtype in the deck? 6) Is there somewhere a master list of all global variable defined by any game component (map, board, zone etc) such as CurrentZone, playerSide etc? I am just painfully figuring them out subscreen by subscreen (help screen by help screen). Thanks again for all help! Stefano --- In [email protected], "Brent Easton" <[EMAIL PROTECTED]> wrote: > > Hi, > > Comments below, > > Regards, > Brent. > > >*********** REPLY SEPARATOR *********** > > > >On 1/01/2007 at 7:22 PM stine020 wrote: > >Hi all, I started learning Vassal only 1 week ago, so please bear with me. > > > >1) I have a Map with various Boards all concurrently visible on it > >(arranged in a 2x2 matrix, say); each of the boards is divided in 3 > >(say) multizoned grids. Now, it seems to me that CurrentZone reports > >the right name only for pieces sitting in the zones belonging to the > >first board (first row, first column of the matrix). On all other > >boards it reports no zone at all (null). Is this a known bug? Or am I > >doing something wrong? > > It is a bug. I have been able to reproduce it and opened a bug report on Sourceforge. Should be fairly easy to track down, but fix will be in next release of vassal. > > A workaround is to create an Irregular Grid in each of the zones on the boards that are not working and define a single region with the same name as the Zone. Then change the 'Location Format:' of the Zone from $name$ to $gridLocation$ and use $LocationName$ instead of $CurrentZone$ on your pieces. > > > >2) Is it possible to "send to location" pieces by giving a region name > >(the ones defined with irregular grids) instead of X,Y positions? How? > > No, not a the moment. This is on the todo list (RFE 1592449 http://sourceforge.net/tracker/index.php?func=detail&aid=1592449&group_id=90612&atid=594234). > > We hope to run a poll shortly to allow people to vote for their favourite enhancements and have a push on adding the most popular features. > > >3) Suppose I have Infantry and Cavalry units (infantry.gif and > >cavarly.gif in the Basic Piece definition). For both of them I have > >created "Fired" piece layouts (same gifs with "Fired" overwritten). It > >seems to me that I am forced to define Layer traits for each one of > >them in turn, just to be able to pick the right "Fired" image (all the > >rest - name, hotkeys etc being the same). This is a bit annoying since > >I have many of these different units sharing the same Layer definition > >(but for the image layout), and each time I change my mind I have to > >change that many times over. Is this really so or am I doing something > >wrong? > > > There are a couple of features you should be using to make this easier: > > 1. Rather than creating a duplicate image with 'Fired' written on it, create a generic 'Fired' image that just has the word 'Fired' on it and the rest of the image is transparent so that it can be laid over any counter and the counter image will show through underneath the 'Fired' image. > > 2. Take the new transparent 'Fired' image and create a Prototype called 'CanFire' and add the fired image to a layer in the prototype, Say with a 'Ctrl F - Fired' command to activate. > > 3. Now add the 'CanFire' prototype to any counter that can fire and they will get the Fired overlay. > > 4. Even better, create an Infantry prototype and a Cavalry Prototype and add them to the base counters, then add the CanFire prototype to the Infantry and Cavalry Prototypes. > > > >Any help greatly appreciated, especially on #1 which is critical for > >me right now, and thxs for this great engine! > > > > ____________________________________________________________ > Brent Easton > Analyst/Programmer > University of Western Sydney > Email: [EMAIL PROTECTED] >
