Jump to content

Home

Two npcs fight during converstion


sekan

Recommended Posts

Hi,

 

I'm now trying to create a converstion where two npcs fight and talk during the fight like matilda and bastila in brotherhood of shadow. I'm using the script that the brortherhood of shadow used:

 

 #include "k_inc_generic"
void main(){

object oNPC2 = GetObjectByTag("dan13_tareelok");


object oNPC3 = GetObjectByTag("dan13_garrrum");


ChangeToStandardFaction(GetObjectByTag ("dan13_tareelok"), 2);
ChangeToStandardFaction(GetObjectByTag ("dan13_garrum"), 4);

AssignCommand(oNPC2, GN_DetermineCombatRound());
AssignCommand(oNPC3, GN_DetermineCombatRound());
}  

 

The script have no problem but in the game the converstion ends when they start fighting. What can be the problem?

 

 

I also need a script that removes the weapon from to both npcs

 

Edit: Uploaded the dialog file bcz it could be a mistake i made in the dialog.

 

 

 

Dialog file

Link to comment
Share on other sites

You see, the script activates after that particular line you scripted it onto has been spoken. Try using the line before it.

 

Just want a qucik answer if i have understood what you writed ( I'm not good in understanding P.S ask my teachers :lol: ) You want me to move the script higher up in the converstion?

Link to comment
Share on other sites

Theres a tutorial on how to do a talk-fight sequence in the scripting forum.

 

It's not in scripting forum it's in General Tutorials + Tools. But thanks i must missed it. Will check it out right away :)

 

 

Exactly.

 

 

Tried but it won't work :(

 

Edit: The turitiol seems to help people who want to make a dialog that makes 2 npcs fight but don't talk while fighting and then after the fighting talk ( if i got it right ) So if I'm right the turitoal won't help :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...