Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Switching issue

Page: 1 of 1
 GeorgNihilus
09-16-2007, 12:07 PM
#1
Hi folks, I'm having a problem to switch back to the PC after starting a dialog with an NPC, as far as I've seen this happens by default but in my case the NPC continues facing the NPC party member who starts the dialog (Bastila, Carth or whoever) -even setting the listener field of the DLG editor-.
I need to switch back to the PC so the dialog focus on the PC again. I tried using the k_act_noswitch script provided by the game but it's not working ... here it is this default script:

//:: k_act_noswitch
/*
Stops the switch back
to the NPC focus after
a conversation if the
conversation was started
by a party NPC and not
the PC object.
*/
//:: Created By: Preston Watamaniuk
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

void main()
{
CancelPostDialogCharacterSwitch();
}

I fired this script on the 1st branch of the mentioned dialog, not in all the dialog entries, it's doing nothing ... :mad: by the way I'm using an NPC soldier from RedHawke's Ord Mandell's mod (added Ord Mandell planet), which .dlg is packed in a .mod file of the /modules folder.

hopes this helps, to help me ... thanks on advance. :)

EDIT: problem solved, all I was needing was the SetPartyLeader(NPC_PLAYER) function to switch back to the PC to focus the dialog in him/her before starting to talk; I haven't seen the function when I posted first :roleyess:...

Note: this thread can be close for all that concerns me ... thanks anyway people :)
Page: 1 of 1