Jump to content

Following the party


Handyman

Recommended Posts

I think you're going to want to use the call approach_char() for that. Set the first argument ME so that you can reuse the script for each character who follows the party. (The first argument determines which character will actually approach the character you want it to.) The second argument should be set to 0 (so that the NPC follows the party's first player) and the last argument should be set to how close you want them to follow the first party member. (I'd set it to something like 6 or 7, so it doesn't get so close that it becomes annoying to the player.)

 

You'll want to put this call somewhere in the start state.

Link to comment
Share on other sites

You can see an example of this in t9griffon in Diplomacy with the Dead. As a refinement of what Duck suggests, you might have the character approach the last character in the party, so that it follows without getting in the way at the front, and then make the distance to approach fairly small. You can also run approach_char() only if the target character is too far away, as t9griffon does.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...