Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
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
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:08 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.