Jump to content

Home

Conditional scripts Kotor 1


Darth_Andrez

Recommended Posts

This conditional script makes the dialog appear after a certain line has been spoken

E.G if someone ask's you to help them and you reply yes that would make the npc tell you how to help him next time you speak

 

and also a dialog starts due to the players alingment points

Link to comment
Share on other sites

This conditional script makes the dialog appear after a certain line has been spoken

E.G if someone ask's you to help them and you reply yes that would make the npc tell you how to help him next time you speak

 

You should really use a local variable for this one...I don't know many things about local variables, as I'm not that experienced, but you could try this thread: Clicky! It's for TSL, but you should get the feeling of how it works!;)

 

and also a dialog starts due to the players alingment points

 

That's easy...

 

If you want the player to be evil to unlock the dialog use this:

 

int StartingConditional()
{
 object oPC = GetFirstPC();

   if(GetGoodEvilValue(oPC) <= 25) {
     return TRUE;
   }
   else {
     return FALSE;
   }
}

 

If you want him to be good use this:

 

int StartingConditional()
{
 object oPC = GetFirstPC();

   if(GetGoodEvilValue(oPC) >= 75) {
     return TRUE;
   }
   else {
     return FALSE;
   }
}

 

Hope it works ok!;)

 

EDIT: You are welcome!:D

 

|I|

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...