Event Followers

● ARCHIVED · READ-ONLY
Started by Tsukihime 11 posts View original ↗
  1. This script allows events to designate a "leader" that another character will

    follow. This could be the player, the current event, or any other event.

    Any characters following a leader will follow that leader until they are told to stop following.

    eventFollowers1.jpg

    Download

    Get it at Hime Works!

    Installation

    Place this below Materials and above Main

    Usage

    The following method calls are defined in Game_Character.

    follow(event_id)stop_followThis can be called by any character object such as players or events.In a move route, if you make a script call and just say

    follow(event_id)Then the event specified by the move route will follow that character.You can also say things like

    $game_player.follow(event_id)$game_map.events[3].follow(event_id)eventFollowers2.jpg
    If you enter -1 as the event ID, then it refers to the game player.

    Any event ID greater than 0 refers to the specific event ID on the map.

    Event ID 0 is not supported.

    To stop following an event, make the script call

    Code:
    stop_follow
    Again, remember from whose perspective the script call is being made from.
  2. Great script! I assume this doesn't work for scripts with pixel movement? More specifically Victor Sants pixel movement.

    Edit: I just tested it with his script. it's really hilarious! The event tries to follow the player but instead flies around like an autonomous pet butterfly, going through walls and what not. It's too bad it doesn't work with it, this was exactly what I was looking for for my next interactive scene.
  3. but instead flies around like an autonomous pet butterfly
    The event is moving even though the player is not?
  4. That's right, usually in diagonals. At first it flies around the player then gradually moves further away like a conch shell.
  5. seita said:
    Great script! I assume this doesn't work for scripts with pixel movement? More specifically Victor Sants pixel movement.

    Edit: I just tested it with his script. it's really hilarious! The event tries to follow the player but instead flies around like an autonomous pet butterfly, going through walls and what not. It's too bad it doesn't work with it, this was exactly what I was looking for for my next interactive scene.
    Just as clarification:

    Does this strange movement happens with the followers script alone or when you try to use this script together with the pixel movement script?

    Your original post and edit could be read both ways, and I think Tsukihime looks for an error with his script alone...
  6. Hey Andar. Yeah I meant that I tried it alongside VE's pixel movement script. I haven't tried it alone, I assume it works perfectly fine. Sorry if that wasn't clear enough Tsuki~
  7. this is indeed useful script. great job hime :D .

    this will be useful to create my army marching scene. i just gonna make event move another event and just do move route to the one in the front.

    btw what happen if you have party follower and make event follow player. i want to know how they will be lined up :D .
  8. I have updated the script so that an event will follow the last follower.


    However, if you have two events following the player, they will stack up.


    I will need to come up with a way to store temporary followers...
  9. Script has been updated.

    All following behavior should be correct now:

    -events following events

    -events following players

    -players following events

    -events following players with other followers (both party followers and event followers)

    Follower movements have been corrected for the most part.

    Here is a sample.

    All I did was set the autonomous movement of each event to

    follow(-1)Which means to follow the player.eventfollowers3.jpg

    Event followers are currently unable to move to different maps or retain their positions, but the next update will provide this functionality.
  10. The screenshot epic. Snake games! Lol.

    I think with some edit you can make snake mini games hime :D .
  11. Sorry for the trouble but I'm new to these stuff.
    How can I make an event follow the player right after a dialogue?