View Single Post
 
Reply
Posted 2004-10-04, 07:25 AM in reply to Draco2003's post "Chess in RPG Maker 2003"
Draco2003 said:
How can you make it so that when a certain piece is in the proper position, the player can attack, but not through out the entire match. EXAMPLE: pawn moves up 2 spaces, in line 4 from your left. enemy pawn moves up 2 spaces in row 3 from YOUR left. now the pawns are diagonal from each other. NOW they can attack. then after the attack, he can't any more. Thanks for your help! Also need help setting limits for castles and bishops. thanks again.
..You just want a way to end the turn after a capture? I'd use a switch (0092:P1ON_P2OFF) for that. Of course, I really have no idea how your structure is set up, so..

Are you using a "controlling" event, which keeps track of which pieces can be selected at any time? When (0092:P1ON_P2OFF) is on, only white pieces can be selected to move. After ANY move/capture, toggle the switch and now only black pieces can be selected.

As to limits, I'd just check to see if the piece's current X position/Y position is within the bounds of the board. You can check this by setting xxxx:PieceX and xxxx:PieceY to whatever the X/Y position is, and checking them against the board. If it's at the edge, it can't move any farther..
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube