Jump to content

Home

Help with dialogues! :)


Ravager

Recommended Posts

Posted

Hello!

 

Im new in this forum. I like Kotor very much, so i try modding.

 

I want to make new NPC and dialogue on Onderron. I found very much tutorials, but i cant do it ;) I have .utc file of my character, and .dlg file, but i dont know how can i add this to game. Can you help me?

 

PS: Sry for my English ;)

Posted
// Generated by jmac7142's KotOR Script Generator

// Spawn Creature / Open Merchant

 

#include "k_inc_debug"

#include "k_inc_utility"

 

void main()

{

float x = -4.91913;

float y = 110.52753;

float z = 12.74434;

float r = 242.17688;

 

vector vCre = Vector(x, y, z);

location lCre = Location(r, vCre);

 

object oCre = CreateObject(OBJECT_TYPE_CREATURE, "g_sithcomm01", lCre);

 

}

 

Sorry i have "dd.nss(15): Error: Type mismatch in parameter 1 in call to "Location".

Posted

Try


void main() 

{ 

object oCre = CreateObject(OBJECT_TYPE_CREATURE, "g_sithcomm01", lCre); 

float x = -4.91913; 
float y = 110.52753; 
float z = 12.74434; 
float r = 242.17688; 

vector vCre = Vector(x, y, z); 
location lCre = Location(r, vCre); 


} 

 

It may or may not work and since i'm no scripter I can't be of much more help if this fails :)

Posted

I compiled it:

 

 

void main()

{

CreateObject(OBJECT_TYPE_CREATURE, "g_sithcomm01", Location(Vector(-5.26764,109.80170,12.74003), 0.0));

}

 

But NPC doesn't appear :/

Posted

Say you named your script blahblah.nss. Once you compiled that script using the kotor tool, you would have a file called blahblah.*ncs*.

 

Then you open a dialog (.DLG) withing the modual you want to spawn your NPC. (this dialog must be a pre-existing dialog, preferably one that only fire ONCE).

 

Now enter the name of the new script you created (blahblah) into the (script that fires when spoken, or script #1 field).

 

that should allow you to spawn the NPC.

 

let me know if that worked.

Archived

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

×
×
  • Create New...