Create account / Log in

Is there a way to check which Grid location a piece is in?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Is there a way to check which Grid location a piece is in?

Postby eekamouse » October 15th, 2010, 3:39 am

Is there a way to check which Grid location a piece is in?

So, I have a grid on my mainboard, and if the piece is in a certain location I want to add to a certain players score via a Game Piece Inventory Window. I know I can do CurrentBoard and CurrentZone etc, but can I do CurrentGrid=2A ? or something like that?

Thanks!
eekamouse
 
Posts: 25
Joined: October 1st, 2010, 1:34 am

Re: [messages] [Module Design] Is there a way to check which

Postby tar » October 15th, 2010, 6:31 pm

On Oct 14, 2010, at 8:39 PM, eekamouse wrote:

> Is there a way to check which Grid location a piece is in?

CurrentX: Current X Map co-ordinate of the piece.
CurrentY: Current Y Map co-ordinate of the piece.
CurrentZone: If the current map has a multi-zoned grid, then return
the name of the Zone the piece is in, or "" if the piece is not in any
zone, or not on a map.


See http://www.vassalengine.org/wiki/Faq_mo ... ounters.3F
User avatar
tar
 
Posts: 772
Joined: January 2nd, 2008, 6:53 pm
Location: Los Angeles area

Re: Is there a way to check which Grid location a piece is i

Postby Tim M » October 15th, 2010, 6:51 pm

Dont forget LocationName either :)
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Is there a way to check which Grid location a piece is i

Postby eekamouse » October 16th, 2010, 12:24 am

Sweet. LocationName was what I was looking for. Thanks for the help... again! :)
eekamouse
 
Posts: 25
Joined: October 1st, 2010, 1:34 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron