Announcement

Collapse
No announcement yet.

Help with moving events

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with moving events

    I'm curious if anyone here knows a way to move events based off x,y,z locations directly by typing in the numbers instead of just picking an area of the map to place the event.

    Basically what i'm trying to figure out how to do is save an event location after it's moved randomly and then move that same event to the same location later.

    I was hoping i could save the x,y,z cordinates to variables and then use those variables to move the current event to past locations obtained through random movements, but not having much luck so far.

    The closest i have come is using the duplicate event command, which does let me enter direct numbers into x,y,z - but i have no way of converting my saved variables into the actual command.

    #2
    Re: Help with moving events

    There is actually a fairly simple way to do this.

    First off you would have to save the location of the event in seperate unique variables; as in you would have to create x,y,z variables (the z variable probably won't be neccessary).

    Then when you wanted to move the event back to that spot later on use this script.

    Event info load
    repeat: event x < variable x (the one you made)
    event move 1 space east (i think) 0f
    event info load
    end
    repeat: event x > variable x
    event move 1 space west 0f
    event info load
    end

    (repeat for y)

    this will move the event to th presaved spot hope it was what you were looking for


    TBS is coming shortly... I finally got off my lazy self and contacted Datel, so new Max Drive software is coming thus allowing me to release my TBS.

    Comment


      #3
      Re: Help with moving events

      Originally posted by madcopper View Post
      There is actually a fairly simple way to do this.

      First off you would have to save the location of the event in seperate unique variables; as in you would have to create x,y,z variables (the z variable probably won't be neccessary).

      Then when you wanted to move the event back to that spot later on use this script.

      Event info load
      repeat: event x < variable x (the one you made)
      event move 1 space east (i think) 0f
      event info load
      end
      repeat: event x > variable x
      event move 1 space west 0f
      event info load
      end

      (repeat for y)

      this will move the event to th presaved spot hope it was what you were looking for
      At first when I tried your script for some reason the event just kept moving and never exited out of the repeat script branch. I checked it over and over and didn't see any mistakes.

      But after awhile of testing i got it to work by changing the direction of the last event move on the Y axis to north. Now it seems to work perfectly.

      Appreciate the help. I would have never figured out how to do this on my own.

      On a side note i just realized on my script branch condition page my > symbol reads as a ?. Is it like that for everyone else?
      Last edited by Jeremy; 06-25-2009, 02:53 PM.

      Comment


        #4
        Re: Help with moving events

        It was a mistake when they translated the game from Japanese to english. So you aren't the only one.

        Comment

        Working...
        X