View Single Post
Old 01-27-2009, 11:48 AM   #1
Marius Fett
Foxy Boxes!
 
Marius Fett's Avatar
 
Join Date: May 2007
Location: Tinternet
Posts: 3,304
Current Game: TOR.. Still want K3 though! :(
Helpful! Notable contributor Forum Veteran 
Scripting woes...

Ahoy fellow modders!

Being the scripting failure that I am, I have a problem.

I have a dialog, and at the end of the dialog, I use this script to spawn an NPC at a waypoint and the end of the conversation:

Code:
void main()
{

object oPC = GetPCSpeaker();

object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("nindenstand");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ninden", lTarget);

}
That works fine.

But what I want, is for the NPC to start his own conversation with me after he spawns.

I've tried several ways to do this, and none of them seem to work.

Any of you scripting guru's...

I'd appreciate some help..


Looking for a reliable place to host your KotOR and TSL mods? Look no further than KotORFiles!
We have a great team, who will be sure to get your mod uploaded ASAP, after you submit. We also get 1000's of visitors every day, so your file is sure to get noticed!
You can watch my KotOR and TSL video's on YouTube!





Marius Fett is offline   you may: quote & reply,