Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes

 
Question Chess in RPG Maker 2003
Reply
Posted 2004-10-03, 09:00 PM
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.
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 



 
Reply
Posted 2004-10-03, 10:37 PM in reply to Draco2003's post "Chess in RPG Maker 2003"
I commend you on trying a game like that in Rpgmaker.I started a Poker game once for my game but gave it up after getting lost in branch conditions.Good luck with the chess.
*SUMMON BLUECUBE* (I think that's how it goes.)
Old
Profile PM WWW Search
ograx is neither ape nor machine; has so far settled for the in-betweenograx is neither ape nor machine; has so far settled for the in-between
 
 
ograx
 



 
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
 



 
Reply
Posted 2004-10-04, 03:18 PM in reply to ograx's post starting "I commend you on trying a game like..."
Ograx, simply search for a Rm2k3 poker game on google. I found one a while back, but never used it.

And that chess game, good luck


~ KAMAHAME---Oh shit it's happening again.... ~
Old
Profile PM WWW Search
Tyrannicide enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzTyrannicide enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Tyrannicide
 



 
Reply
Posted 2004-10-04, 06:06 PM in reply to Tyrannicide's post starting "Ograx, simply search for a Rm2k3 poker..."
Yeah I seen that poker tutorial it was pretty crappy in that it was five card draw poker.This is the kind of poker where you can only bet in one round and only get five cards that you can't redraw.I was trying to make a a poker game similar to texas hold em which involves alot more rules and options.
Old
Profile PM WWW Search
ograx is neither ape nor machine; has so far settled for the in-betweenograx is neither ape nor machine; has so far settled for the in-between
 
 
ograx
 



 
Reply
Posted 2004-10-05, 09:34 AM in reply to Draco2003's post "Chess in RPG Maker 2003"
Hallo Draco. Long time no read. I'd advise to use lots and lots of switches, and a lot of common events, so that the events on the board aren't changed. Maybe:

A switch at the start for every piece, saying which can be moved or not: e.g Switch 1: on --> <>If:
<>Switch 1: on
<>(some weird coding that does not allow the piece to be picked up etc.)
<>Else
<>(some more coding about piece being able to move).

And then a switch turned on when a player has made a certain move: e.g.

A2 3 4 5 6 7 8
B
C
D
E
F
G
H


Pawn G1 to square E1, turn on switch that says whether it can be taken, and other switches saying what can take it.

The only problem with all of the above, is that you'll need hundreds of them for one game.

I think I may have just built upon Blue's little explanantion, I don't know, I don't really understand his explanations very often so.

Anyway, doubtless that there'll be some way you can set up an event of Universal rules for the moving of pieces, so you don't have lots and lots of codes and branches etc.

I'd advise not to listen to me that often though, go with Blue.

-----

Edit: Sorry about my little chess board somewhere above, I can't seem to get it right without using a pic, but you get the general idea, yes?

Last edited by Lenny; 2004-10-05 at 09:36 AM.
Old
Profile PM WWW Search
Lenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basics
 
 
Lenny
 



 
Reply
Posted 2004-10-10, 06:12 PM in reply to Lenny's post starting "Hallo Draco. Long time no read. I'd..."
Thanks for the information, and I'll let you know how it turned out!
R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.

Check the Gallery and Scrapbook often!
[deviantArt Account!]

Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
Old
Profile PM WWW Search
Draco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darknessDraco2003 has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Draco2003
 
 

Bookmarks

« Previous Thread | Next Thread »

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

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 09:24 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.