Jump to content

Home

[K1] Adding an NPC to an area?


Simon92

Recommended Posts

Hello Modders and Others,

 

I am about to ask a very basic question, but I couldn't find it anywhere in the first 6 pages and after using the search function. Bear in mind I am making my first proper mod, that doesn't include reskins. So, here it goes;

 

How do you add an NPC to an area, such as Dreshdae on Korriban, AND change the NPC's name?

 

Sorry if it's been answered millions of times, I've searched for quite a while and couldn't find an answer.

 

Thanks.

Link to comment
Share on other sites

How do you add an NPC to an area, such as Dreshdae on Korriban, AND change the NPC's name?

 

Unfortunately, there is no "ActionChangeName()" function in NWScript. You can simulate an NPC having their name changed by creating a second .utc with the different name. You can then destroy the old creature and create a new one via a script. If you need help with those, then don't hesitate to ask around here :).

Link to comment
Share on other sites

Unfortunately, there is no "ActionChangeName()" function in NWScript. You can simulate an NPC having their name changed by creating a second .utc with the different name. You can then destroy the old creature and create a new one via a script.

 

As an alternative you can also set a custom token as the NPC's name, and then have a script that sets the token to the string you want shown as the NPC's name, depending on what situation the NPC should be used in.

Link to comment
Share on other sites

Hello!

 

I don't want to canabalize this thread, but...

 

A few weeks (months?) ago I wanted to start modding K1, and I got much help here (thanks again for that). As a starting point I just wanted to spawn a character on the Endar Spire just after the PC woke up (to see the results after starting a fresh game). Then I wanted to start a dialogue and wanted to see what else I could accomplish. Unfortunately I was to dump to do it (though I got all the help).

 

My question is, is it possible to make a tutorial for beginners with a step-by-step walkthrough to a accomplish the things I just talked about (or is there already one)? Hints on how and where to get the informations needed would be helpful too of course.

 

Thanks and take care

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...