BountyHUNTER12 Posted July 20, 2004 Posted July 20, 2004 I have some questions! 2 that is. 1. How do I set waypoints for NPCs so that they walk around the area? 2. What code is needed to make a script that checks for a party member in the active party? I have to know these things for I want to be better.
Darth333 Posted July 20, 2004 Posted July 20, 2004 Originally posted by StormTrooper789 I have some questions! 2 that is. 1. How do I set waypoints for NPCs so that they walk around the area? Start by reading this document: http://nwn.bioware.com/developers/Bioware_Aurora_Waypoint_Format.pdf 2. What code is needed to make a script that checks for a party member in the active party? int StartingConditional() { return ((IsNPCPartyMember(NPC_BLAHBLAH) == TRUE) && (GetDistanceBetween(GetPCSpeaker(), GetObjectByTag("my_npc_tag")) <= 10.0)); } replace NPC_BLAHBLAH by one of the following: int NPC_BASTILA int NPC_CANDEROUS int NPC_CARTH int NPC_HK_47 int NPC_JOLEE int NPC_JUHANI int NPC_MISSION int NPC_T3_M4 int NPC_ZAALBAR As you can see, this script also checks the distance between your PC and the NPC (10 m). Otherwise, you could try : int StartingConditional() { return IsNPCPartyMember(NPC_BLAHBLAH); } but i am not sure if it only checks for active party members.
BountyHUNTER12 Posted July 20, 2004 Author Posted July 20, 2004 So Darth333, is the 10 m measurement how far a party member is next to you when your standing still in the game?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.