| Author |
Message |
Richard Hutnik (Richardhutnik)
| | Posted on Wednesday, January 29, 2003 - 11:52 pm: | |
I am trying to work on an area-movement type game using Zillions. To track movement, I am storing the area a piece is moving from in a certain square that is always the same square. In Zillions, how would I do this? I want, for example, to move a piece, then store in say, Square H9, the area the piece moved from, then process where the piece landed. Does anyone have an answer here? Thanks... - Richard |
Andreas Kaufmann (Andreas)
| | Posted on Friday, January 31, 2003 - 4:41 pm: | |
You can have a special piece to represent each area (Zone0, Zone1, ..., Zone15) and place it on your dummy position using "create" command: (create Zone0 H9). The command "create" is available since Zillions version 2.0 Alternatively you can have 16 dummy positions (1 for each zone), then you link each square to the corresponding "zone" position and define direction "z". After that you can place a dummy piece 'Dummy' there: (create Dummy z). |
Richard Hutnik (Richardhutnik)
| | Posted on Monday, February 03, 2003 - 10:32 pm: | |
How would one go about doing the syntax so that it would check a zone the piece originally moved from and determine which piece of a certain type to drop? I am not getting the syntax right. in some cases, the place moved from doesn't get marked. |
Andreas Kaufmann (Andreas)
| | Posted on Tuesday, February 04, 2003 - 3:04 pm: | |
Use something like: (if (in-zone? Zone0) (create Dummy0 h9)) For debugging you can use: (if (in-zone? Zone0) (create Pawn a4)) Then you will immediately see if your code is correct. |
Sean Duggan (Dream)
| | Posted on Friday, December 15, 2006 - 10:05 am: | |
Derrickccd, I still can't see what you are saying. I'm sorry. Do they appear as authentication errors on your side when you look at the webpage? |
Sean Duggan (Dream)
| | Posted on Saturday, December 23, 2006 - 11:41 pm: | |
I see... this is probably an automated bot trying to linkspam. *facepalm* It would be nice if the forum software actually wiped out the message rather than just displaying the error message. |
Keith Carter (Keithc)
| | Posted on Monday, December 25, 2006 - 9:48 pm: | |
Ed, can anything be done to stop all the error message postings? |