PDA

View Full Version : 2 Questions


StormTrooper789
07-20-2004, 04:16 PM
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, 06:00 PM
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, 07:36 PM
So Darth333, is the 10 m measurement how far a party member is next to you when your standing still in the game?