Garrulous Glaahk Handyman Posted August 8, 2010 Posted August 8, 2010 Yah!! So close to the deadline! I can get most things to work on my own, but how could I get an NPC to follow the party without being a "member" of the party? (I have 3-4 people I want following the party at any time, so I can't just add them all.) Thanks!! Quote
Rotghroth Rhapsody Duck in a Top Hat Posted August 8, 2010 Posted August 8, 2010 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. Quote
Well-Actually War Trall Niemand Posted August 8, 2010 Posted August 8, 2010 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. Quote
Garrulous Glaahk Handyman Posted August 12, 2010 Author Posted August 12, 2010 Good idea! Thank you. :-) Hopefully, I can work it in time!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.