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.

back to modding sorta...brain farted

Page: 1 of 1
 override367
01-22-2004, 9:07 AM
#1
I forgot how to create an npc and add them to a party, i threw the following into the k_act_carthadd.ncs to try to add a party member prematurely and it didn't work, all I got was Carth...

now I did this before but I can't remember what I did wrong

anyway.... this is what I got for my script, I don't even remember if k_act_carth is what I used before
-------------------------------------------

//:: k_act_carthadd
/*
adds carth to the party
*/
//:: Created By: Jason Booth
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

void main()

{
object oPC = GetFirstPC();

AddAvailableNPCByObject(NPC_CARTH,GetObjectByTag("carth"));
AddPartyMember(NPC_CARTH,GetObjectByTag("carth"));
CreateObject(OBJECT_TYPE_CREATURE,"bastila",GetLocation(oPC));

AddAvailableNPCByObject(NPC_BASTILA,GetObjectByTag ("bastila"));
AddPartyMember(NPC_BASTILA,GetObjectByTag("bastila"));

}


In the future i should archive my scripts... helped with NWN...ugh *hits head*
Page: 1 of 1