Announcement

Collapse
No announcement yet.

Some questions that I can't figure out.

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

    Some questions that I can't figure out.

    Basically I want an event when touched to move in the same direction the party leader is. So basically "slide" away from the leader no matter what direction the object is touched. Touched from the north it'll slide south east it'll slide west.

    Also I want a condition to activate when any event is overlapping another invisible event.

    Thanks in advance.

    #2
    Re: Some questions that I can't figure out.

    Well the first is rather easy to do, though has some problems sometimes. Basically you do a Game Data Load (or which ever command sets up Party: Dir), then you do a sort statement on that. Problems can come when the event bumps into something, since when that happens it will never move again I believe because of a glitch in the movement command I believe. I know I had it happen on my randomly moving enemies that when they ran into a wall because of a movement command they would just stop moving anymore at all. So something to think about.

    The condition will be a little harder, and require some clever use of variables. It will have to be a condition script (or whatever those are called been a while since I've used this game), and basically you will have to use variables to store the location of all events on the map currently. Then check against each one of these. There may be a slightly more efficient way to do this (meaning no copy paste of variables but retrieving the position of all events currently on the map in a more general way), but I can't think of anything else at the moment but it would involve changing the target of the script temporarily and using Event Data load and storing the X Y coords to. So this may prove rather difficult for moving events.

    Unfortunately other events cannot activate other events by the same ways the part can without executing a script (typically an action script if the event itself is moving).
    はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
    http://www.thetruecoolness.com/

    5198-2124-7210 Smash

    Comment


      #3
      Re: Some questions that I can't figure out.

      Originally posted by thetruecoolness View Post
      Well the first is rather easy to do, though has some problems sometimes. Basically you do a Game Data Load (or which ever command sets up Party: Dir), then you do a sort statement on that. Problems can come when the event bumps into something, since when that happens it will never move again I believe because of a glitch in the movement command I believe. I know I had it happen on my randomly moving enemies that when they ran into a wall because of a movement command they would just stop moving anymore at all. So something to think about.
      So it'll only move once? Even if I touch the event again? What is a sort statement?
      The condition will be a little harder, and require some clever use of variables. It will have to be a condition script (or whatever those are called been a while since I've used this game), and basically you will have to use variables to store the location of all events on the map currently. Then check against each one of these. There may be a slightly more efficient way to do this (meaning no copy paste of variables but retrieving the position of all events currently on the map in a more general way), but I can't think of anything else at the moment but it would involve changing the target of the script temporarily and using Event Data load and storing the X Y coords to. So this may prove rather difficult for moving events.

      Unfortunately other events cannot activate other events by the same ways the part can without executing a script (typically an action script if the event itself is moving).
      Hmm, maybe I'll do somthing different for that then, maybe somthing easier.

      Another question, I want a menu to pop up when you press the X button. on a certain event. instead of the standered menu it just activates the event. (like simply walking up then pressing a switch)

      Comment


        #4
        Re: Some questions that I can't figure out.

        Originally posted by Red Dragon View Post
        So it'll only move once? Even if I touch the event again? What is a sort statement?
        No, what I was saying is if it runs into an impassible object while trying to move, it will no longer respond to move commands. So as long as it can move it will keep going on each touch. And a Sort command is in a script. It's one of the Script branches where you do

        SB: Sort [Variable 200]
        - SB:Apply if 0
        - <do stuff>
        - SB: To end
        - Apply if 1
        - ...
        SB: End

        Basically it's an easier way to do a bunch of Conditions on one variable.

        Originally posted by Red Dragon View Post
        Another question, I want a menu to pop up when you press the X button. on a certain event. instead of the standered menu it just activates the event. (like simply walking up then pressing a switch)
        Ok well this one is going to require some timing, and I'm completely sure it will work in on script but worth a try.

        First you temporarily turn off the standard menu by setting one of Flag 11 [No Menus] off. Then you check to see which button was pressed by doing a condition on Variable [User Button] and check if it's 7 (ingame help says 5 for X and 7 for circle but it has them switched). Then use the Menu command under Display or Input in the script editor (I forget which it's under though Input sounds correct). Then REMEMBER to turn the no menu flag back on if you plan on using the default menu in your game, this is important. So this should work, though the menu may still pop up I'm not sure.
        Last edited by thetruecoolness; 06-19-2007, 12:51 AM.
        はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
        http://www.thetruecoolness.com/

        5198-2124-7210 Smash

        Comment


          #5
          Re: Some questions that I can't figure out.

          Wow I really appreciate the help. I actually got the sliding events to work even though they hit the wall or eachother.

          Comment

          Working...
          X