Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
WoohaDude

Party Member Follow

Recommended Posts

So I was curious if anyone had a script that lets a party member follow you .. but not just 100% copy your movements, like most caterpillar scripts. I'll give you an example.

 

 

See how she follows him, but not to a T? I love that. Seems so much more realistic. Was curious if anyone had a script like that. Thanks.

 

Edit: Got it figured out ... but my solution's laggy. Using a path finding script to have the NPC use in a parallel process .. but it starts to get laggy if the path gets complex, since it's called every frame.

Edited by WoohaDude

Share this post


Link to post
Share on other sites

I think there is a script called Squad movement or something like that by Near fantastica which may do you want you want

Share this post


Link to post
Share on other sites

This may actually be easier than I was thinking. I can just make an event, make it parallel process, and have it use a path finding script to constantly find a way to get to the hero, and then stop if it's within a certain distance.

 

But, I'd have to make this event on every map I wanted them to appear on. Any way to script a map to copy an event from another map, or something? So I could have a map to store the event to be copied, and I can make any changes to it there, and have the script automatically copy it over for me, per map?

Share this post


Link to post
Share on other sites

I think there is a script called Squad movement or something like that by Near fantastica which may do you want you want

 

 

 

Lmao!!! Zeriab! *hugs*

 

 

I just got done telling someone else in another topic that you left the RMXP scene and probably wouldn't respond to your three year old topic.

 

 

EDIT: Wooha, your fog is static. Might want to fix that.

Share this post


Link to post
Share on other sites

Lmao!!! Zeriab! *hugs*

 

 

I just got done telling someone else in another topic that you left the RMXP scene and probably wouldn't respond to your three year old topic.

 

 

EDIT: Wooha, your fog is static. Might want to fix that.

 

Oh, that's not my game. Was a game I found on youtube that had what I wanted.

 

Okay, so I've been trying my idea of just copying an event from another map. Or, just loading the events from a specified map, and adding that event to the Game_Map's events, in the setup function. Like so:

 

   @followerMap = load_data("Data/Map009.rxdata")
   @events = {}
   for i in @map.events.keys
     @events[i] = Game_Event.new(@map_id, @map.events[i])
   end
   #add Althea to the party
   @events[i+1] = Game_Event.new(@map_id, @followerMap.events[1])

 

which does in fact add the event. But, it's not responding to any move commands. It just sits there. And I'm completely stuck on why. The copied event is a parallel process, just for now, using a "step towards player" command.

 

Any ideas?

 

Edit: Appears to be linked with it being a parallel process. If I set a move route in the event's autonomous movement settings, it works fine.

Edited by WoohaDude

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...