Jump to content

Home

back to modding sorta...brain farted


override367

Recommended Posts

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 © 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*

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...