Jump to content

Home

Dialog error


Canderis

Recommended Posts

I have this error with a dialog file. When it fires in game it shows up like how people on taris's does as like a speech bubble in the air. I have 2 reply options that you cant even choose. Why is this happening?

 

As far as I know that only happens when the Npc only has one line. Does he have a reply to those replies(of the pc)

Link to comment
Share on other sites

Actually, it needs a minimum of one 'entry', that is, NPC response and one PC reply, even if that reply is blank.

Really then why didn't it work?

Huh; I thought I read once in a tutorial (correct me if I'm wrong) that a dialog works like normal (non-'text bubble') if it has 3 replies.

 

I can't speak from experience though, seeing as I've only dealt with/made dialogs with 3+ replies.

 

Thanks ferc that made it work!

 

EDIT: now for some reason it wont fire when i enter the area. Heres the fire script:

void main() {
 object oNPC=GetObjectByTag("doorguard");
 location lMe=GetLocation(GetFirstPC());
   ActionDoCommand(SetCommandable(TRUE,oNPC));
 AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
 AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}

Do you guys see any problem?

Link to comment
Share on other sites

Try using ClearAllActions().

 

void main() {
 object oNPC=GetObjectByTag("doorguard");
 location lMe=GetLocation(GetFirstPC());
   ActionDoCommand(SetCommandable(TRUE,oNPC));
ClearAllActions();
 AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
 AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));
}

Link to comment
Share on other sites

Thanks star admiral! it worked! Now I just need to fix one more bug, the script that fires in the dialog to make the people hostile only works on 3 out of the 6 people. Is it because they all are the same utc? And one other small thing, what is the uti tag for the red short saber?

void main() {
object oNPC1=GetObjectByTag("sith01");
object oNPC2=GetObjectByTag("doorguard");
object oNPC3=GetObjectByTag("cultdro");
object oNPC4=GetObjectByTag("sith01");
object oNPC5=GetObjectByTag("sith01");
ChangeToStandardFaction(oNPC1, 1);
ChangeToStandardFaction(oNPC2, 1);
ChangeToStandardFaction(oNPC3, 1);
ChangeToStandardFaction(oNPC4, 1);
ChangeToStandardFaction(oNPC5, 1);
}

Link to comment
Share on other sites

Try this.

 

void main() {
object oNPC1=GetObjectByTag("sith01", 0);
object oNPC2=GetObjectByTag("doorguard");
object oNPC3=GetObjectByTag("cultdro");
object oNPC4=GetObjectByTag("sith01", 1);
object oNPC5=GetObjectByTag("sith01", 2);
ChangeToStandardFaction(oNPC1, 1);
ChangeToStandardFaction(oNPC2, 1);
ChangeToStandardFaction(oNPC3, 1);
ChangeToStandardFaction(oNPC4, 1);
ChangeToStandardFaction(oNPC5, 1);
}

 

And the .uti for the red short saber in K1 is g_w_shortsbr02. If I'm not mistaken, it's the same for TSL.

 

- Star Admiral

Link to comment
Share on other sites

I forgot to add in the origional script one droid and when I tried to follow your example he stayed on my team and didn't go hostile.

void main() {
object oNPC1=GetObjectByTag("sith01", 0);
object oNPC2=GetObjectByTag("doorguard");
object oNPC3=GetObjectByTag("cultdro");
object oNPC6=GetObjectByTag("cultdro", 2);
object oNPC4=GetObjectByTag("sith01", 1);
object oNPC5=GetObjectByTag("sith01", 2);
ChangeToStandardFaction(oNPC1, 1);
ChangeToStandardFaction(oNPC2, 1);
ChangeToStandardFaction(oNPC3, 1);
ChangeToStandardFaction(oNPC4, 1);
ChangeToStandardFaction(oNPC5, 1);
ChangeToStandardFaction(oNPC6, 1);
}

do you see any error?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...