RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

(Request) Chess peice on hole/button

Started by jackmesser, October 14, 2008, 11:50:42 AM

0 Members and 1 Guest are viewing this topic.

jackmesser

hi just wanted to know what do i need to make this? common event, or a script or sometyhing?


i want to be able to put the chess peice on the button to open the door, but id otn just want to be able to move it in a straite line, i want it to move for instance, if i stand on the bottom of it iw ant it to move up and if im on top i want it to move down get me?

Thanks
Jack/
~Zushau~
~Zushau~

Stuck in that vortex again, with a laptop this time!

tSwitch

track the chess piece's position with two variables when it's pushed, and if it's equal to the X and Y coordinates (position) of the switch, activate the switch.

that's the only way I can think of to do it.

Chess Piece -> Event Page 1 (On Hero Touch)
when the hero touches it, have it move one square away from the character.
there should be an option in the 'set variable' event call to store the X and Y position of an event on the map.  Have one variable for X and one for Y of the piece.
then with two conditional branches, you can first check the X variable, if it is equal to the X of the switch, check the Y value, if that is equal, then activate the switch, and disable movement of the chess piece.
(turn on Self-Switch A, and have a blank 2nd event page set to trigger on Self-Switch A)

that's the pseudo code of it, you'll have to put the right event calls together, but I think you can do it from here.
* Cecil hopes it wasn't too confusing .-.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Rippa44

Thanks namkor.. this actually helped me lol

I tried to make this event once or twice and gave up and never tried since.. but your idea would work..

very simple if i were to make the event once it reaches x and Y pos on the map to activate the switch!