Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

2 Questions

Page: 1 of 1
 StormTrooper789
07-20-2004, 3:16 PM
#1
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
07-20-2004, 5:00 PM
#2
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.
 StormTrooper789
07-20-2004, 6:36 PM
#3
So Darth333, is the 10 m measurement how far a party member is next to you when your standing still in the game?
Page: 1 of 1