Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Anubis_Soldier on November 07, 2006, 12:29:36 AM

Title: Memorize Event Position
Post by: Anubis_Soldier on November 07, 2006, 12:29:36 AM
Is it possible to store the position of an Event?
Title:
Post by: Prpl_Mage on November 07, 2006, 06:48:46 AM
Yeah it can be done, but I canīt really remember how, I think it was Store Event ID or something.

Gotta check it...
Title:
Post by: Anubis_Soldier on November 08, 2006, 03:31:20 AM
"Store Event ID" does just that, it does not memorize the Location of the event, just the Event itself


Meiscool is good at scripting, maybe he knows how,
Title:
Post by: Bluhman on November 08, 2006, 04:04:02 AM
With Variables, it is possible.
Title:
Post by: Anubis_Soldier on November 08, 2006, 04:09:24 AM
I understand variables,

mind explaining how i might accomplish my goal?
Title:
Post by: Meiscool-2 on November 08, 2006, 04:55:26 AM
Use Event X and Event Y varibles.

Then, to move the event to the X and Y cord, use the command "Teleport Event".
Title:
Post by: Anubis_Soldier on November 08, 2006, 05:01:15 AM
Is there a way to activate a switch, have the Event Move and then have it record its current position such as
Activate switch

>Move Event: Event, Move Random
>Memorize Position of Event


And also is there a way to make an Event Walk to a location?
Title:
Post by: SilverBlade on November 08, 2006, 11:52:12 AM
Well, as said before: use variables.

Let's name your event 'Event1'. Now make two variables 'Event1X' and 'Event1Y'. Set 'Event1X' equal to Sprite->Event1->X Coordinate. Now this variable represents Event1's X coordinate. Do the same with 'Event1Y' but then Y coordinate.

Now you should know the exact location of the event. If you make it a parallel process, the event will keep registrating Event1's X and Y coordinates.

And to make the move to a certain location...I'm afraid you'll just have to use 'Move Event' or 'Change Event Location'.
Title:
Post by: Anubis_Soldier on November 10, 2006, 02:18:35 AM
Thanks to you SilverBlade i solved my problem... Now i have to figure out some way to make enemies move towards an event. I tried centering the Hero on the event but the Enemy Move Towards hero is not very smart

PS. does anyone know of a good TBS (Tactical Battle System) for RM2k3?