Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Memorize Event Position
« previous next »
  • Print
Pages: [1]

Author Topic: Memorize Event Position  (Read 2509 times)

Offline Anubis_Soldier

  • That guy you stare at when you eat at Mcdonalds...
  • Associate
  • *
  • Posts: 118
Memorize Event Position
« on: November 07, 2006, 12:29:36 AM »
Is it possible to store the position of an Event?
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
(No subject)
« Reply #1 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...
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Anubis_Soldier

  • That guy you stare at when you eat at Mcdonalds...
  • Associate
  • *
  • Posts: 118
(No subject)
« Reply #2 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,
Logged

Offline Bluhman

  • Global Moderator
  • Royal
  • *
  • Posts: 4,977
(No subject)
« Reply #3 on: November 08, 2006, 04:04:02 AM »
With Variables, it is possible.
Logged

Offline Anubis_Soldier

  • That guy you stare at when you eat at Mcdonalds...
  • Associate
  • *
  • Posts: 118
(No subject)
« Reply #4 on: November 08, 2006, 04:09:24 AM »
I understand variables,

mind explaining how i might accomplish my goal?
Logged

Offline Meiscool-2

  • Sage
  • *
  • Posts: 7,030
  • If you support n00bs, you support communism.
(No subject)
« Reply #5 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".
Logged
Most Recent:

________________________
Old Stuff:

Offline Anubis_Soldier

  • That guy you stare at when you eat at Mcdonalds...
  • Associate
  • *
  • Posts: 118
(No subject)
« Reply #6 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?
Logged

Offline SilverBlade

  • YiN-YaNg
  • Associate
  • *
  • Posts: 157
  • /
(No subject)
« Reply #7 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'.
Logged
-------Yin Yang-Thread of Memories----
Story: 70% complete
Battle System: 50% complete
Demo Version 1.1: http://rapidshare.com/files/12421951/Yin-Yang.rar.html

Offline Anubis_Soldier

  • That guy you stare at when you eat at Mcdonalds...
  • Associate
  • *
  • Posts: 118
(No subject)
« Reply #8 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?
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Memorize Event Position
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum