Jump to content

Home

[K1] Friendly NPC Spawn


Demongo

Recommended Posts

I have some problems with spawning friendly creatures :(

 

I just simply want to spawn a friendly creature but somewhy not all the scripts are working. Yes, some scripts work some don't :(

 

So here's what I use eg. for Darth Revan and he doesn't want to spawn.

 

void main()

{

CreateObject( OBJECT_TYPE_CREATURE,
"darthrevan", GetLocation(GetFirstPC()));

}

 

I compiled it and the name of the script isn't too long I'm sure.

Can someone help me? :confused: :confused:

Link to comment
Share on other sites

Did you, when you compiled it, name it with the extension .nss, its a thing that has gotten me a bunch.

 

Well I created a script and named it "spawn_revan.nss"

Then, I compiled it and deleted the .nss and .ndb files, so I have only "spawn_revan.ncs" in my Override folder.

Link to comment
Share on other sites

Here, this is what I did:

 

Copied the file into Ktool's text editor.

Replaced "darthreven" with "c_rakghoul"

Saved as spawner.nss

Hit Compile and put into a .dlg file.

 

Should work after that.

 

P.S.

what game?

 

Its for K1.

Link to comment
Share on other sites

*sigh*

I have more truoble with these spawn scripts......I don't know why..

Somewhy I can't spawn Zaalbar!

I tried everything with gff editor and ktool, but nothing works

 

Here's the Code:

 

NOTE: I created a .utc file named "zaalb.utc"

 

void main()

{

CreateObject( OBJECT_TYPE_CREATURE,
"zaalb", GetLocation(GetFirstPC()));

}

 

Can someone help me?

Link to comment
Share on other sites

I suspect this is a minor problem caused by your computer, or a slightly corrupted version of KotOR Tool. I have no idea why that script doesn't work for you, as I just used it in KTool, and I worked for me. Do you want me to send you a compiled version? The only thing I could possibly think that may work to fix this, is that you follow these steps exactly:

 

1. Copy the entire code into KotorTool's text editor.

2. Under the Script menu, select "Script is for Kotor I

3. Go to File > Save As > spawner.nss

4. Go to Script > Compile

5. MAKE SURE THAT YOU TYPE IN THE CORRECT SCRIPT NAME INTO YOUR .DLG FILE

6. Test in game.

Link to comment
Share on other sites

I suspect this is a minor problem caused by your computer, or a slightly corrupted version of KotOR Tool. I have no idea why that script doesn't work for you, as I just used it in KTool, and I worked for me. Do you want me to send you a compiled version? The only thing I could possibly think that may work to fix this, is that you follow these steps exactly:

 

1. Copy the entire code into KotorTool's text editor.

2. Under the Script menu, select "Script is for Kotor I

3. Go to File > Save As > spawner.nss

4. Go to Script > Compile

5. MAKE SURE THAT YOU TYPE IN THE CORRECT SCRIPT NAME INTO YOUR .DLG FILE

6. Test in game.

 

 

Sadly Ktool's Script Compiler doesn't work for me:(

I always used HazardX's Script Compiler and it usually worked for me

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...