idontknow3300 Posted March 19, 2006 Share Posted March 19, 2006 I don't know if the title is misleading or not, but here's my question. If I wanted to replace Jolan Aphett, the Pazaak playing guy on West Central Manaan, with, i don't know, a random Jedi named Dave, how would I do that? I thought I could do it in the creature editing thing in KT, but that always has me save somewhere else and doesn't replace it. The tutorials don't really help much either, so if anyone knows what I mean can they tell me how to do this, or give me a link to a thread with the answer? Link to comment Share on other sites More sharing options...
Darth333 Posted March 20, 2006 Share Posted March 20, 2006 You would first have to remove the existing npc by using a script like this one: void main() { DestroyObject(GetObjectByTag(npc_tag")); } and then spawn a new npc as indicated in this tutorial: http://www.lucasforums.com/showthread.php?t=143536 You could also simply change his appearance either using a script calling the disguise function or editing his .utc file (creature editor). Note that the disguise trick won't change his name. If you use the creature editor, you can change the name and the apperance but you have to make sure that your file is unique or it could lead to some game stopping bugs if the .utc file is not unique. You can use findrefs to verify if the file is unique or not. A sample script to change the appearance in K1 (this one will turn the npc into a tach): void main(){ //select the disguise - look at nwscript.nss: effect eDisg = EffectDisguise(DISGUISE_TYPE_C_TACH); //select your target by inserting the tag object oTarget= GetObjectByTag(my_npc_tag"); //apply the disguise ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDisg, oTarget); } The above script works for Kotor 2 but there is a much cooler ChangeApperance function for this. Link to comment Share on other sites More sharing options...
Mono_Giganto Posted March 20, 2006 Share Posted March 20, 2006 (this one will turn the npc into a tach): You have quite a bit of experience with that function, don't you? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.