Jump to content

Home

Party Member cloning? Fail! (K1)


Recommended Posts

KOTOR 1

So I'm trying to create this tukata party member replacing canderous, load up kotor, theres two. tab out, back in, reload, theres 3!? (I know im supposed to exit out all the way each time)

So, um. Any ideas on how to fix this?

 

PS

Tried searching, cause i know i read about this somewhere but I'm horrible at finding stuff like this, and, didn't find anything :indif:

 

*Edit*

Seems like each new thing clones one, i left the Hawk, reentered, 4, left, reentered, still 4, so each new thing that occurs for the first time results in another. But, when i take the Tukata Canderous in my party, theres only one...

Link to comment
Share on other sites

I'm assuming the Script that creates the Character does not check wither the NPC already exist in the module.

 

Basically you need to have in the script to either destroy the Trigger or do a If statement to check if the NPC is present. In the script it will only spawn the character if you do not have the NPC already in the module. If the NPC is in the Module= True then have the script do nothing.

Link to comment
Share on other sites

Of course if it's an "onenter" deleting it is a no-no.

And with the "is there" check a new one is spawned if in your team and thus not on that map next time you enter without that member.

 

So best would probably add a new global, and set that global when spawned, and add a check to only spawn the NPC if the global is unset... solved.

Link to comment
Share on other sites

Okay, so i restarted the whole thing (turns out i was actually using the wrong .utc /facepalm)

 

On Darth333's tutorial, Step 4 kinda confuses me...if anyone could shed some light i'd appreciate it :D

 

Also, if someone could find the VO Resref for Tukata (Attack1/2/3, die, and anything else would be nice, i need at least three. Found something similar, but it didn't have the line.

Link to comment
Share on other sites

I had the same problem with the recruitment mod I've created. Stoffe gave me the solution to that problem:

 

 

If I remember correctly there is an event script (k_pebn_pophawk) in the Ebon Hawk area that runs whenever the area is loaded (loading savegames counts as this too). This script will first delete all party members from the area and then spawn them at waypoints at the locations of the ship where they should be waiting around.

 

The problem is most likely caused by how this script works. It will delete party member NPCs based on their tag, while it will spawn them based on their party table slot. So if you've added a new NPC to the party table with a tag other than one of the standard party members the removal part will fail (since the script doesn't know about the tag of your new NPC), but the spawn part will succeed. This would result in both the original NPC being there, and a new copy being spawned in.

 

Hope it applies to you as well...

 

Fastmaniac

 

That's really hard to find ;)

Link to comment
Share on other sites

  • 2 weeks later...
Also, if someone could find the VO Resref for Tukata (Attack1/2/3, die, and anything else would be nice, i need at least three. Found something similar, but it didn't have the line.

 

You go to BIFs, Templates, Sound Sets and then find the one for the tukata. In that file you'll find the references to the tukata during combat and other stuff.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...